]> git.draconx.ca Git - dxcommon.git/blob - testsuite.at
Fix Autotest depfiles generation with non-GNU makes.
[dxcommon.git] / testsuite.at
1 AT_COPYRIGHT([dnl
2 Copyright © 2015,2019-2021 Nick Bowler
3 License WTFPL2: Do What The Fuck You Want To Public License, version 2.
4 This is free software: you are free to do what the fuck you want to.
5 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_divert_push([PREPARE_TESTS])dnl
13 # Reduce influence from the toplevel "make" invocation on test cases.
14 AS_UNSET([MAKEFLAGS])
15 AS_UNSET([MAKELEVEL])
16 AS_UNSET([MFLAGS])
17 m4_divert_pop([PREPARE_TESTS])
18
19 m4_define([TEST_CONFIGURE_AC], [AT_KEYWORDS([autoconf m4])dnl
20 AT_DATA([configure.ac],
21 [[AC_INIT([test], [0])
22 ]$1[
23 AC_OUTPUT
24 ]])
25 cp "$srcdir/install-sh" \
26    "$srcdir/depcomp" \
27    "$srcdir/missing" \
28    "$srcdir/config.guess" \
29    "$srcdir/config.sub" \
30    .
31 ])
32 m4_define([TEST_AUTORECONF], [AT_KEYWORDS([autoconf])dnl
33 AT_CHECK([autoreconf -I "$srcdir/m4"], [0], [], [stderr])])
34
35 m4_define([TEST_CONFIGURE], [AT_KEYWORDS([configure])dnl
36 AT_CHECK([export CC; ./configure $1], [0], [ignore])])
37
38 m4_include([tests/macros.at])
39 m4_include([tests/snippets.at])
40 m4_include([tests/functions.at])
41 m4_include([tests/programs.at])
42 m4_include([tests/libs.at])
43 m4_include([tests/scripts.at])