From 6fb8cf34b6e66e2b81d53f0d166fd2a6db6b01fb Mon Sep 17 00:00:00 2001 From: Nick Bowler Date: Sun, 22 Jan 2023 23:31:24 -0500 Subject: [PATCH] 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. --- testsuite.at | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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]) -- 2.43.2