From 7d05619064bf3a6cc0f31c464b28ebd047cbc609 Mon Sep 17 00:00:00 2001 From: Armin Kuster Date: Fri, 30 Aug 2019 15:47:02 -0700 Subject: glibc-testsuite: fixup for warrior Signed-off-by: Armin Kuster --- meta/recipes-core/glibc/glibc-testsuite_2.29.bb | 51 +++++++++++++++++++++++++ meta/recipes-core/glibc/glibc-testsuite_2.30.bb | 51 ------------------------- 2 files changed, 51 insertions(+), 51 deletions(-) create mode 100644 meta/recipes-core/glibc/glibc-testsuite_2.29.bb delete mode 100644 meta/recipes-core/glibc/glibc-testsuite_2.30.bb diff --git a/meta/recipes-core/glibc/glibc-testsuite_2.29.bb b/meta/recipes-core/glibc/glibc-testsuite_2.29.bb new file mode 100644 index 0000000000..665619377d --- /dev/null +++ b/meta/recipes-core/glibc/glibc-testsuite_2.29.bb @@ -0,0 +1,51 @@ +require glibc_${PV}.bb + +# handle PN differences +FILESEXTRAPATHS_prepend := "${THISDIR}/glibc:" + +# strip provides +PROVIDES = "" +# setup depends +INHIBIT_DEFAULT_DEPS = "" + +DEPENDS += "glibc-locale libgcc gcc-runtime" + +# remove the initial depends +DEPENDS_remove = "libgcc-initial" + +inherit qemu + +SRC_URI += "file://check-test-wrapper" + +DEPENDS += "${@'qemu-native' if d.getVar('BUILD_TEST_TARGET') == 'user' else ''}" + +BUILD_TEST_TARGET ??= "user" +BUILD_TEST_HOST ??= "localhost" +BUILD_TEST_HOST_USER ??= "root" +BUILD_TEST_HOST_PORT ??= "2222" + +do_check[dirs] += "${B}" +do_check[nostamp] = "1" +do_check () { + chmod 0755 ${WORKDIR}/check-test-wrapper + + # clean out previous test results + oe_runmake tests-clean + # makefiles don't clean entirely (and also sometimes fails due to too many args) + find ${B} -type f -name "*.out" -delete + find ${B} -type f -name "*.test-result" -delete + find ${B}/catgets -name "*.cat" -delete + find ${B}/conform -name "symlist-*" -delete + [ ! -e ${B}/timezone/testdata ] || rm -rf ${B}/timezone/testdata + + oe_runmake -i \ + QEMU_SYSROOT="${RECIPE_SYSROOT}" \ + QEMU_OPTIONS="${@qemu_target_binary(d)} ${QEMU_OPTIONS}" \ + SSH_HOST="${BUILD_TEST_HOST}" \ + SSH_HOST_USER="${BUILD_TEST_HOST_USER}" \ + SSH_HOST_PORT="${BUILD_TEST_HOST_PORT}" \ + test-wrapper="${WORKDIR}/check-test-wrapper ${BUILD_TEST_TARGET}" \ + check +} +addtask do_check after do_compile + diff --git a/meta/recipes-core/glibc/glibc-testsuite_2.30.bb b/meta/recipes-core/glibc/glibc-testsuite_2.30.bb deleted file mode 100644 index 665619377d..0000000000 --- a/meta/recipes-core/glibc/glibc-testsuite_2.30.bb +++ /dev/null @@ -1,51 +0,0 @@ -require glibc_${PV}.bb - -# handle PN differences -FILESEXTRAPATHS_prepend := "${THISDIR}/glibc:" - -# strip provides -PROVIDES = "" -# setup depends -INHIBIT_DEFAULT_DEPS = "" - -DEPENDS += "glibc-locale libgcc gcc-runtime" - -# remove the initial depends -DEPENDS_remove = "libgcc-initial" - -inherit qemu - -SRC_URI += "file://check-test-wrapper" - -DEPENDS += "${@'qemu-native' if d.getVar('BUILD_TEST_TARGET') == 'user' else ''}" - -BUILD_TEST_TARGET ??= "user" -BUILD_TEST_HOST ??= "localhost" -BUILD_TEST_HOST_USER ??= "root" -BUILD_TEST_HOST_PORT ??= "2222" - -do_check[dirs] += "${B}" -do_check[nostamp] = "1" -do_check () { - chmod 0755 ${WORKDIR}/check-test-wrapper - - # clean out previous test results - oe_runmake tests-clean - # makefiles don't clean entirely (and also sometimes fails due to too many args) - find ${B} -type f -name "*.out" -delete - find ${B} -type f -name "*.test-result" -delete - find ${B}/catgets -name "*.cat" -delete - find ${B}/conform -name "symlist-*" -delete - [ ! -e ${B}/timezone/testdata ] || rm -rf ${B}/timezone/testdata - - oe_runmake -i \ - QEMU_SYSROOT="${RECIPE_SYSROOT}" \ - QEMU_OPTIONS="${@qemu_target_binary(d)} ${QEMU_OPTIONS}" \ - SSH_HOST="${BUILD_TEST_HOST}" \ - SSH_HOST_USER="${BUILD_TEST_HOST_USER}" \ - SSH_HOST_PORT="${BUILD_TEST_HOST_PORT}" \ - test-wrapper="${WORKDIR}/check-test-wrapper ${BUILD_TEST_TARGET}" \ - check -} -addtask do_check after do_compile - -- cgit 1.2.3-korg