+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
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-*) ;;
*)
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-*) ;;
*)
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