]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* tests/tools.at (autoupdate): Strengthen and check autoupdate's
authorAkim Demaille <akim@epita.fr>
Tue, 5 Dec 2000 13:52:49 +0000 (13:52 +0000)
committerAkim Demaille <akim@epita.fr>
Tue, 5 Dec 2000 13:52:49 +0000 (13:52 +0000)
idempotency.

ChangeLog
tests/tools.at

index aa35544eb23fab69c0b631792d06a12ef0f03fdf..414c6f5df54ac9fc9747690f7173011ba5583db8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-12-05  Akim Demaille  <akim@epita.fr>
+
+       * tests/tools.at (autoupdate): Strengthen and check autoupdate's
+       idempotency.
+
 2000-12-05  Akim Demaille  <akim@epita.fr>
 
        * tests/atspecific.m4 (_AT_CHECK_AC_MACRO): s/cp -f/mv -f/.
index 63725bab19faf34137ada86df8969c5985e69a43..c5cadef5fdb9f7b8aca86230a7ea14c3b45540c7 100644 (file)
@@ -165,23 +165,33 @@ AT_CLEANUP
 AT_SETUP([autoupdate])
 
 AT_DATA(configure.in,
-[[AC_INIT
+[[AC_INIT(Test, 1.0)
 AC_CANONICAL_SYSTEM
 dnl The doc says 27 is a valid fubar.
 fubar=27
 AC_OUTPUT(Makefile, echo $fubar, fubar=$fubar)
 ]])
 
-# Checking `autoupdate'.
-AT_CHECK([autoupdate --autoconf-dir $top_srcdir -<configure.in], 0,
-[[AC_INIT
+AT_DATA([expout],
+[[AC_INIT([Test],[1.0])
 AC_CANONICAL_TARGET([])
 dnl The doc says 27 is a valid fubar.
 fubar=27
 AC_CONFIG_FILES([Makefile])
 AC_CONFIG_COMMANDS([default],[[echo $fubar]],[[fubar=$fubar]])
 AC_OUTPUT
-]], [])
+]])
+
+# Checking `autoupdate'.
+AT_CHECK([autoupdate --autoconf-dir $top_srcdir], 0, [],
+         [autoupdate: `configure.in' is updated
+])
+AT_CHECK([cat configure.in], 0, [expout])
+# Checking that `autoupdate' is idempotent
+AT_CHECK([autoupdate --autoconf-dir $top_srcdir], 0, [],
+         [autoupdate: `configure.in' is unchanged
+])
+AT_CHECK([cat configure.in], 0, [expout])
 
 AT_CLEANUP