]> git.draconx.ca Git - dxcommon.git/blob - testsuite.at
3c5fdacefd5e4952838e769e10cb3dce305b4399
[dxcommon.git] / testsuite.at
1 dnl Copyright © 2015,2019-2020 Nick Bowler
2 dnl
3 dnl License WTFPL2: Do What The Fuck You Want To Public License, version 2.
4 dnl This is free software: you are free to do what the fuck you want to.
5 dnl There is NO WARRANTY, to the extent permitted by law.
6
7 AT_INIT
8 AT_COLOR_TESTS
9
10 AT_TESTED([prove])
11
12 m4_define([TEST_CONFIGURE_AC], [AT_KEYWORDS([autoconf m4])dnl
13 AT_DATA([configure.ac],
14 [[AC_INIT([test], [0])
15 ]$1[
16 AC_OUTPUT
17 ]])
18 cp "$srcdir/install-sh" \
19    "$srcdir/config.guess" \
20    "$srcdir/config.sub" \
21    .
22 ])
23 m4_define([TEST_AUTORECONF], [AT_KEYWORDS([autoconf])dnl
24 AT_CHECK([autoreconf -I "$srcdir/m4"], [0], [], [stderr])])
25
26 m4_define([TEST_CONFIGURE], [AT_KEYWORDS([configure])dnl
27 AT_CHECK([./configure $1], [0], [ignore])])
28
29 m4_include([tests/macros.at])
30 m4_include([tests/functions.at])
31 m4_include([tests/programs.at])
32 m4_include([tests/libs.at])