X-Git-Url: http://git.draconx.ca/gitweb/rrace.git/blobdiff_plain/b4b5688edd332e17591ca7bc1cdd64c296abe1c5..1b1de4a466963fbfebf76e3920bf0cb573102cff:/testsuite.at diff --git a/testsuite.at b/testsuite.at index c00be48..62c8695 100644 --- a/testsuite.at +++ b/testsuite.at @@ -1,4 +1,4 @@ -AT_COPYRIGHT([Copyright © 2022-2023 Nick Bowler]) +AT_COPYRIGHT([Copyright (C) 2022-2024 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 @@ -13,29 +13,11 @@ AT_COPYRIGHT([Copyright © 2022-2023 Nick Bowler]) # You should have received a copy of the GNU General Public License # along with this program. If not, see . +m4_include([common/snippet/at-compat.at]) +m4_include([common/snippet/test-tap.at]) + AT_INIT AT_COLOR_TESTS -m4_divert_push([PREPARE_TESTS])dnl -test_run_tap () { - program=$1; shift - - "$builddir/t/$program" "$@" > "$program.tap" - status=$? - cat "$program.tap" - :; { echo 'print <"$program.pl" - prove "$program.pl" 2>&1 - return $status -} -m4_divert_pop([PREPARE_TESTS]) - -m4_define([TEST_TAP], [AT_CHECK([test_run_tap $1], [0], [ignore])]) -m4_define([TEST_TAP_SIMPLE], [dnl -AT_SETUP([$1]) -AT_KEYWORDS([$4])dnl -m4_n([$3])dnl -TEST_TAP([$2]) -AT_CLEANUP]) - m4_include([tests/game.at]) m4_include([tests/gui.at])