From: Stefano Lattarini Date: Tue, 21 Dec 2010 14:38:08 +0000 (+0100) Subject: distlinksbrk.test: Work around botched "make -k". X-Git-Tag: v1.12.0b~422^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2f8861f47415fc98ee381cb13824176ed5932726;p=platform%2Fupstream%2Fautomake.git distlinksbrk.test: Work around botched "make -k". * tests/distlinksbrk.test: Run "make" multiple times and grep its output each time for a single error message, rather than running "make -k" one single time and grepping its output for all the expected error messages. This should work around make implementations with limited (broken?) `-k' support; for more information, see these subthreads on the automake-patches list: - 2010-11-15, "Testsuite failures on HP-UX 11.23", - 2010-11-15, "Testsuite failures on IRIX 6.5", --- diff --git a/ChangeLog b/ChangeLog index cd301e3..cc6b22a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,17 @@ +2010-12-22 Stefano Lattarini + + distlinksbrk.test: Work around botched "make -k". + * tests/distlinksbrk.test: Run "make" multiple times and grep + its output each time for a single error message, rather than + running "make -k" one single time and grepping its output for + all the expected error messages. This should work around make + implementations with limited (broken?) `-k' support; for more + information, see these subthreads on the automake-patches list: + - 2010-11-15, "Testsuite failures on HP-UX 11.23", + + - 2010-11-15, "Testsuite failures on IRIX 6.5", + + 2010-06-21 Stefano Lattarini Add a test checking that distributed broken symlinks cause diff --git a/tests/distlinksbrk.test b/tests/distlinksbrk.test index 1e478ab..2314408 100755 --- a/tests/distlinksbrk.test +++ b/tests/distlinksbrk.test @@ -49,30 +49,25 @@ test -h $lnk2 test -h $lnka test -h $lnkb -cat >>configure.in <> configure.in <<'END' AC_OUTPUT END -cat > Makefile.am <out 2>&1 || : # don't trust the exit status of make -k -cat out -$FGREP $lnk1 out -$FGREP $lnk2 out -$FGREP $lnka out -$FGREP $lnkb out +# Don't try to use "make -k", because some botched make implementations +# (HP-UX, IRIX) might still exit on the first error in this situations. +for lnk in $lnk1 $lnk2 $lnka $lnkb; do + echo "EXTRA_DIST = $lnk" > Makefile.am + $AUTOMAKE + ./configure + # Distribution must fail, with a decent error message. + $MAKE distdir >out 2>&1 && { cat out; Exit 1; } + cat out + $FGREP $lnk out +done :