X-Git-Url: https://git.draconx.ca/gitweb/cdecl99.git/blobdiff_plain/5fc35dc076078b9710d86b47c53f4315edd3cd82..4ef59e97312cf3e8f537643c65bc2fef057b786b:/tests/general.at diff --git a/tests/general.at b/tests/general.at index 7b34b9d..c40d6b5 100644 --- a/tests/general.at +++ b/tests/general.at @@ -1,4 +1,4 @@ -# Copyright © 2012, 2020-2021, 2023 Nick Bowler +# Copyright © 2012, 2020-2021, 2023-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 @@ -149,15 +149,13 @@ AT_CLEANUP AT_SETUP([cdecl99 invalid character error messages]) -$AWK -f - >test.dat <<'EOF' -BEGIN { +$AWK 'BEGIN { print "explain \1"; print "explain \377"; print "explain \a"; print "explain \b"; print "explain ?"; -} -EOF +}' >test.dat >stdout; sed -f check.sed stdout], [0], ]) AT_CLEANUP + +AT_SETUP([cdecl99 EOF in batch mode]) + +AT_CHECK([AS_ECHO_N(["explain int"]) | cdecl99 --batch | head], [0], +[[type int +]]) +AT_CHECK([cdecl99 --batch