cockpit-podman/tests/run-test.sh
Martin Pitt 2957a067ee tests: Run more upstream integration tests
This requires a workaround for podman.service leaking processes on
shutdown: https://github.com/containers/podman/issues/7021

Some tests don't work in dist-git gating CI environment yet:
testNotRunning, testRunImageSystem, testRunImageUser

Also don't use run-tests yet, this requires
https://github.com/cockpit-project/cockpit-podman/pull/437
2020-07-20 07:38:18 +02:00

24 lines
618 B
Bash
Executable File

#!/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/./-}"
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.test{BasicSystem,BasicUser,DownloadImage,LifecycleOperationsUser,LifecycleOperationsSystem} || RC=$?
echo $RC > "$LOGS/exitcode"
cp --verbose Test* "$LOGS" || true
# deliver test result via exitcode file
exit 0