From: Nick Bowler Date: Mon, 23 Jan 2023 04:31:24 +0000 (-0500) Subject: tests: Don't use AT_TESTED for optional build tools. X-Git-Url: https://git.draconx.ca/gitweb/dxcommon.git/commitdiff_plain/6fb8cf34b6e66e2b81d53f0d166fd2a6db6b01fb tests: Don't use AT_TESTED for optional build tools. 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. --- diff --git a/testsuite.at b/testsuite.at index a74969f..9c36c2f 100644 --- a/testsuite.at +++ b/testsuite.at @@ -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 &AS_MESSAGE_LOG_FD 2>&1 + # Reduce influence from the toplevel "make" invocation on test cases. AS_UNSET([MAKEFLAGS]) AS_UNSET([MAKELEVEL])