a791ac3ba7
It's too unstable: https://github.com/cockpit-project/cockpit/issues/13861
52 lines
1.7 KiB
Bash
Executable File
52 lines
1.7 KiB
Bash
Executable File
#!/bin/sh
|
|
set -eux
|
|
|
|
# CSP does not like the the invalid host name _gateway, so translate it
|
|
HOST=$(getent hosts _gateway | cut -f1 -d' ')
|
|
|
|
trap "cp --verbose Test* /logs/ || true" EXIT
|
|
|
|
# tests need cockpit's bots/ libraries
|
|
cd /tmp
|
|
git clone --depth=1 https://github.com/cockpit-project/cockpit
|
|
cd cockpit
|
|
git clone --depth=1 https://github.com/cockpit-project/bots
|
|
# pre-download cirros image for Machines tests
|
|
bots/image-download cirros
|
|
# copy tests from our source, so that they match the released version
|
|
rm -rf test
|
|
cp -a /source/test .
|
|
|
|
# only install a subset to save time/space
|
|
npm install axe-core chrome-remote-interface sizzle
|
|
|
|
export TEST_OS=fedora-32
|
|
export TEST_AUDIT_NO_SELINUX=1
|
|
|
|
RC=0
|
|
|
|
# some tests are still too unstable: testCreate,testAddDisk,testDetachDisk,testNICAdd
|
|
test/verify/check-machines-dbus -tv --machine $HOST:22 --browser $HOST:9090 \
|
|
TestMachinesDBus.test{Basic,Libvirt,VCPU,MultipleSettings,BootOrder} \
|
|
TestMachinesDBus.test{InlineConsole,ExternalConsole,SerialConsole} \
|
|
TestMachinesDBus.test{StoragePools,StoragePoolsCreate,VmNICs,NetworkSettings} || RC=$?
|
|
|
|
# not all classes are nondestructive, and we can't run rebooting tests
|
|
test/verify/check-packagekit -tv --machine $HOST:22 --browser $HOST:9090 TestUpdates.test{Basic,SecurityOnly} TestAutoUpdates || RC=$?
|
|
|
|
# check-menu is not @nondestructive yet, keep it last
|
|
for t in accounts \
|
|
login \
|
|
networking-basic \
|
|
networking-firewall \
|
|
sosreport storage-basic \
|
|
storage-ignored \
|
|
storage-partitions \
|
|
storage-used storage-lvm2 \
|
|
menu; do
|
|
test/verify/check-$t -tv --machine $HOST:22 --browser $HOST:9090 || RC=$?
|
|
done
|
|
|
|
echo $RC > /logs/exitcode
|
|
exit $RC
|