cockpit-composer/tests/run-test.sh
Tomáš Hozza 2fedb6b1dd
Bootstrap CI tests from internal RHEL dist-git branch
Resolves: rhbz#2174845

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
2023-03-30 15:44:04 +02:00

30 lines
541 B
Bash
Executable File

#!/bin/sh
set -eux
cd $SOURCE
git init
make bots test/common machine
# only install a subset to save time/space
npm install chrome-remote-interface sizzle
. /etc/os-release
export TEST_OS="${ID}-${VERSION_ID/./-}"
RC=0
for t in test/verify/check-{blueprintList,blueprintWizard,imageWizard}
do
$t \
--enable-network \
--machine 127.0.0.1:22 \
--browser 127.0.0.1:9090 \
--verbose --trace \
|| RC=$?
done
echo $RC > "$LOGS/exitcode"
cp --verbose Test* "$LOGS" || true
# deliver test result via exitcode file
exit 0