fix two ptest issues
cover fix two ptest issues
The following changes since commit 59b0f7f01bbac6f1c10ee00382c5136d1f327960:
chrpath: Drop warning from darwn builds (2014-08-17 10:01:36 +0100)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib chonglu/perl
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=chonglu/perl
Chong Lu (2):
perl: fix the output format of all tests
strace: fix ptest execution failure
meta/recipes-devtools/perl/perl-5.20.0/run-ptest | 2 +- .../strace/strace-4.8/Makefile-ptest.patch | 17 +++++++++++++++-- 2 files changed, 16 insertions(+), 3 deletions(-)
Signature · 1 line
1.9.1
PATCH 1/2 perl: fix the output format of all tests
We should use "PASS:|FAIL:|SKIP: testname" to output results of ptest.
Signed-off-by Chong Lu <[email protected]>
--- meta/recipes-devtools/perl/perl-5.20.0/run-ptest | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/perl/perl-5.20.0/run-ptest +1 -1
@@ -1,2 +1,2 @@ #!/bin/sh -cd t && ./TEST | sed -u -e 's/^\([^. \t]*\)\.\.\.\+ok/PASS: \1/' -e 's/^\([^. \t]*\)\.\.\.\+skipped/SKIP: \1/' -e 's/^\([^. \t]*\)\.\.\.\+\(.*\)/FAIL: \1\n\2/' +cd t && ./TEST | sed -u -e 's|\(.*\) .* ok$|PASS: \1|' -e 's|\(.*\) .* skipped|SKIP: \1|' -e 's|\(.*\) \.\(.*\)|FAIL: \1|'
Signature · 1 line
1.9.1
PATCH 2/2 strace: fix ptest execution failure
In reply to Chong Luptest needs runtest-TESTS target.
serial-tests is required to generate this target.
Signed-off-by Chong Lu <[email protected]>
--- .../strace/strace-4.8/Makefile-ptest.patch | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-)
meta/recipes-devtools/strace/strace-4.8/Makefile-ptest.patch +15 -2
@@ -1,11 +1,13 @@ strace: Add ptest +Upstream-Status: Inappropriate + Signed-off-by: Gabriel Barbu <[email protected]> -Upstream-Status: Pending +Signed-off-by: Chong Lu <[email protected]> --- old/tests/Makefile.am 2013-07-23 13:44:24.660481381 +0200 +++ new/tests/Makefile.am 2013-07-23 16:22:42.937654391 +0200 -@@ -9,3 +9,20 @@ +@@ -9,3 +9,21 @@ EXTRA_DIST = init.sh $(TESTS) CLEANFILES = check.log
@@ -18,6 +20,7 @@ Upstream-Status: Pending + install -d $(DESTDIR)/$(TESTDIR) + cp $(BUILDDIR)/$(TESTDIR)/Makefile $(DESTDIR)/$(TESTDIR) + sed -i -e 's/^Makefile:/_Makefile:/' $(DESTDIR)/$(TESTDIR)/Makefile ++ sed -i -e 's/bash/sh/' $(DESTDIR)/$(TESTDIR)/Makefile + for file in $(check_PROGRAMS); do \ + install $(BUILDDIR)/$(TESTDIR)/$$file $(DESTDIR)/$(TESTDIR); \ + done
@@ -26,3 +29,13 @@ Upstream-Status: Pending + sed -i -e 's/$${srcdir=.}/./g' $(DESTDIR)/$(TESTDIR)/$$file; \ + done + sed -i -e 's/$$srcdir/./g' $(DESTDIR)/$(TESTDIR)/net +--- a/configure.ac ++++ b/configure.ac +@@ -6,7 +6,7 @@ AC_INIT([strace], + AC_CONFIG_SRCDIR([strace.c]) + AC_CONFIG_AUX_DIR([.]) + AC_CONFIG_HEADERS([config.h]) +-AM_INIT_AUTOMAKE([foreign dist-xz no-dist-gzip silent-rules]) ++AM_INIT_AUTOMAKE([foreign dist-xz no-dist-gzip silent-rules serial-tests]) + AM_MAINTAINER_MODE + AC_CANONICAL_HOST
Signature · 1 line
1.9.1