summaryrefslogtreecommitdiff
path: root/tests/torture.at
diff options
context:
space:
mode:
Diffstat (limited to 'tests/torture.at')
-rw-r--r--tests/torture.at38
1 files changed, 38 insertions, 0 deletions
diff --git a/tests/torture.at b/tests/torture.at
index 631f34f4..f9bcf5e5 100644
--- a/tests/torture.at
+++ b/tests/torture.at
@@ -1926,3 +1926,41 @@ AT_CHECK([autoreconf -Werror -Wportability-recursive], 0, [], [])
rm -rf configure config.h.in Makefile.in aclocal.m4 autom4te.cache
AT_CLEANUP
+
+## ------------------------- ##
+## Missing auxiliary files. ##
+## ------------------------- ##
+
+AT_SETUP([Missing auxiliary files])
+
+AT_DATA([configure.ac],
+[[AC_INIT([GNU foo], [1.0])
+AC_CONFIG_AUX_DIR([build-aux])
+AC_CANONICAL_HOST
+AC_OUTPUT
+]])
+
+AT_CHECK_AUTOCONF
+AT_CHECK_CONFIGURE([], [1], [ignore],
+[configure: error: cannot find required auxiliary files: config.guess config.sub
+])
+
+: > build-aux/config.guess
+
+AT_CHECK_CONFIGURE([], [1], [ignore],
+[configure: error: cannot find required auxiliary files: config.sub
+])
+
+AT_DATA([configure.ac],
+[[AC_INIT([GNU foo], [1.0])
+AC_CONFIG_AUX_DIR([build-aux])
+AC_PROG_INSTALL
+AC_OUTPUT
+]])
+
+AT_CHECK_AUTOCONF
+AT_CHECK_CONFIGURE([], [1], [ignore],
+[configure: error: cannot find required auxiliary files: install-sh
+])
+
+AT_CLEANUP