]> git.draconx.ca Git - dxcommon.git/blobdiff - testsuite.at
tests: Don't use AT_TESTED for optional build tools.
[dxcommon.git] / testsuite.at
index f25bb337be6c62f18ab447c069ffa0fe47e41635..9c36c2f330a59465b89d85813736ee91c4f7d7bc 100644 (file)
@@ -1,5 +1,5 @@
 AT_COPYRIGHT([dnl
-Copyright © 2015,2019-2021 Nick Bowler
+Copyright © 2015,2019-2023 Nick Bowler
 License WTFPL2: Do What The Fuck You Want To Public License, version 2.
 This is free software: you are free to do what the fuck you want to.
 There is NO WARRANTY, to the extent permitted by law.])
@@ -7,9 +7,13 @@ There is NO WARRANTY, to the extent permitted by law.])
 AT_INIT
 AT_COLOR_TESTS
 
-AT_TESTED([prove])
-
 m4_divert_push([PREPARE_TESTS])dnl
+{
+  AS_ECHO(["% prove --version"])
+  prove --version </dev/null
+  echo
+} >&AS_MESSAGE_LOG_FD 2>&1
+
 # Reduce influence from the toplevel "make" invocation on test cases.
 AS_UNSET([MAKEFLAGS])
 AS_UNSET([MAKELEVEL])
@@ -25,6 +29,7 @@ AC_OUTPUT
 cp "$srcdir/install-sh" \
    "$srcdir/depcomp" \
    "$srcdir/missing" \
+   "$srcdir/compile" \
    "$srcdir/config.sub" \
    .
 # Simplified config.guess script avoids some spurious testcase failures
@@ -43,8 +48,8 @@ AT_CHECK([autoreconf -I "$srcdir/m4"], [0], [], [stderr])])
 
 m4_define([TEST_CONFIGURE], [AT_KEYWORDS([configure])dnl
 AT_CHECK([export CC
-CONFIG_SHELL=$TEST_SHELL $TEST_SHELL ./configure CONFIG_SHELL=$TEST_SHELL $1],
-[0], [ignore])])
+CONFIG_SHELL=$TEST_SHELL $TEST_SHELL m4_default([$2],
+[./configure]) --quiet CONFIG_SHELL=$TEST_SHELL $1])])
 
 m4_include([tests/macros.at])
 m4_include([tests/snippets.at])