diff options
-rw-r--r-- | meta/recipes-devtools/quilt/quilt-0.61.inc | 24 | ||||
-rw-r--r-- | meta/recipes-devtools/quilt/quilt/Makefile | 13 | ||||
-rwxr-xr-x | meta/recipes-devtools/quilt/quilt/run-ptest | 5 |
3 files changed, 40 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 | " | ||
diff --git a/meta/recipes-devtools/quilt/quilt/Makefile b/meta/recipes-devtools/quilt/quilt/Makefile new file mode 100644 index 0000000000..7b3ac8a492 --- /dev/null +++ b/meta/recipes-devtools/quilt/quilt/Makefile | |||
@@ -0,0 +1,13 @@ | |||
1 | PATH := $(CURDIR)/bin:$(CURDIR)/compat:$(PATH) | ||
2 | QUILT_DIR := $(CURDIR)/quilt | ||
3 | QUILTRC := $(CURDIR)/test/test.quiltrc | ||
4 | export QUILT_DIR QUILTRC | ||
5 | CHECK_ENV := P=patches/; _P=../patches/; export P _P | ||
6 | -include test/.depend | ||
7 | |||
8 | check-% : test/%.test | ||
9 | @LANG=C; LC_ALL=C; \ | ||
10 | export LANG LC_ALL; \ | ||
11 | $(CHECK_ENV); \ | ||
12 | cd $(<D); \ | ||
13 | ./run -q $(<F) | ||
diff --git a/meta/recipes-devtools/quilt/quilt/run-ptest b/meta/recipes-devtools/quilt/quilt/run-ptest new file mode 100755 index 0000000000..1ea0dae128 --- /dev/null +++ b/meta/recipes-devtools/quilt/quilt/run-ptest | |||
@@ -0,0 +1,5 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | ln -sf /bin/ed /usr/bin/ed | ||
4 | for i in `ls test/*.test |awk -F. '{print $1}' |awk -F/ '{print $2}'`; do make check-$i; if [ $? == 0 ]; then echo PASS: $i.test; else echo FAIL: $i.test; fi; done | ||
5 | rm -f /usr/bin/ed | ||