diff options
Diffstat (limited to '')
-rwxr-xr-x | debian/tests/upstream | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/debian/tests/upstream b/debian/tests/upstream new file mode 100755 index 0000000..850add1 --- /dev/null +++ b/debian/tests/upstream @@ -0,0 +1,31 @@ +#!/bin/sh +# run upstream system integration tests +# Author: Martin Pitt <martin.pitt@ubuntu.com> +set -e + +DPKGARCH=$(dpkg --print-architecture) + +# Because this test is used both by upstream and by Debian, we use different deny-list filenames. +# For more details see https://salsa.debian.org/systemd-team/systemd/merge_requests/52 +case "${DEB_BUILD_PROFILES:-}" in + *pkg.systemd.upstream*) + denylist="deny-list-ubuntu-ci" + if [ "$DPKGARCH" = ppc64el ]; then + export TEST_NO_QEMU=1 + fi + ;; + *) + denylist="deny-list-upstream-ci" + ;; +esac + +export DENY_LIST_MARKERS="$denylist-$DPKGARCH $denylist" +export ARTIFACT_DIRECTORY="$AUTOPKGTEST_ARTIFACTS" +export TEST_SAVE_JOURNAL=fail +export TEST_SHOW_JOURNAL=warning +export TEST_REQUIRE_INSTALL_TESTS=0 +export TEST_PREFER_NSPAWN=1 +export NO_BUILD=1 +export QEMU_TIMEOUT=2400 +export NSPAWN_TIMEOUT=2400 +test/run-integration-tests.sh |