diff options
Diffstat (limited to 'debian/tests')
-rw-r--r-- | debian/tests/control | 11 | ||||
-rw-r--r-- | debian/tests/run_test_wrapper.sh | 14 |
2 files changed, 25 insertions, 0 deletions
diff --git a/debian/tests/control b/debian/tests/control new file mode 100644 index 0000000..352610d --- /dev/null +++ b/debian/tests/control @@ -0,0 +1,11 @@ +Test-Command: sh debian/tests/run_test_wrapper.sh +Features: test-name=run_test.sh +Depends: + dkms, + openssl, + linux-headers-generic, +Restrictions: + allow-stderr, + needs-root, + breaks-testbed, + skip-not-installable, diff --git a/debian/tests/run_test_wrapper.sh b/debian/tests/run_test_wrapper.sh new file mode 100644 index 0000000..5ccf011 --- /dev/null +++ b/debian/tests/run_test_wrapper.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +KERNEL_VER= +for kver in $(dpkg-query -W -f '${Package}\n' 'linux-headers-*' | sed s/linux-headers-//) +do + if [ -d "/lib/modules/$kver/build" ] + then + KERNEL_VER=$kver + break + fi +done + +export KERNEL_VER +bash ./run_test.sh |