diff options
Diffstat (limited to 'meta/recipes-core/musl/libc-test_git.bb')
-rw-r--r-- | meta/recipes-core/musl/libc-test_git.bb | 55 |
1 files changed, 55 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..71a111cfa4 --- /dev/null +++ b/meta/recipes-core/musl/libc-test_git.bb | |||
@@ -0,0 +1,55 @@ | |||
1 | SUMMARY = "Musl libc unit tests" | ||
2 | HOMEPAGE = "https://wiki.musl-libc.org/libc-test.html" | ||
3 | DESCRIPTION = "libc-test is a collection of unit tests to measure the \ | ||
4 | correctness and robustness of a C/POSIX standard library implementation. It is \ | ||
5 | developed as part of the musl project." | ||
6 | SECTION = "tests" | ||
7 | LICENSE = "MIT" | ||
8 | LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=43ed1245085be90dc934288117d55a3b" | ||
9 | |||
10 | inherit ptest | ||
11 | |||
12 | SRCREV = "18e28496adee3d84fefdda6efcb9c5b8996a2398" | ||
13 | SRC_URI = " \ | ||
14 | git://repo.or.cz/libc-test;branch=master;protocol=https \ | ||
15 | file://run-ptest \ | ||
16 | file://run-libc-ptests \ | ||
17 | " | ||
18 | |||
19 | PV = "0+git" | ||
20 | |||
21 | # libc-test 'make' or 'make run' command is designed to build and run tests. It | ||
22 | # reports both build and test failures. The commands should be run on target. | ||
23 | do_compile() { | ||
24 | : | ||
25 | } | ||
26 | |||
27 | RDEPENDS:${PN} = " \ | ||
28 | bash \ | ||
29 | grep \ | ||
30 | musl \ | ||
31 | packagegroup-core-buildessential \ | ||
32 | " | ||
33 | |||
34 | RDEPENDS:${PN}-ptest = " \ | ||
35 | ${PN} \ | ||
36 | musl-staticdev \ | ||
37 | sed \ | ||
38 | " | ||
39 | |||
40 | install_path = "/opt/${PN}" | ||
41 | FILES:${PN} += "${install_path}/*" | ||
42 | |||
43 | do_install () { | ||
44 | install -d ${D}${install_path}/ | ||
45 | cp ${S}/Makefile ${D}${install_path} | ||
46 | cp ${S}/config.mak.def ${D}${install_path}/config.mak | ||
47 | cp -r ${S}/src ${D}${install_path} | ||
48 | } | ||
49 | |||
50 | do_install_ptest_base:append() { | ||
51 | install -Dm 0755 ${UNPACKDIR}/run-libc-ptests ${D}${PTEST_PATH}/run-libc-ptests | ||
52 | } | ||
53 | |||
54 | COMPATIBLE_HOST = "null" | ||
55 | COMPATIBLE_HOST:libc-musl = "(.*)" | ||