mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-07 05:10:20 +00:00
kernel-selftest: add ptest support
Group the kernel-selftest testcases in run-ptest. Signed-off-by: Dengke Du <dengke.du@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -10,6 +10,8 @@ DEPENDS = "rsync-native"
|
||||
SRC_URI_libc-musl += "file://userfaultfd.patch \
|
||||
file://0001-bpf-test_progs.c-add-support-for-musllibc.patch \
|
||||
"
|
||||
SRC_URI += "file://run-ptest \
|
||||
"
|
||||
|
||||
# now we just test bpf and vm
|
||||
# we will append other kernel selftest in the future
|
||||
@@ -22,7 +24,7 @@ PACKAGECONFIG[vm] = ",,,libgcc bash"
|
||||
|
||||
do_patch[depends] += "virtual/kernel:do_shared_workdir"
|
||||
|
||||
inherit linux-kernel-base kernel-arch
|
||||
inherit linux-kernel-base kernel-arch ptest
|
||||
|
||||
do_populate_lic[depends] += "virtual/kernel:do_patch"
|
||||
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
export PATH=$PATH:/usr/kernel-selftest/bpf
|
||||
|
||||
# test_align
|
||||
test_align | grep "12 pass" &> /dev/null
|
||||
if [ $? == 0 ]; then
|
||||
echo "[PASS]: test_align"
|
||||
else
|
||||
echo "[FAIL]: test_align"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user