Skip to content
Snippets Groups Projects
Commit 845c4bdb authored by Chase Qi's avatar Chase Qi Committed by Andrei Gherzan
Browse files

Add kernel-selftest to oniro-image-base-tests image


Add the recipe to `-base-tests` image for kselftest.

Add kernel-selftest.bbappend to install the kselftest runner scripts
and also make it compatible with libc-musl.

Signed-off-by: default avatarChase Qi <chase.qi@linaro.org>
parent ce7c7a87
No related branches found
No related tags found
1 merge request!43Add kernel-selftest to oniro-image-base-tests image
...@@ -10,6 +10,7 @@ IMAGE_INSTALL:append = "\ ...@@ -10,6 +10,7 @@ IMAGE_INSTALL:append = "\
packagegroup-oniro-tests \ packagegroup-oniro-tests \
ltp \ ltp \
perf \ perf \
kernel-selftest \
" "
# This adds ptest packages to the image # This adds ptest packages to the image
......
# SPDX-FileCopyrightText: Huawei Inc.
#
# SPDX-License-Identifier: Apache-2.0
COMPATIBLE_HOST:libc-musl = "(i.86|x86_64|arm|aarch64).*-linux"
RDEPENDS:${PN} += "perl"
# bpf depends on clang/llvm. It is removed on x86 and arm by default for backward compatibility.
# Reference: http://cgit.openembedded.org/meta-openembedded/tree/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb?h=master#n22
# clang/llvm is not needed until we want to enable bpf.
DEPENDS:remove = "clang-native llvm-native"
TEST_LIST = "\
rtc \
cpufreq \
cpu-hotplug \
"
do_install:append() {
cp ${S}/tools/testing/selftests/run_kselftest.sh ${D}/usr/kernel-selftest
cp -R ${S}/tools/testing/selftests/kselftest ${D}/usr/kernel-selftest
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment