From: Ralf Wildenhues Date: Tue, 10 Mar 2009 20:10:25 +0000 (+0100) Subject: parallel-tests: Fix summary output. X-Git-Tag: v1.10b~6^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a17fc032e187e001b81958c9db1a7020ab66a5f;p=thirdparty%2Fautomake.git parallel-tests: Fix summary output. * lib/am/check.am (am__text_box): Fix unportable sed script, replacing `\n' in the right hand side of an `s' command with a literal newline. Kudos to Bruno Haible for the newline idea. * tests/parallel-tests.test: Update test to expose this. Signed-off-by: Ralf Wildenhues --- diff --git a/ChangeLog b/ChangeLog index e7d014546..ae46e23eb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2009-03-10 Ralf Wildenhues + + parallel-tests: Fix summary output. + * lib/am/check.am (am__text_box): Fix unportable sed script, + replacing `\n' in the right hand side of an `s' command with + a literal newline. Kudos to Bruno Haible for the newline idea. + * tests/parallel-tests.test: Update test to expose this. + 2009-03-08 Ralf Wildenhues Overhaul of tests/README. diff --git a/lib/am/check.am b/lib/am/check.am index 77e62714f..c01a25a29 100644 --- a/lib/am/check.am +++ b/lib/am/check.am @@ -75,7 +75,8 @@ am__rst_title = sed 's/.*/ & /;h;s/./=/g;p;x;p;g;p;s/.*//' am__rst_section = sed 'p;s/./=/g;p;g' # Put stdin (possibly several lines separated by ". ") in a box. -am__text_box = sed 's/\. /\n/g' | sed '/^$$/d' | \ +am__text_box = { nlinit=`echo 'nl="'; echo '"'`; eval "$$nlinit"; \ + sed "s/\\. /\\$$nl/g"; } | sed '/^$$/d' | \ $(AWK) '{ if (final) final = final "\n" $$0; else final = $$0; }\ max < length($$0) { max = length($$0); } \ END { \ diff --git a/tests/Makefile.in b/tests/Makefile.in index af615dc45..78365acdc 100644 --- a/tests/Makefile.in +++ b/tests/Makefile.in @@ -92,7 +92,8 @@ am__base_list = \ am__rst_title = sed 's/.*/ & /;h;s/./=/g;p;x;p;g;p;s/.*//' am__rst_section = sed 'p;s/./=/g;p;g' # Put stdin (possibly several lines separated by ". ") in a box. -am__text_box = sed 's/\. /\n/g' | sed '/^$$/d' | \ +am__text_box = { nlinit=`echo 'nl="'; echo '"'`; eval "$$nlinit"; \ + sed "s/\\. /\\$$nl/g"; } | sed '/^$$/d' | \ $(AWK) '{ if (final) final = final "\n" $$0; else final = $$0; }\ max < length($$0) { max = length($$0); } \ END { \ diff --git a/tests/parallel-tests.test b/tests/parallel-tests.test index 6e4b8782d..2482f30b6 100755 --- a/tests/parallel-tests.test +++ b/tests/parallel-tests.test @@ -70,6 +70,8 @@ test `grep -c '^FAIL' mylog.log` -eq 1 test -f baz.log test -f bar.log test -f foo.log +# The summary should be formatted correctly. +grep 'failedn' stdout && Exit 1 # clean should remove all log files (but not more). : > unrelated.log