blob: a8fe160a541af827472bd7cbf5e5d48f0e6f40ae [file] [log] [blame]
Andrew Geisslereff27472021-10-29 15:35:00 -05001EXCLUDE_FROM_WORLD = "1"
2
3# handle PN differences
4FILESEXTRAPATHS:prepend := "${THISDIR}/glibc:"
5
6# setup depends
7INHIBIT_DEFAULT_DEPS = ""
8
9python () {
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
16DEPENDS += "glibc-locale libgcc gcc-runtime"
17
18# remove the initial depends
19DEPENDS:remove = "libgcc-initial"
20
21do_check[dirs] += "${B}"
22do_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}
32addtask do_check after do_compile