From 33895c7300d6e43e4d3df30cb192d17891d799be Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 18:09:42 +0200 Subject: Adding debian version 4.3-2+deb12u1. Signed-off-by: Daniel Baumann --- debian/tests/upstream-system-tests | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 debian/tests/upstream-system-tests (limited to 'debian/tests/upstream-system-tests') diff --git a/debian/tests/upstream-system-tests b/debian/tests/upstream-system-tests new file mode 100755 index 0000000..bd28a0c --- /dev/null +++ b/debian/tests/upstream-system-tests @@ -0,0 +1,24 @@ +#!/bin/sh +# Run the upstream system tests in a container. Destructive tests will be run in +# a VM as they may adjust/step the system clock, block the RTC, etc. +# In case of failure, test’s logs will be put into the directory specified by +# the $AUTOPKGTEST_ARTIFACTS environment variable. + +set -e + +testdir=$PWD/test/system +logdir="$testdir/tmp/*" + +# some tests need chrony installed, but make sure to avoid the test daemon is +# fighting with the systems chrony service over the clock +systemctl stop chrony.service 2>/dev/null || true + +run_test() { + cd "$testdir" && ./run "$@" +} + +artifacts() { + cp $logdir "$AUTOPKGTEST_ARTIFACTS" && exit 1 +} + +run_test "$@" || artifacts -- cgit v1.2.3