diffstat: enable ptest support
Install diffstat test suite and run it as ptest. (From OE-Core rev: 63cf8ab1ffdb04278aeb28b6ffce22ff7b272e29) Signed-off-by: Chong Lu <Chong.Lu@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
0f03282c6a
commit
ef15760e95
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
./testing/run_test.sh ./testing/case*.pat |sed \
|
||||
-e 's|** ok|PASS|' \
|
||||
-e 's|?? fail|FAIL|'
|
|
@ -9,14 +9,16 @@ LIC_FILES_CHKSUM = "file://install-sh;endline=42;md5=b3549726c1022bee09c174c72a0
|
|||
|
||||
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
|
||||
|
@ -24,3 +26,7 @@ do_configure () {
|
|||
fi
|
||||
autotools_do_configure
|
||||
}
|
||||
|
||||
do_install_ptest() {
|
||||
cp -r ${S}/testing ${D}${PTEST_PATH}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue