mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-13 17:39:57 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user