AT_COPYRIGHT([Copyright © 2020 Nick Bowler]) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . AT_INIT AT_COLOR_TESTS AT_TESTED([cdecl99]) AT_ARG_OPTION_ARG([random-seed], [AS_HELP_STRING([--random-seed=ARG], [Integer seed for randomized testing (default: auto)])], [random_seed=$at_optarg], [random_seed=$RANDOM$$]) AT_ARG_OPTION_ARG([random-iterations], [AS_HELP_STRING([--random-iterations=N], [Number of randomized testcases to perform (default: 500)])], [random_iter=$at_optarg], [random_iter=]) m4_divert_push([PREPARE_TESTS])dnl : ${LIBTOOL="$SHELL $builddir/libtool"} random_seed=`printf '%s' "$random_seed" | tr -cd '@<:@:digit:@:>@'` random_seed=${random_seed:-0} random_iter=`printf '%s' "$random_iter" | tr -cd '@<:@:digit:@:>@'` random_iter=`expr "$random_iter" '|' 500` m4_divert_pop([PREPARE_TESTS]) m4_define([TEST_NEED_PROGRAM], [AT_KEYWORDS([$1])dnl AT_CHECK([for arg in $check_PROGRAMS; do test x"${arg##*/}" != x"$1$EXEEXT" || exit 0 done exit 77])]) m4_include([tests/general.at]) m4_include([tests/decl-good.at]) m4_include([tests/decl-bad.at]) m4_include([tests/stress.at])