]> git.draconx.ca Git - dxcommon.git/blobdiff - testsuite.at
Improve GLib probe against old GLib versions.
[dxcommon.git] / testsuite.at
index aa5abaf5ca79a7463afa89fc9a6308616b38651a..eff4408aab14ef39f3ee06ab8b9c7fb31bbb53d3 100644 (file)
@@ -1,4 +1,4 @@
-dnl Copyright © 2015 Nick Bowler
+dnl Copyright © 2015,2019-2020 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.
@@ -7,4 +7,26 @@ dnl There is NO WARRANTY, to the extent permitted by law.
 AT_INIT
 AT_COLOR_TESTS
 
+AT_TESTED([prove])
+
+m4_define([TEST_CONFIGURE_AC], [AT_KEYWORDS([autoconf m4])dnl
+AT_DATA([configure.ac],
+[[AC_INIT([test], [0])
+]$1[
+AC_OUTPUT
+]])
+cp "$srcdir/install-sh" \
+   "$srcdir/config.guess" \
+   "$srcdir/config.sub" \
+   .
+])
+m4_define([TEST_AUTORECONF], [AT_KEYWORDS([autoconf])dnl
+AT_CHECK([autoreconf -I "$srcdir/m4"], [0], [], [stderr])])
+
+m4_define([TEST_CONFIGURE], [AT_KEYWORDS([configure])dnl
+AT_CHECK([export CC; ./configure $1], [0], [ignore])])
+
 m4_include([tests/macros.at])
+m4_include([tests/functions.at])
+m4_include([tests/programs.at])
+m4_include([tests/libs.at])