Patrick Williams | 7784c42 | 2022-11-17 07:29:11 -0600 | [diff] [blame] | 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 \ |
| 15 | file://run-ptest \ |
| 16 | " |
| 17 | |
| 18 | PV = "0+git${SRCPV}" |
| 19 | |
| 20 | S = "${WORKDIR}/git" |
| 21 | |
| 22 | # libc-test 'make' or 'make run' command is designed to build and run tests. It |
| 23 | # reports both build and test failures. The commands should be run on target. |
| 24 | do_compile() { |
| 25 | : |
| 26 | } |
| 27 | |
| 28 | RDEPENDS:${PN} = " \ |
| 29 | bash \ |
| 30 | grep \ |
| 31 | musl \ |
| 32 | packagegroup-core-buildessential \ |
| 33 | " |
| 34 | |
| 35 | RDEPENDS:${PN}-ptest = " \ |
| 36 | ${PN} \ |
| 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 | COMPATIBLE_HOST = "null" |
| 51 | COMPATIBLE_HOST:libc-musl = "(.*)" |