summaryrefslogtreecommitdiffstats
path: root/meta-agl-test
diff options
context:
space:
mode:
Diffstat (limited to 'meta-agl-test')
-rw-r--r--meta-agl-test/recipes-external/xz/files/run-ptest13
-rw-r--r--meta-agl-test/recipes-external/xz/xz_5.2.6.bbappend25
2 files changed, 38 insertions, 0 deletions
diff --git a/meta-agl-test/recipes-external/xz/files/run-ptest b/meta-agl-test/recipes-external/xz/files/run-ptest
new file mode 100644
index 00000000..3338c516
--- /dev/null
+++ b/meta-agl-test/recipes-external/xz/files/run-ptest
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+cd ./tests
+for i in `ls test*`; do
+ ./$i
+ result=$?
+ if [[ $result == "0" ]]
+ then
+ echo "PASS: $i"
+ else
+ echo "FAIL: $i"
+ fi
+done
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"
+