cockpit-composer/tests/run-test.sh
Jacob Kozol 77da1a3814 Update to release 31
Also, add gating tests.

Resolves: rhbz#1998197
2021-08-27 14:05:49 +02:00

32 lines
610 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
mv package.json .package.json
npm install chrome-remote-interface sizzle
mv .package.json package.json
. /etc/os-release
export TEST_OS="${ID}-${VERSION_ID/./-}"
RC=0
for t in test/verify/check-{blueprint,custom,dependence,package,service,source}
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