test defs: increase coverage w.r.t. GNU make
authorStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 3 May 2011 10:00:10 +0000 (12:00 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 3 May 2011 12:02:18 +0000 (14:02 +0200)
* tests/defs (GNUmake): Instead of just skipping the tests
requiring GNU make if $MAKE is not GNU make, try to look for
it and, if found, redefine $MAKE accordingly.  This will help
to transparently increase coverage on non-GNU systems which
have GNU make available in PATH.

ChangeLog
tests/defs

index 8fe1067..248ee13 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
 2011-05-03  Stefano Lattarini  <stefano.lattarini@gmail.com>
 
+       test defs: increase coverage w.r.t. GNU make
+       * tests/defs (GNUmake): Instead of just skipping the tests
+       requiring GNU make if $MAKE is not GNU make, try to look for
+       it and, if found, redefine $MAKE accordingly.  This will help
+       to transparently increase coverage on non-GNU systems which
+       have GNU make available in PATH.
+
+2011-05-03  Stefano Lattarini  <stefano.lattarini@gmail.com>
+
        tests: improve few inter-tests references
        * tests/acloca22.test: Improve and extend the heading comments.
        Add reference to related tests 'remake-deleted-m4-file.test' and
index 8c2b084..d85abf0 100644 (file)
@@ -266,8 +266,15 @@ do
         || skip_ "required program \`etags' not available"
       ;;
     GNUmake)
-      echo "$me: determine if $MAKE is GNU make"
-      using_gmake || skip_ "this test requires GNU make"
+      for make_ in "$MAKE" gmake gnumake :; do
+        MAKE=$make_ am__using_gmake=''
+        test "$MAKE" =  : && break
+        echo "$me: determine whether $MAKE is GNU make"
+        using_gmake && break
+      done
+      test "$MAKE" = : && skip_ "this test requires GNU make"
+      export MAKE
+      unset make_
       ;;
     gcc)
       # When gcc is required, export `CC=gcc' so that ./configure