kernel-selftest: fix ptest

The run-ptest script was trying to call test_align executable, which
doesn't exist (anymore?).

Instead align more to master branch, and execute the selftests themselves.

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
This commit is contained in:
Gyorgy Sarvari
2025-10-17 16:24:03 +02:00
parent e735c00c42
commit 6d17a28ac2
2 changed files with 4 additions and 6 deletions
@@ -133,7 +133,7 @@ PACKAGE_ARCH = "${MACHINE_ARCH}"
INHIBIT_PACKAGE_DEBUG_SPLIT="1"
FILES:${PN} += "/usr/kernel-selftest"
RDEPENDS:${PN} += "python3 perl"
RDEPENDS:${PN} += "python3 perl perl-module-io-handle"
# tools/testing/selftests/vm/Makefile doesn't respect LDFLAGS and tools/testing/selftests/Makefile explicitly overrides to empty
INSANE_SKIP:${PN} += "ldflags"
@@ -1,11 +1,9 @@
#!/bin/sh
export PATH=$PATH:/usr/kernel-selftest/bpf
# test_align
test_align | grep "12 pass" &> /dev/null
/usr/kernel-selftest/run_kselftest.sh -s
if [ $? == 0 ]; then
echo "[PASS]: test_align"
echo "PASS: kernel-selftest"
else
echo "[FAIL]: test_align"
echo "[FAIL]: kernel-selftest"
fi