From: Nick Bowler Date: Sun, 30 Jan 2022 03:02:47 +0000 (-0500) Subject: Check for stray configure output. X-Git-Url: https://git.draconx.ca/gitweb/dxcommon.git/commitdiff_plain/afc0149dd2e0393d529c5322f25396039872f787 Check for stray configure output. Instead of ignoring all configure output in tests, we can use the --quiet option to suppress informational messages and then ensure the output is empty. This should catch stray output from macros. --- diff --git a/tests/libs.at b/tests/libs.at index 8689c38..c57f680 100644 --- a/tests/libs.at +++ b/tests/libs.at @@ -1,4 +1,4 @@ -dnl Copyright © 2019 Nick Bowler +dnl Copyright © 2019-2020, 2022 Nick Bowler dnl dnl License WTFPL2: Do What The Fuck You Want To Public License, version 2. dnl This is free software: you are free to do what the fuck you want to. @@ -21,6 +21,7 @@ do case \$arg in --cflags) cflags=]$1[;; --libs) libs=]$2[;; + --atleast-pkgconfig-version) exit;; esac done printf '%s %s\n' "\$cflags" "\$libs" diff --git a/testsuite.at b/testsuite.at index f25bb33..998fa5c 100644 --- a/testsuite.at +++ b/testsuite.at @@ -1,5 +1,5 @@ AT_COPYRIGHT([dnl -Copyright © 2015,2019-2021 Nick Bowler +Copyright © 2015,2019-2022 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.]) @@ -43,8 +43,7 @@ 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 ./configure --quiet CONFIG_SHELL=$TEST_SHELL $1])]) m4_include([tests/macros.at]) m4_include([tests/snippets.at])