1 AT_COPYRIGHT([Copyright © 2020 Nick Bowler])
3 # This program is free software: you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation, either version 3 of the License, or
6 # (at your option) any later version.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with this program. If not, see <https://www.gnu.org/licenses/>.
21 AT_ARG_OPTION_ARG([random-seed],
22 [AS_HELP_STRING([--random-seed=ARG],
23 [Integer seed for randomized testing (default: auto)])],
24 [random_seed=$at_optarg], [random_seed=$RANDOM$$])
26 m4_divert_push([PREPARE_TESTS])dnl
27 : ${LIBTOOL="$SHELL $builddir/libtool"}
28 random_seed=`printf '%s' "$random_seed" | tr -cd '@<:@:digit:@:>@'`
29 random_seed=${random_seed:-0}
30 m4_divert_pop([PREPARE_TESTS])
32 m4_define([TEST_NEED_PROGRAM], [AT_KEYWORDS([$1])dnl
33 AT_CHECK([for arg in $check_PROGRAMS; do
34 test x"${arg##*/}" != x"$1$EXEEXT" || exit 0
38 m4_include([tests/general.at])
39 m4_include([tests/decl-good.at])
40 m4_include([tests/decl-bad.at])
41 m4_include([tests/stress.at])