summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/musl/libc-test_git.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/musl/libc-test_git.bb')
-rw-r--r--meta/recipes-core/musl/libc-test_git.bb60
1 files changed, 60 insertions, 0 deletions
diff --git a/meta/recipes-core/musl/libc-test_git.bb b/meta/recipes-core/musl/libc-test_git.bb
new file mode 100644
index 0000000000..9d159ea9d2
--- /dev/null
+++ b/meta/recipes-core/musl/libc-test_git.bb
@@ -0,0 +1,60 @@
1SUMMARY = "Musl libc unit tests"
2HOMEPAGE = "https://wiki.musl-libc.org/libc-test.html"
3DESCRIPTION = "libc-test is a collection of unit tests to measure the \
4correctness and robustness of a C/POSIX standard library implementation. It is \
5developed as part of the musl project."
6SECTION = "tests"
7LICENSE = "MIT"
8LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=43ed1245085be90dc934288117d55a3b"
9
10inherit ptest
11
12SRCREV = "f2bac7711bec93467b73bec1465579ea0b8d5071"
13SRC_URI = " \
14 git://repo.or.cz/libc-test;branch=master;protocol=https \
15 file://0001-Fix-strptime-on-musl.patch \
16 file://0001-api-unistd-guard-optional-obsolete-_PC-_SC-constants.patch \
17 file://0001-math-Delete-failing-tests.patch \
18 file://run-ptest \
19 file://run-libc-ptests \
20"
21
22PV = "0+git"
23
24# libc-test 'make' or 'make run' command is designed to build and run tests. It
25# reports both build and test failures. The commands should be run on target.
26do_compile() {
27 :
28}
29
30RDEPENDS:${PN} = " \
31 bash \
32 grep \
33 musl \
34 packagegroup-core-buildessential \
35"
36
37RDEPENDS:${PN}-ptest = " \
38 ${PN} \
39 locale-base-en-us \
40 musl-staticdev \
41 sed \
42 tzdata \
43"
44
45install_path = "/opt/${PN}"
46FILES:${PN} += "${install_path}/*"
47
48do_install () {
49 install -d ${D}${install_path}/
50 cp ${S}/Makefile ${D}${install_path}
51 cp ${S}/config.mak.def ${D}${install_path}/config.mak
52 cp -r ${S}/src ${D}${install_path}
53}
54
55do_install_ptest_base:append() {
56 install -Dm 0755 ${UNPACKDIR}/run-libc-ptests ${D}${PTEST_PATH}/run-libc-ptests
57}
58
59COMPATIBLE_HOST = "null"
60COMPATIBLE_HOST:libc-musl = "(.*)"