From: Paul Eggert Date: Wed, 25 Oct 2006 18:31:02 +0000 (+0000) Subject: * tests/tools.at (autom4te --force): New test, verifies that X-Git-Tag: AUTOCONF-2.61~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6fb86d615bd545309cfd3f7471c2d72ac31e77f;p=thirdparty%2Fautoconf.git * tests/tools.at (autom4te --force): New test, verifies that `--force' always rewrites the output file. --- diff --git a/ChangeLog b/ChangeLog index 2705995ca..66c47d188 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-10-25 Stepan Kasal + + * tests/tools.at (autom4te --force): New test, verifies that + `--force' always rewrites the output file. + 2006-10-24 Paul Eggert * doc/autoconf.texi (Limitations of Usual Tools): Document that rm diff --git a/tests/tools.at b/tests/tools.at index b41a75800..23548dfdb 100644 --- a/tests/tools.at +++ b/tests/tools.at @@ -114,6 +114,31 @@ AT_CHECK_M4SUGAR AT_CLEANUP +# autom4te --force +# ---------------- + +AT_SETUP([autom4te --force]) + +AT_DATA([file.m4], +[[right +]]) +AT_CHECK_AUTOM4TE([-o file file.m4]) + +# Create a file whose time stamp is in the future. +# (next year)-01-01 00:01 UTC should always be in the future, +# even on slow machines. +echo BAD >file +this_year=`TZ=UTC0 date +%Y` +TZ=UTC0 touch -t `expr $this_year + 1`01010001 file + +AT_CHECK_AUTOM4TE([--force -o file file.m4]) +AT_CHECK([cat file], 0, +[[right +]]) + +AT_CLEANUP + + ## ------------------ ##