libc-test_git.bb 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. inherit ptest
  10. SRCREV = "18e28496adee3d84fefdda6efcb9c5b8996a2398"
  11. SRC_URI = " \
  12. git://repo.or.cz/libc-test;branch=master;protocol=https \
  13. file://run-ptest \
  14. file://run-libc-ptests \
  15. "
  16. PV = "0+git"
  17. # libc-test 'make' or 'make run' command is designed to build and run tests. It
  18. # reports both build and test failures. The commands should be run on target.
  19. do_compile() {
  20. :
  21. }
  22. RDEPENDS:${PN} = " \
  23. bash \
  24. grep \
  25. musl \
  26. packagegroup-core-buildessential \
  27. "
  28. RDEPENDS:${PN}-ptest = " \
  29. ${PN} \
  30. musl-staticdev \
  31. sed \
  32. "
  33. install_path = "/opt/${PN}"
  34. FILES:${PN} += "${install_path}/*"
  35. do_install () {
  36. install -d ${D}${install_path}/
  37. cp ${S}/Makefile ${D}${install_path}
  38. cp ${S}/config.mak.def ${D}${install_path}/config.mak
  39. cp -r ${S}/src ${D}${install_path}
  40. }
  41. do_install_ptest_base:append() {
  42. install -Dm 0755 ${UNPACKDIR}/run-libc-ptests ${D}${PTEST_PATH}/run-libc-ptests
  43. }
  44. COMPATIBLE_HOST = "null"
  45. COMPATIBLE_HOST:libc-musl = "(.*)"