]> git.draconx.ca Git - dxcommon.git/commitdiff
tests: Don't use AT_TESTED for optional build tools.
authorNick Bowler <nbowler@draconx.ca>
Mon, 23 Jan 2023 04:31:24 +0000 (23:31 -0500)
committerNick Bowler <nbowler@draconx.ca>
Mon, 23 Jan 2023 05:05:47 +0000 (00:05 -0500)
Turns out that AT_TESTED causes a hard failure if a listed tool is not
installed.  This makes it useless to get version numbers recorded for
build tools that may or may not be available, so I guess we just have
to code that up explicitly.

testsuite.at

index a74969ff659d81fecb6d27f7eb405a3a9413f0f4..9c36c2f330a59465b89d85813736ee91c4f7d7bc 100644 (file)
@@ -1,5 +1,5 @@
 AT_COPYRIGHT([dnl
-Copyright © 2015,2019-2022 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])