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:
Dengke Du
2018-08-17 17:33:01 -07:00
committed by Khem Raj
parent afb8112906
commit e88b38a9d2
2 changed files with 14 additions and 1 deletions
@@ -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