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.])
12 m4_divert_push([PREPARE_TESTS])dnl
13 # Reduce influence from the toplevel "make" invocation on test cases.
17 m4_divert_pop([PREPARE_TESTS])
19 m4_define([TEST_CONFIGURE_AC], [AT_KEYWORDS([autoconf m4])dnl
20 AT_DATA([configure.ac],
21 [[AC_INIT([test], [0])
25 cp "$srcdir/install-sh" \
28 "$srcdir/config.sub" \
30 # Simplified config.guess script avoids some spurious testcase failures
31 # when using heirloom-sh on GNU/Linux.
32 config_guess=`"$srcdir/config.guess"`
33 cat >config.guess <<EOF
41 m4_define([TEST_AUTORECONF], [AT_KEYWORDS([autoconf])dnl
42 AT_CHECK([autoreconf -I "$srcdir/m4"], [0], [], [stderr])])
44 m4_define([TEST_CONFIGURE], [AT_KEYWORDS([configure])dnl
46 CONFIG_SHELL=$TEST_SHELL $TEST_SHELL ./configure CONFIG_SHELL=$TEST_SHELL $1],
49 m4_include([tests/macros.at])
50 m4_include([tests/snippets.at])
51 m4_include([tests/functions.at])
52 m4_include([tests/programs.at])
53 m4_include([tests/libs.at])
54 m4_include([tests/scripts.at])