diff options
author | Chong Lu <Chong.Lu@windriver.com> | 2014-01-03 14:51:30 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-01-06 11:14:02 +0000 |
commit | 03435469e2030e40a5e9d29821f9bc68d39cc03f (patch) | |
tree | 435e81a0d2003c97b4c895f35fd394e6f864087f /meta/recipes-devtools/quilt/quilt-0.61.inc | |
parent | bcacd181758b5ffaef4eab6cfb9947cf536fa2cb (diff) | |
download | poky-03435469e2030e40a5e9d29821f9bc68d39cc03f.tar.gz |
quilt: enable ptest support
Install quilt test suite and run it as ptest.
Exclude delete.test and mail.test.
delete.test need execute with normal user and mail.test need depend
on mail agent, else these test cases will fail. So exclude them order
to make ptest all pass.
(From OE-Core rev: 45bb0364e5f97e7d99b494df8d13e7f58265159f)
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>
Diffstat (limited to 'meta/recipes-devtools/quilt/quilt-0.61.inc')
-rw-r--r-- | meta/recipes-devtools/quilt/quilt-0.61.inc | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/meta/recipes-devtools/quilt/quilt-0.61.inc b/meta/recipes-devtools/quilt/quilt-0.61.inc index 41edebbf8f..f751ac83f3 100644 --- a/meta/recipes-devtools/quilt/quilt-0.61.inc +++ b/meta/recipes-devtools/quilt/quilt-0.61.inc | |||
@@ -5,12 +5,15 @@ LICENSE = "GPLv2" | |||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" |
6 | 6 | ||
7 | SRC_URI = "http://download.savannah.gnu.org/releases/quilt/quilt-${PV}.tar.gz \ | 7 | SRC_URI = "http://download.savannah.gnu.org/releases/quilt/quilt-${PV}.tar.gz \ |
8 | file://install.patch" | 8 | file://install.patch \ |
9 | file://run-ptest \ | ||
10 | file://Makefile \ | ||
11 | " | ||
9 | 12 | ||
10 | SRC_URI[md5sum] = "24417eba5961592b64103bdda001ebf4" | 13 | SRC_URI[md5sum] = "24417eba5961592b64103bdda001ebf4" |
11 | SRC_URI[sha256sum] = "1eec0a270ac4d41eea0fd5823603c9d2a35ab6b8ab73a90dd92ce1291b2a9fc3" | 14 | SRC_URI[sha256sum] = "1eec0a270ac4d41eea0fd5823603c9d2a35ab6b8ab73a90dd92ce1291b2a9fc3" |
12 | 15 | ||
13 | inherit autotools | 16 | inherit autotools ptest |
14 | 17 | ||
15 | EXTRA_OECONF_darwin += "--without-date \ | 18 | EXTRA_OECONF_darwin += "--without-date \ |
16 | --without-getopt \ | 19 | --without-getopt \ |
@@ -34,3 +37,20 @@ do_install () { | |||
34 | # cleanup unpackaged files | 37 | # cleanup unpackaged files |
35 | rm -rf ${D}/${datadir}/emacs | 38 | rm -rf ${D}/${datadir}/emacs |
36 | } | 39 | } |
40 | |||
41 | do_compile_ptest() { | ||
42 | oe_runmake bin/patch-wrapper test/.depend | ||
43 | } | ||
44 | |||
45 | do_install_ptest() { | ||
46 | tar -cf - bin/ --exclude \*.in | ( cd ${D}${PTEST_PATH} && tar -xf - ) | ||
47 | tar -cf - compat/ --exclude \*.in | ( cd ${D}${PTEST_PATH} && tar -xf - ) | ||
48 | tar -cf - quilt/ --exclude \*.in | ( cd ${D}${PTEST_PATH} && tar -xf - ) | ||
49 | tar -cf - test/ --exclude mail.test --exclude delete.test | ( cd ${D}${PTEST_PATH} && tar -xf - ) | ||
50 | cp ${WORKDIR}/Makefile ${D}${PTEST_PATH} | ||
51 | } | ||
52 | |||
53 | RDEPENDS_${PN}-ptest = "make file sed gawk diffutils findutils ed perl \ | ||
54 | perl-module-filehandle perl-module-getopt-std \ | ||
55 | perl-module-posix perl-module-file-temp \ | ||
56 | " | ||