[linux] 04/12: tests: Build and run selftests

debian-kernel at lists.debian.org debian-kernel at lists.debian.org
Thu Aug 13 13:23:27 UTC 2015


This is an automated email from the git hooks/post-receive script.

benh pushed a commit to branch benh/autopkgtest
in repository linux.

commit 1390f69d1e9ba443da0373e3daa7752d95cfb4e8
Author: Ben Hutchings <ben at decadent.org.uk>
Date:   Thu Aug 13 00:43:24 2015 +0200

    tests: Build and run selftests
---
 debian/templates/tests-control.main.in | 2 +-
 debian/tests/selftests                 | 7 +++++--
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/debian/templates/tests-control.main.in b/debian/templates/tests-control.main.in
index 0cd6668..373ccfc 100644
--- a/debian/templates/tests-control.main.in
+++ b/debian/templates/tests-control.main.in
@@ -1,3 +1,3 @@
 Tests: selftests
 Restrictions: breaks-testbed, needs-root, isolation-machine
-Depends: kexec-tools
+Depends: kexec-tools, gcc, make, libpopt-dev
diff --git a/debian/tests/selftests b/debian/tests/selftests
index e976f02..7cd382a 100644
--- a/debian/tests/selftests
+++ b/debian/tests/selftests
@@ -22,11 +22,14 @@ if [ "$step" -ge 0 ]; then
     if [ "$(uname -r)" != "$ver" ]; then
 	echo >&2 "Should be running: $ver"
 	echo >&2 "Actually running: $(uname -r)"
+    else
+	cp -lR . $ADTTMP/build
+	cd $ADTTMP/build
+	make headers_install
+	make -C tools/testing/selftests run_tests
     fi
 fi
 
-# TODO: build and run tests
-
 step=$((step + 1))
 
 if [ "$step" -lt "$steps" ]; then

-- 
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