summaryrefslogtreecommitdiffstats
path: root/debian/tests/run-upstream-tests
blob: 5dce6cf9ebf69b2a71b9858b2d2e3d7e10f2cf07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 "$@"