summaryrefslogtreecommitdiffstats
path: root/debian/tests/selftests
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 17:39:59 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 17:39:59 +0000
commit27d3313807296c3943a96ceef8c2b7279cb56962 (patch)
tree7d08e78c36ab6437b403fc7cd8c23e41f135c7a3 /debian/tests/selftests
parentMerging upstream version 6.7.7. (diff)
downloadlinux-27d3313807296c3943a96ceef8c2b7279cb56962.tar.xz
linux-27d3313807296c3943a96ceef8c2b7279cb56962.zip
Adding debian version 6.7.7-1.debian/6.7.7-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--debian/tests/selftests88
1 files changed, 0 insertions, 88 deletions
diff --git a/debian/tests/selftests b/debian/tests/selftests
deleted file mode 100644
index 02cc29372e..0000000000
--- a/debian/tests/selftests
+++ /dev/null
@@ -1,88 +0,0 @@
-#!/bin/bash -eu
-
-PATH=/usr/sbin:/sbin:/usr/bin:/bin
-
-getconfig() {
- debian/bin/getconfig.py "$@"
-}
-
-# Look up current ABI name and 'localversion' (featureset/flavour) suffixes
-abiname=$(getconfig version abiname)
-arch=$(dpkg --print-architecture)
-localversion=()
-for featureset in $(getconfig base $arch featuresets); do
- if [ "$(getconfig base '' $featureset enabled || echo True)" = True ]; then
- for flavour in $(getconfig base $arch $featureset flavours); do
- if [ "$featureset" = none ]; then
- localversion+=(-$flavour)
- else
- localversion+=(-$featureset-$flavour)
- fi
- done
- fi
-done
-steps=${#localversion[*]}
-
-case "${ADT_REBOOT_MARK:-}" in
- "")
- step=-1
- ;;
- step*)
- step=${ADT_REBOOT_MARK#step}
- ;;
-esac
-
-if [ "$step" -ge 0 ]; then
- ver=$abiname${localversion[$step]}
-
- if [ "$(uname -r)" != "$ver" ]; then
- echo >&2 "Should be running: $ver"
- echo >&2 "Actually running: $(uname -r)"
- else
- cp -lR . $AUTOPKGTEST_TMP/build
- cd $AUTOPKGTEST_TMP/build
- make headers_install
-
- # Ignore compiler warnings
- {
- 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
-
- # Some tests will write to stderr despite being successful,
- # 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 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 $AUTOPKGTEST_TMP/log
- set +o pipefail
- if grep -E '\[(FAIL|UNSUPPORTED)\]|recipe for target .run_tests. failed' $AUTOPKGTEST_TMP/log | \
- grep -q -v \
- -e '^selftests: fw_userhelper.sh \[FAIL\]' \
- -e 'ftrace - function profiler with function tracing \[UNSUPPORTED\]' \
- -e '^selftests: ftracetest \[FAIL\]' \
- -e '|| echo .*\[FAIL\]' \
- ; then
- echo >&2 "Unexpected failures found"
- fi
- fi
-fi
-
-step=$((step + 1))
-
-if [ "$step" -lt "$steps" ]; then
- # Load the next kernel
- ver=$abiname${localversion[$step]}
- kexec -l /boot/vmlinuz-$ver --initrd /boot/initrd.img-$ver --reuse-cmdline
- /tmp/autopkgtest-reboot step$step
-fi
-
-exit 0