diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-03 13:54:53 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-03 13:54:53 +0000 |
commit | aeb45575a8af28726ae7bd267a4e9b9e59bfbff6 (patch) | |
tree | 7fef61f71f1802d4fc0245349b9b517125bc3ea4 /debian/tests/run-upstream-tests | |
parent | Adding debian version 060+5-1. (diff) | |
download | dracut-aeb45575a8af28726ae7bd267a4e9b9e59bfbff6.tar.xz dracut-aeb45575a8af28726ae7bd267a4e9b9e59bfbff6.zip |
Adding debian version 060+5-2~exp1.debian/060+5-2_exp1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/tests/run-upstream-tests')
-rwxr-xr-x | debian/tests/run-upstream-tests | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/debian/tests/run-upstream-tests b/debian/tests/run-upstream-tests new file mode 100755 index 0000000..5dce6cf --- /dev/null +++ b/debian/tests/run-upstream-tests @@ -0,0 +1,18 @@ +#!/bin/sh +set -eu + +if test -n "${AUTOPKGTEST_TMP-}"; then + export TMPDIR="${AUTOPKGTEST_TMP}" +fi + +# shellcheck disable=SC2012 +KVERSION=$(cd /lib/modules; ls -1 | tail -1) +export KVERSION +export DRACUT=dracut +export PKGLIBDIR=/usr/lib/dracut + +# Prapare out-of-tree test directory +TESTDIR="$(mktemp -d -t dracut-test.XXXXXXXXXX)" +cp -r test/* "$TESTDIR" + +make -C "$TESTDIR" V=1 check "$@" |