]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
tests: avoid FreeBSD make VPATH issues in more tests (see bug#7884)
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 18 Feb 2012 08:47:57 +0000 (09:47 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 18 Feb 2012 09:32:09 +0000 (10:32 +0100)
See also similar change 'v1.11-755-g818bc40' of 07-02-2012,
"tests: work around bug#7884 in many yacc/lex tests".  The
rationale for this change is basically the same.

* tests/lex-lib-external.test: Use "yl_distcheck" instead of
bare "$MAKE distcheck" to avoid extra failures caused by
automake bug#7884.
* tests/lex-noyywrap.test: Likewise.
* tests/lex-libobj.test: Likewise.
* tests/man6.test: This test suffers from the same FreeBSD make
incompatibility in VPATH handling that is the source of automake
bug#7884.  Since this is caused by rules that are defined in the
Makefile.am by the test itself, rather that being generated by
automake, the best thing to do is to skip this test if we detect
the presence of said make incompatibility (through the function
'useless_vpath_rebuild').
* tests/man8.test: Likewise.

tests/lex-lib-external.test
tests/lex-libobj.test
tests/lex-noyywrap.test
tests/man6.test
tests/man8.test

index d50ae395fea3e8afc67f9c7611a39716d306b443..47bee778acc0103e8c7aad65c9333c0e882a6229 100755 (executable)
@@ -71,6 +71,6 @@ if cross_compiling; then :; else
   echo BAD | ./lexer && Exit 1
   : For shells with busted 'set -e'.
 fi
-$MAKE distcheck
+yl_distcheck
 
 :
index 3bd4f8aa9d3bf1bff1beb168ba8b10e13ea8168f..3837a0b1bf383fa30789ed37e102c1c0dca18f4a 100755 (executable)
@@ -70,6 +70,6 @@ grep LIBOBJS Makefile # For debugging.
 grep '^LIBOBJS *=.*yywrap.*\.o' Makefile # Sanity check.
 $MAKE
 
-$MAKE distcheck
+yl_distcheck
 
 :
index 5b002c8d7b905947004ff94da2f3c873669c8f96..a0eb731e365c3f254f7d0ed0b0456fc2c098afe5 100755 (executable)
@@ -67,6 +67,6 @@ if cross_compiling; then :; else
 fi
 
 # Sanity check on distribution.
-$MAKE distcheck DISTCHECK_CONFIGURE_FLAGS='LEXLIB="none needed"'
+yl_distcheck DISTCHECK_CONFIGURE_FLAGS='LEXLIB="none needed"'
 
 :
index aa49049ea3c4a52bc8f1b4639a03849a66474ff4..daf08421b49d990efa880fa2ae6887f3b4ce9946 100755 (executable)
 required=help2man
 . ./defs || Exit 1
 
+# Avoid a spurious failure due to a known FreeBSD make incompatibility.
+useless_vpath_rebuild \
+  && skip_ "VPATH useless rebuild detected (see bug#7884)"
+
 cat > Makefile.am << 'END'
 dist_man_MANS = $(srcdir)/foobar.1 bazquux.1 zardoz.1
 dist_bin_SCRIPTS = foobar bazquux zardoz
index e03341bd342dbc2007bbd6a36fee3ebcddcf20bf..bdc0febf7a33ae1272bf57b78e86cc7bbc03bf66 100755 (executable)
 
 . ./defs || Exit 1
 
+# Avoid a spurious failure due to a known FreeBSD make incompatibility.
+useless_vpath_rebuild \
+  && skip_ "VPATH useless rebuild detected (see bug#7884)"
+
 cat > Makefile.am << 'END'
 dist_man_MANS = foo.1
 foo.1: