Install diffstat test suite and run it as ptest.
Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
--- /dev/null
+#!/bin/sh
+
+./testing/run_test.sh ./testing/case*.pat |sed \
+ -e 's|** ok|PASS|' \
+ -e 's|?? fail|FAIL|'
SRC_URI = "ftp://invisible-island.net/diffstat/diffstat-${PV}.tgz \
file://dirfix.patch \
- file://aclocal.patch"
+ file://aclocal.patch \
+ file://run-ptest \
+"
SRC_URI[md5sum] = "6d6e13f7dcfe4db5da65c5175260ea47"
SRC_URI[sha256sum] = "fad5135199c3b9aea132c5d45874248f4ce0ff35f61abb8d03c3b90258713793"
S = "${WORKDIR}/diffstat-${PV}"
-inherit autotools gettext
+inherit autotools gettext ptest
do_configure () {
if [ ! -e ${S}/acinclude.m4 ]; then
fi
autotools_do_configure
}
+
+do_install_ptest() {
+ cp -r ${S}/testing ${D}${PTEST_PATH}
+}