From: Tom Tromey Date: Thu, 17 May 2001 03:14:24 +0000 (+0000) Subject: For PR automake/175: X-Git-Tag: Release-1-4f~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51e79b8bafb8e232a91dec3f705ec9f70705604b;p=thirdparty%2Fautomake.git For PR automake/175: * tests/Makefile.am (XFAIL_TESTS): Added make.test. * tests/make.test: Run test with `make -w'. --- diff --git a/ChangeLog b/ChangeLog index 74a0445cf..ef2772ee6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2001-05-16 Tom Tromey + For PR automake/175: + * tests/Makefile.am (XFAIL_TESTS): Added make.test. + * tests/make.test: Run test with `make -w'. + * tests/Makefile.am (TESTS): Removed maintclean.test. * lib/am/clean.am (maintainer-clean-generic): Don't remove Makefile.in. diff --git a/tests/Makefile.am b/tests/Makefile.am index 2232fcbff..302304dd4 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -2,7 +2,7 @@ AUTOMAKE_OPTIONS = gnits -XFAIL_TESTS = subdir5.test +XFAIL_TESTS = subdir5.test make.test TESTS = \ acinclude.test \ diff --git a/tests/Makefile.in b/tests/Makefile.in index 96a208700..78ef0fc4f 100644 --- a/tests/Makefile.in +++ b/tests/Makefile.in @@ -70,7 +70,7 @@ install_sh = @install_sh@ AUTOMAKE_OPTIONS = gnits -XFAIL_TESTS = subdir5.test +XFAIL_TESTS = subdir5.test make.test TESTS = \ acinclude.test \ diff --git a/tests/make.test b/tests/make.test index cd2e70069..99c4218b7 100755 --- a/tests/make.test +++ b/tests/make.test @@ -27,9 +27,21 @@ export ACLOCAL export AUTOCONF export AUTOMAKE -./configure -touch configure.in -$MAKE +# Do the test twice -- once with make and once with make -w. +# This tests for a bug reported by Rainer Orth. + +save="$MAKE" +for flag in '' -w; do + MAKE="$save $flag" ./configure + + fgrep '_am_include = #' Makefile && exit 1 + + touch configure.in + $MAKE $flag + + fgrep '_am_include = #' Makefile && exit 1 + + rm -f config.cache +done -fgrep '_am_include = #' Makefile && exit 1 exit 0