diff options
Diffstat (limited to 'meta-agl-test/recipes-external/xz/xz_5.2.6.bbappend')
-rw-r--r-- | meta-agl-test/recipes-external/xz/xz_5.2.6.bbappend | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/meta-agl-test/recipes-external/xz/xz_5.2.6.bbappend b/meta-agl-test/recipes-external/xz/xz_5.2.6.bbappend new file mode 100644 index 00000000..4581d4c6 --- /dev/null +++ b/meta-agl-test/recipes-external/xz/xz_5.2.6.bbappend @@ -0,0 +1,25 @@ +# Add ptest support +# backport of yocto +# +FILESEXTRAPATHS:prepend := "${THISDIR}/files:" + +SRC_URI += " \ + file://run-ptest \ +" + +inherit ptest + +do_compile_ptest(){ + oe_runmake -C ${B}/tests/ check TESTS= +} + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/tests/ + install --mode=755 ${B}/tests/.libs/* ${D}${PTEST_PATH}/tests/ + + install -d ${D}${PTEST_PATH}/tests/files/ + install --mode=755 ${S}/tests/files/* ${D}${PTEST_PATH}/tests/files/ +} + +RDEPENDS:${PN}-ptest += "bash" + |