Blob Blame History Raw
#!/bin/sh
set -eux

# tests need cockpit's bots/ libraries and test infrastructure
cd $SOURCE
git init
make bots test/common

# only install a subset to save time/space
npm install chrome-remote-interface sizzle

. /etc/os-release
export TEST_OS="${ID}-${VERSION_ID/./-}"
# HACK: upstream tests don't recognize rhel-8-3 yet
if [ "$TEST_OS" = "rhel-8-3" ]; then
    export TEST_OS=rhel-8-2
fi

export TEST_AUDIT_NO_SELINUX=1

RC=0
test/check-application -tv --machine 127.0.0.1:22 --browser 127.0.0.1:9090 TestApplication.testBasicSystem || RC=$?

echo $RC > "$LOGS/exitcode"
cp --verbose Test* "$LOGS" || true
# deliver test result via exitcode file
exit 0