[linux] 17/17: selftests: Run non-default tests
debian-kernel at lists.debian.org
debian-kernel at lists.debian.org
Sat Oct 31 22:18:17 UTC 2015
This is an automated email from the git hooks/post-receive script.
benh pushed a commit to branch master
in repository linux.
commit 0d65a96da727861d3d641c525dc4b7c3b1529b8a
Author: Ben Hutchings <ben at decadent.org.uk>
Date: Sat Oct 31 18:46:22 2015 +0000
selftests: Run non-default tests
Use quicktest=1 in the main test run to avoid running default timer
tests twice.
---
debian/templates/tests-control.main.in | 2 +-
debian/tests/selftests | 13 +++++++++++--
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/debian/templates/tests-control.main.in b/debian/templates/tests-control.main.in
index 2b2dc77..62497c6 100644
--- a/debian/templates/tests-control.main.in
+++ b/debian/templates/tests-control.main.in
@@ -1,4 +1,4 @@
Tests: selftests
Restrictions: breaks-testbed, needs-root, isolation-machine
-Depends: kexec-tools, python3, gcc, make, libpopt-dev, gcc-multilib [amd64], bc
+Depends: kexec-tools, python3, gcc, make, libpopt-dev, gcc-multilib [amd64], bc, fuse, libfuse-dev, pkg-config
Classes: smp
diff --git a/debian/tests/selftests b/debian/tests/selftests
index 5acfaa7..c19064c 100644
--- a/debian/tests/selftests
+++ b/debian/tests/selftests
@@ -44,7 +44,10 @@ if [ "$step" -ge 0 ]; then
make headers_install
# Ignore compiler warnings
- make -C tools/testing/selftests 2>&1 || echo >&2 "Build failed"
+ {
+ make -C tools/testing/selftests &&
+ make -C tools/testing/selftests/memfd build_fuse
+ } 2>&1 || echo >&2 "Build failed"
# Enable testing CLONE_USERNS by unprivileged users
sysctl kernel.unprivileged_userns_clone=1
@@ -53,7 +56,13 @@ if [ "$step" -ge 0 ]; then
# and the exit code from make will be 0 even if tests failed.
# So we have to do some post-analysis...
set -o pipefail
- make -C tools/testing/selftests run_tests 2>&1 | tee $ADTTMP/log
+ {
+ make -C tools/testing/selftests quicktest=1 run_tests &&
+ make -C tools/testing/selftests/cpu-hotplug run_full_test &&
+ make -C tools/testing/selftests/memory-hotplug run_full_test &&
+ make -C tools/testing/selftests/memfd run_fuse &&
+ make -C tools/testing/selftests/timers run_destructive_tests
+ } 2>&1 | tee $ADTTMP/log
set +o pipefail
if grep -E '\[(FAIL|UNSUPPORTED)\]|recipe for target .run_tests. failed' $ADTTMP/log | \
grep -q -v \
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/kernel/linux.git
More information about the Kernel-svn-changes
mailing list