From: Stefano Lattarini Date: Tue, 3 May 2011 10:00:10 +0000 (+0200) Subject: test defs: increase coverage w.r.t. GNU make X-Git-Tag: v1.11b~257^2~251 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=85e0679093b6981aac816f4fe05ebd8b0b654cdc;p=platform%2Fupstream%2Fautomake.git 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. --- diff --git a/ChangeLog b/ChangeLog index 8fe1067..248ee13 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,14 @@ 2011-05-03 Stefano Lattarini + 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 + 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 diff --git a/tests/defs b/tests/defs index 8c2b084..d85abf0 100644 --- a/tests/defs +++ b/tests/defs @@ -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