Store tmt tests in tests directory
This commit is contained in:
parent
462ee504e4
commit
d819f57243
@ -1,18 +0,0 @@
|
||||
summary: Integration test - dirinstall on regular system
|
||||
provision:
|
||||
standard-inventory-qcow2:
|
||||
qemu:
|
||||
m: 2G
|
||||
prepare:
|
||||
how: install
|
||||
package:
|
||||
- anaconda
|
||||
# gnome-kiosk is required for "vnc" mode
|
||||
# - gnome-kiosk
|
||||
execute:
|
||||
script:
|
||||
- ANACONDA_UI_MODE=text plans/dirinstall.sh
|
||||
- plans/show_logs.sh
|
||||
# - ANACONDA_UI_MODE=vnc plans/dirinstall.sh
|
||||
# - plans/show_logs.sh
|
||||
- journalctl -a
|
12
plans/integration.fmf
Normal file
12
plans/integration.fmf
Normal file
@ -0,0 +1,12 @@
|
||||
summary: Integration tests for anaconda
|
||||
|
||||
discover:
|
||||
how: fmf
|
||||
filter: 'tag: integration'
|
||||
|
||||
execute:
|
||||
how: tmt
|
||||
|
||||
finish:
|
||||
how: shell
|
||||
script: command -v journalctl && journalctl -a || true
|
22
tests/dirinstall/dirinstall.fmf
Normal file
22
tests/dirinstall/dirinstall.fmf
Normal file
@ -0,0 +1,22 @@
|
||||
summary: Dirinstall test on regular os
|
||||
contact: Radek Vykydal <rvykydal@redhat.com>
|
||||
path: /tests/dirinstall
|
||||
test: ./dirinstall.sh
|
||||
duration: 1h
|
||||
tag: [integration]
|
||||
|
||||
/text:
|
||||
summary: Dirinstall test on regular os - text UI
|
||||
require:
|
||||
- anaconda
|
||||
environment:
|
||||
ANACONDA_UI_MODE: text
|
||||
|
||||
/vnc:
|
||||
summary: Dirinstall test on regular os - vnc UI
|
||||
enabled: false
|
||||
require:
|
||||
- anaconda
|
||||
- gnome-kiosk
|
||||
environment:
|
||||
ANACONDA_UI_MODE: vnc
|
@ -9,8 +9,8 @@ WORK_DIR=$(mktemp -d /var/tmp/dirinstall.XXXXXX)
|
||||
# Create kickstart
|
||||
|
||||
KICKSTART_PATH=${WORK_DIR}/ks.cfg
|
||||
source plans/repositories
|
||||
TEST_KICKSTART=plans/ks.dirinstall.cfg
|
||||
source ./repositories
|
||||
TEST_KICKSTART=./ks.dirinstall.cfg
|
||||
|
||||
# Dump URLs of installation repositories found in local repositories whose names are configured in 'repositories' file
|
||||
echo "url --metalink=$(dnf repoinfo $BASE_REPO | grep ^Repo-metalink | cut -d: -f2- | sed 's/^ *//')" > ${KICKSTART_PATH}
|
||||
@ -35,3 +35,8 @@ anaconda --dirinstall ${INSTALL_DIR} --kickstart ${KICKSTART_PATH} --${ANACONDA_
|
||||
# Remove test work directory
|
||||
|
||||
rm -rf ${WORK_DIR}
|
||||
|
||||
|
||||
# Show and remove the logs for this anaconda run
|
||||
|
||||
./show_logs.sh
|
Loading…
Reference in New Issue
Block a user