diff options
Diffstat (limited to 'tests/remake9a.test')
-rwxr-xr-x | tests/remake9a.test | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/tests/remake9a.test b/tests/remake9a.test index d46f31742..9139b461e 100755 --- a/tests/remake9a.test +++ b/tests/remake9a.test @@ -17,12 +17,17 @@ # Test remake rules when configure.in or its prerequisites change. # Keep in sync with the other sister tests `remake9*.test'. -required=GNUmake . ./defs || Exit 1 magic1=::MagicStringOne:: magic2=__MagicStringTwo__ +if using_gmake; then + remake_() { $MAKE nil; } +else + remake_() { $MAKE Makefile && $MAKE foo.sh; } +fi + cat >> configure.in <<END FINGERPRINT=BadBadBad AC_SUBST([FINGERPRINT]) @@ -73,7 +78,7 @@ for vpath in : false; do $sleep sed "s/^\\(FINGERPRINT\\)=.*/\\1=$magic1/" $srcdir/configure.in >t mv -f t $srcdir/configure.in - $MAKE nil + remake_ $FGREP FINGERPRINT Makefile # for debugging $FGREP $magic1 Makefile test x"`./foo.sh`" = x"$magic1" @@ -81,7 +86,7 @@ for vpath in : false; do $sleep echo 'sed "s/^\\(FINGERPRINT\\)=.*/\\1='$magic2'/"' \ > $srcdir/tweak-configure-in - $MAKE nil + remake_ $FGREP FINGERPRINT Makefile # for debugging $FGREP $magic1 Makefile && Exit 1 $FGREP $magic2 Makefile @@ -91,6 +96,7 @@ for vpath in : false; do echo cat > $srcdir/tweak-configure-in # no-op again sed "s/^\\(FINGERPRINT\\)=.*/\\1=DummyValue/" $srcdir/configure.in >t mv -f t $srcdir/configure.in + using_gmake || remake_ $MAKE distcheck $FGREP $magic1 Makefile && Exit 1 # sanity check $FGREP $magic2 Makefile && Exit 1 # likewise |