]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
[ng] tests: remove some workarounds for non-GNU make
authorStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 13 Apr 2012 20:59:31 +0000 (22:59 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 14 Apr 2012 08:40:25 +0000 (10:40 +0200)
* t/makej2.sh: Adjust heading comments.  Don't check whether $MAKE
groks the '-j' option: GNU make is assured to do so.
* t/check-concurrency-bug9245.sh: Likewise.  Fix botched indentation
since we are at it.
* t/remake4.sh: Adjust heading comments.
* t/parallel-tests6.sh: Likewise.
* t/deleted-am.sh: Remove extra '$sleep' call required to work around
a bug of FreeBSD make.
* t/colon6.test: Remove a workaround needed by HP-UX make.
* t/spy.test: Likewise.  Uncomment the part of the checks that still
wasn't portable to BSD make.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
t/check-concurrency-bug9245.sh
t/colon6.sh
t/deleted-am.sh
t/makej2.sh
t/parallel-tests6.sh
t/remake4.sh
t/spy.sh

index 8c9dc5395fada87da1967b7822107306399ac246..c2d3d53a3bbeee86298cfb8df46bb21209e7c195 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-# Look for a bug where FreeBSD make in concurrent mode reported success
-# even when the Automake-generated parallel testsuite harness failed.
+# Look for a bug where make in concurrent mode reported success even
+# when the Automake-generated parallel testsuite harness failed.
+# This issue was originally present only with FreeBSD make, but we
+# keep the test anyway, for extra safety.
 # See automake bug#9245.
 
 . ./defs || Exit 1
@@ -42,12 +44,9 @@ $AUTOMAKE -a
 
 ./configure
 
-# Some make implementations don't grok the '-j' option.
-$MAKE -j1 || Exit 77
-
 for j in '' -j1 -j2; do
   $MAKE $j check && Exit 1
-   $MAKE $j TESTS=foo.test check && Exit 1
+  $MAKE $j TESTS=foo.test check && Exit 1
   if test x"$am_parallel_tests" = x"yes"; then
     $MAKE $j recheck && Exit 1
     $MAKE $j TEST_LOGS=foo.log check && Exit 1
index 9f14d2a09eeb3b43d70d8467d89ad31ba2fb0804..09cc2eb15ab95537291fb69733689ebfcb69c3de 100755 (executable)
@@ -60,11 +60,6 @@ for vpath in : false; do
   cd demo
 
   $sleep
-  # HP-UX make considers targets with exact time stamps as one of their
-  # prerequisites out of date.  Ensure Makefile is newer than config.status to
-  # avoid triggering the am--refresh rule in the (here-nonexistent) toplevel
-  # Makefile.
-  touch Makefile
 
   # version.good should depend on version.gin.
   echo "Rebuilt (srcdir=$srcdir)" > ../$srcdir/demo/version.gin
index 636286cf96fcdfacec1a041322bc8eca3e7ef0f9..e8e7a2268637cb62989fee143c8911d44442a235 100755 (executable)
@@ -35,7 +35,6 @@ $AUTOMAKE
 $MAKE
 
 rm -f zardoz.am
-$sleep # Required to avoid racy failures with FreeBSD make.
 $MAKE >output 2>&1 && { cat output; Exit 1; }
 cat output
 # This error will come from automake, not make, so we can be stricter
@@ -49,7 +48,6 @@ $AUTOMAKE Makefile
 ./config.status Makefile
 $MAKE # Sanity check.
 rm -f foobar.am
-$sleep # Required to avoid racy failures with FreeBSD make.
 $MAKE >output 2>&1 && { cat output; Exit 1; }
 cat output
 # This error will come from automake, not make, so we can be stricter
index 8183887a44a6ba790e0987654ea57be634773670..3e89df6340c0fcdf1e3a6332142b10b2d687c903 100755 (executable)
@@ -17,6 +17,8 @@
 # Test to make sure known BSD 'make -jN' issues are fixed:
 # without -B, it may reuse the same shell for separate commands in a
 # rule, which can lead to interesting results.
+# Problems like this shouldn't happen with GNU make, but we keep the
+# test anyway for the moment, for extra safety.
 
 . ./defs || Exit 1
 
@@ -37,7 +39,6 @@ mkdir build
 cd build
 ../configure "--prefix=`pwd`/inst"
 
-$MAKE -j2 || skip_ "$MAKE failed to run with two parallel jobs"
 $MAKE -j2 distcheck
 $MAKE test-distdir-removed
 
index eee653810b839123c98ad36c4fbdad6e3e8fc6a0..60032952fcc472e2a1057e9263fbdb5931586b56 100755 (executable)
@@ -16,7 +16,6 @@
 
 # Check parallel-tests features:
 # - empty TESTS
-# BSD make will expand '$(TESTS:=.log)' to '.log' unless overridden.
 # See parallel-tests10.test for a similar issue.
 
 am_parallel_tests=yes
index 43f856994ed0d26d250f0b72907dd34741806818..c43a535ed51e3546a28611c50b9171afea133b84 100755 (executable)
@@ -21,7 +21,9 @@
 #
 # If this fails, this is likely to be due to a dependency being
 # given two different name.  For instance BSD Make does not know
-# that 'Makefile' is the same as './Makefile'
+# that 'Makefile' is the same as './Makefile'.  This shouldn't
+# happen with GNU make, but we keep the test anyway, for extra
+# safety.
 #
 # Report from Akim Demaille.
 
index 0d087a41a4ba14eab451944deca9693a6eaa919d..35303283e60fa89a2afe7ccd45878649dff61e84 100755 (executable)
--- a/t/spy.sh
+++ b/t/spy.sh
@@ -85,8 +85,6 @@ $sleep
 touch b
 $MAKE
 test "`cat a`" = rule1
-# Ensure a is strictly newer than b, so HP-UX make does not execute rule2.
-$sleep
 : > a
 $sleep
 touch c
@@ -96,11 +94,11 @@ test "`cat a`" = rule2
 # Unfortunately, the following is not portable to FreeBSD/NetBSD/OpenBSD
 # make, see explanation above.
 
-#: > a
-#$sleep
-#touch b c
-#$MAKE
-#grep rule1 a
-#grep rule2 a
+: > a
+$sleep
+touch b c
+$MAKE
+grep rule1 a
+grep rule2 a
 
 :