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