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 d50ae39..47bee77 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 3bd4f8a..3837a0b 100755 (executable)
@@ -70,6 +70,6 @@ grep LIBOBJS Makefile # For debugging.
 grep '^LIBOBJS *=.*yywrap.*\.o' Makefile # Sanity check.
 $MAKE
 
-$MAKE distcheck
+yl_distcheck
 
 :
index 5b002c8..a0eb731 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 aa49049..daf0842 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 e03341b..bdc0feb 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: