diff --git a/tests/tests.yml b/tests/tests.yml index 5c8638c..422c0bd 100644 --- a/tests/tests.yml +++ b/tests/tests.yml @@ -11,7 +11,13 @@ - classic required_packages: - cockpit + - cockpit-tests + - cockpit-dashboard + - podman tests: - smoke: dir: ./source/tools/debian/tests/ run: ./smoke + - verify: + dir: . + run: ./verify.sh diff --git a/tests/verify.sh b/tests/verify.sh new file mode 100755 index 0000000..9002f8b --- /dev/null +++ b/tests/verify.sh @@ -0,0 +1,45 @@ +#!/bin/sh +set -eux + +# HACK: this should be a var: https://pagure.io/standard-test-roles/issue/263 +SOURCE=/var/str/source + +# HACK: reset the journal (tests should only look at the relevant portion) +rm -rf /var/log/journal/* +systemctl restart systemd-journald + +# create user account for logging in +if ! id admin 2>/dev/null; then + useradd admin -G wheel + echo admin:foobar | chpasswd +fi + +# The cockpit/tests container has chromium-browser and other test +# dependencies, which we don't have on RHEL itself. Also, we don't actually +# want to install these on the tested image, so run the test in a container, +# which tests the host. Use a fixed tag to avoid running into failures with +# "latest", as we don't gate container updates on the dist-git tests for now. +RC=0 +cat <