]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* tests/atgeneral.m4 (AT_INIT): Warn when at-check-line is
authorAkim Demaille <akim@epita.fr>
Wed, 28 Feb 2001 09:33:30 +0000 (09:33 +0000)
committerAkim Demaille <akim@epita.fr>
Wed, 28 Feb 2001 09:33:30 +0000 (09:33 +0000)
missing.
* tests/tools.at (Syntax of the scripts): Use AT_CHECK to test
/bin/sh -n.  Exit 77 on failure.
Reported by Harlan Stenn.

ChangeLog
lib/autotest/general.m4
tests/atgeneral.m4
tests/tools.at

index 16bf6471077be097b04e086e139cea6193c8339d..b592042be60e52abb62679e5a51f3669af60287f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2001-02-28  Akim Demaille  <akim@epita.fr>
+
+       * tests/atgeneral.m4 (AT_INIT): Warn when at-check-line is
+       missing.
+       * tests/tools.at (Syntax of the scripts): Use AT_CHECK to test
+       /bin/sh -n.  Exit 77 on failure.
+       Reported by Harlan Stenn.
+
 2001-02-28  Akim Demaille  <akim@epita.fr>
 
        * acgeneral.m4 (_AC_INIT_PREPARE_FS_SEPARATORS): Use `.;.' instead
index 2de4d118f9c63ec4eb4304983ec1780698f52a56..1fbd174d35262a398f5433f23802eb019b672624 100644 (file)
@@ -225,6 +225,14 @@ m4_divert([TAIL])[]dnl
     continue
     ;;
   esac
+  if test ! -f at-check-line; then
+    echo "$am_me: warning: no at-check-line which means a failure happened"
+    echo "$am_me: warning: in a [AT_SETUP/AT_CLEANUP] pair before any"
+    echo "$am_me: warning: AT_CHECK could be run.  This test suite is"
+    echo "$am_me: warning: improperly designed, please report to"
+    echo "$am_me: warning: <$at_bugreport>."
+    cp at-setup-line at-check-line
+  fi
   case $at_test in
     banner-*) ;;
     *)
index 2de4d118f9c63ec4eb4304983ec1780698f52a56..1fbd174d35262a398f5433f23802eb019b672624 100644 (file)
@@ -225,6 +225,14 @@ m4_divert([TAIL])[]dnl
     continue
     ;;
   esac
+  if test ! -f at-check-line; then
+    echo "$am_me: warning: no at-check-line which means a failure happened"
+    echo "$am_me: warning: in a [AT_SETUP/AT_CLEANUP] pair before any"
+    echo "$am_me: warning: AT_CHECK could be run.  This test suite is"
+    echo "$am_me: warning: improperly designed, please report to"
+    echo "$am_me: warning: <$at_bugreport>."
+    cp at-setup-line at-check-line
+  fi
   case $at_test in
     banner-*) ;;
     *)
index 721b823028e289595701a8c5164ca96629f4cf3c..dcb981142f09ce011f97e3db6771825cd4b65ada 100644 (file)
@@ -45,22 +45,24 @@ sleep 2
 if kill $! >/dev/null 2>&1; then
   # We managed to kill the child, which means that we probably
   # can't trust `/bin/sh -n', hence the test failed.
-  exit 1
+  exit 77
 fi
 ]])
 
-if /bin/sh ./syntax.sh; then
-  # Specify the path to the tool, some shells don't honor PATH
-  # when running `sh PROG'.
-  AT_CHECK([/bin/sh -n ../autoconf],   0)
-  AT_CHECK([/bin/sh -n ../autoreconf], 0)
-  AT_CHECK([/bin/sh -n ../ifnames],    0)
-
-  # These are not built, they are in the src tree.
-  AT_CHECK([/bin/sh -n $top_srcdir/install-sh], 0)
-  AT_CHECK([/bin/sh -n $top_srcdir/mkinstalldirs], 0)
-  AT_CHECK([/bin/sh -n $top_srcdir/missing], 0)
-fi
+# If we can't trust sh, just skip.
+AT_CHECK([/bin/sh ./syntax.sh])
+
+# Specify the path to the tool, some shells don't honor PATH when
+# running `sh PROG'.
+
+AT_CHECK([/bin/sh -n ../autoconf],   0)
+AT_CHECK([/bin/sh -n ../autoreconf], 0)
+AT_CHECK([/bin/sh -n ../ifnames],    0)
+
+# These are not built, they are in the src tree.
+AT_CHECK([/bin/sh -n $top_srcdir/install-sh], 0)
+AT_CHECK([/bin/sh -n $top_srcdir/mkinstalldirs], 0)
+AT_CHECK([/bin/sh -n $top_srcdir/missing], 0)
 
 AT_CLEANUP