]> git.draconx.ca Git - dxcommon.git/commitdiff
Check for stray configure output.
authorNick Bowler <nbowler@draconx.ca>
Sun, 30 Jan 2022 03:02:47 +0000 (22:02 -0500)
committerNick Bowler <nbowler@draconx.ca>
Sun, 30 Jan 2022 03:49:05 +0000 (22:49 -0500)
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.

tests/libs.at
testsuite.at

index 8689c380d6fba819652c7eb576fae1da7f21463e..c57f68076cb60aec3d1680daad7042026fd74df4 100644 (file)
@@ -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"
index f25bb337be6c62f18ab447c069ffa0fe47e41635..998fa5cbec84a2549c8a0dd06224a19ccf3a0ad9 100644 (file)
@@ -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])