tests: Build and run selftests

This commit is contained in:
Ben Hutchings 2015-08-13 00:43:24 +02:00
parent fe7c9f03f8
commit 9e2cf9c56b
2 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,3 @@
Tests: selftests
Restrictions: breaks-testbed, needs-root, isolation-machine
Depends: kexec-tools, python3
Depends: kexec-tools, python3, gcc, make, libpopt-dev, gcc-multilib [amd64], bc

View File

@ -38,11 +38,18 @@ 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
# Enable testing CLONE_USERNS by unprivileged users
sysctl kernel.unprivileged_userns_clone=1
make -C tools/testing/selftests run_tests
fi
fi
# TODO: build and run tests
step=$((step + 1))
if [ "$step" -lt "$steps" ]; then