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:12:32 +0000 |
commit | 45bb0364e5f97e7d99b494df8d13e7f58265159f (patch) | |
tree | 802f201c6e1269d59a587a21ad90334b9a4a5ead /meta/recipes-devtools/quilt/quilt | |
parent | 4465c9368b0c37a3a2c41b68f65de08690a8179b (diff) | |
download | openembedded-core-contrib-45bb0364e5f97e7d99b494df8d13e7f58265159f.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.
Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-devtools/quilt/quilt')
-rw-r--r-- | meta/recipes-devtools/quilt/quilt/Makefile | 13 | ||||
-rwxr-xr-x | meta/recipes-devtools/quilt/quilt/run-ptest | 5 |
2 files changed, 18 insertions, 0 deletions
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 @@ +PATH := $(CURDIR)/bin:$(CURDIR)/compat:$(PATH) +QUILT_DIR := $(CURDIR)/quilt +QUILTRC := $(CURDIR)/test/test.quiltrc +export QUILT_DIR QUILTRC +CHECK_ENV := P=patches/; _P=../patches/; export P _P +-include test/.depend + +check-% : test/%.test + @LANG=C; LC_ALL=C; \ + export LANG LC_ALL; \ + $(CHECK_ENV); \ + cd $(<D); \ + ./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 @@ +#!/bin/sh + +ln -sf /bin/ed /usr/bin/ed +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 +rm -f /usr/bin/ed |