glibc-tests.inc 1016 B

1234567891011121314151617181920212223242526272829303132
  1. EXCLUDE_FROM_WORLD = "1"
  2. # handle PN differences
  3. FILESEXTRAPATHS:prepend := "${THISDIR}/glibc:"
  4. # setup depends
  5. INHIBIT_DEFAULT_DEPS = ""
  6. python () {
  7. libc = d.getVar("PREFERRED_PROVIDER_virtual/libc")
  8. libclocale = d.getVar("PREFERRED_PROVIDER_virtual/libc-locale")
  9. if libc != "glibc" or libclocale != "glibc-locale":
  10. raise bb.parse.SkipRecipe("glibc-testsuite requires that virtual/libc is glibc")
  11. }
  12. DEPENDS += "glibc-locale libgcc gcc-runtime"
  13. # remove the initial depends
  14. DEPENDS:remove = "libgcc-initial"
  15. do_check[dirs] += "${B}"
  16. do_check () {
  17. # clean out previous test results
  18. oe_runmake tests-clean
  19. # makefiles don't clean entirely (and also sometimes fails due to too many args)
  20. find ${B} -type f -name "*.out" -delete
  21. find ${B} -type f -name "*.test-result" -delete
  22. find ${B}/catgets -name "*.cat" -delete
  23. find ${B}/conform -name "symlist-*" -delete
  24. [ ! -e ${B}/timezone/testdata ] || rm -rf ${B}/timezone/testdata
  25. }
  26. addtask do_check after do_compile