diff options
Diffstat (limited to 'meta/recipes-core/glibc/glibc-tests.inc')
-rw-r--r-- | meta/recipes-core/glibc/glibc-tests.inc | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-core/glibc/glibc-tests.inc b/meta/recipes-core/glibc/glibc-tests.inc new file mode 100644 index 0000000000..a8fe160a54 --- /dev/null +++ b/meta/recipes-core/glibc/glibc-tests.inc | |||
@@ -0,0 +1,32 @@ | |||
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 | ||