mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-19 09:13:04 +00:00
tests: simplify AT_PARSER_CHECK usage
Currently the caller must specify the ./ prefix to its command. Let's avoid that: it will be nicer to read, make it easier to have a version that works for Java and C/C++. * tests/local.at (AT_PARSER_CHECK): Prefix the command with ./. Adjust callers.
This commit is contained in:
@@ -138,7 +138,7 @@ AT_SETUP([Big triangle])
|
||||
AT_DATA_TRIANGULAR_GRAMMAR([input.y], [200])
|
||||
AT_BISON_CHECK_NO_XML([-v -o input.c input.y])
|
||||
AT_COMPILE([input])
|
||||
AT_PARSER_CHECK([./input])
|
||||
AT_PARSER_CHECK([input])
|
||||
|
||||
AT_CLEANUP
|
||||
|
||||
@@ -235,7 +235,7 @@ AT_INCREASE_DATA_SIZE(204000)
|
||||
|
||||
AT_BISON_CHECK_NO_XML([-v -o input.c input.y])
|
||||
AT_COMPILE([input])
|
||||
AT_PARSER_CHECK([./input])
|
||||
AT_PARSER_CHECK([input])
|
||||
|
||||
AT_CLEANUP
|
||||
|
||||
@@ -355,7 +355,7 @@ AT_INCREASE_DATA_SIZE(204000)
|
||||
|
||||
AT_BISON_CHECK([-v -o input.c input.y])
|
||||
AT_COMPILE([input])
|
||||
AT_PARSER_CHECK([./input])
|
||||
AT_PARSER_CHECK([input])
|
||||
|
||||
AT_CLEANUP
|
||||
|
||||
@@ -459,14 +459,14 @@ m4_pushdef([AT_USE_ALLOCA], [[
|
||||
AT_DATA_STACK_TORTURE([AT_USE_ALLOCA])
|
||||
|
||||
# Below the limit of 200.
|
||||
AT_PARSER_CHECK([./input 20], 0, [], [ignore],
|
||||
AT_PARSER_CHECK([input 20], 0, [], [ignore],
|
||||
[[VALGRIND_OPTS="$VALGRIND_OPTS --log-fd=1"]])
|
||||
# Two enlargements: 2 * 2 * 200.
|
||||
AT_PARSER_CHECK([./input 900], 0, [], [ignore],
|
||||
AT_PARSER_CHECK([input 900], 0, [], [ignore],
|
||||
[[VALGRIND_OPTS="$VALGRIND_OPTS --log-fd=1"]])
|
||||
# Fails: beyond the limit of 10,000 (which we don't reach anyway since we
|
||||
# multiply by two starting at 200 => 5120 is the last possible).
|
||||
AT_PARSER_CHECK([./input 10000], 2, [], [ignore],
|
||||
AT_PARSER_CHECK([input 10000], 2, [], [ignore],
|
||||
[[VALGRIND_OPTS="$VALGRIND_OPTS --log-fd=1"]])
|
||||
|
||||
# The push parser can't use alloca since the stacks can't be locals. This test
|
||||
@@ -475,11 +475,11 @@ AT_PARSER_CHECK([./input 10000], 2, [], [ignore],
|
||||
AT_DATA_STACK_TORTURE([AT_USE_ALLOCA],
|
||||
[[%define api.push-pull both
|
||||
]])
|
||||
AT_PARSER_CHECK([./input 20], 0, [], [ignore],
|
||||
AT_PARSER_CHECK([input 20], 0, [], [ignore],
|
||||
[[VALGRIND_OPTS="$VALGRIND_OPTS --log-fd=1"]])
|
||||
AT_PARSER_CHECK([./input 900], 0, [], [ignore],
|
||||
AT_PARSER_CHECK([input 900], 0, [], [ignore],
|
||||
[[VALGRIND_OPTS="$VALGRIND_OPTS --log-fd=1"]])
|
||||
AT_PARSER_CHECK([./input 10000], 2, [], [ignore],
|
||||
AT_PARSER_CHECK([input 10000], 2, [], [ignore],
|
||||
[[VALGRIND_OPTS="$VALGRIND_OPTS --log-fd=1"]])
|
||||
|
||||
m4_popdef([AT_USE_ALLOCA])
|
||||
@@ -500,24 +500,24 @@ m4_pushdef([AT_USE_ALLOCA], [[#define YYSTACK_USE_ALLOCA 0]])
|
||||
AT_DATA_STACK_TORTURE([AT_USE_ALLOCA])
|
||||
|
||||
# Below the limit of 200.
|
||||
AT_PARSER_CHECK([./input 20], 0, [], [ignore],
|
||||
AT_PARSER_CHECK([input 20], 0, [], [ignore],
|
||||
[[VALGRIND_OPTS="$VALGRIND_OPTS --log-fd=1"]])
|
||||
# Two enlargements: 2 * 2 * 200.
|
||||
AT_PARSER_CHECK([./input 900], 0, [], [ignore],
|
||||
AT_PARSER_CHECK([input 900], 0, [], [ignore],
|
||||
[[VALGRIND_OPTS="$VALGRIND_OPTS --log-fd=1"]])
|
||||
# Fails: beyond the limit of 10,000 (which we don't reach anyway since we
|
||||
# multiply by two starting at 200 => 5120 is the possible).
|
||||
AT_PARSER_CHECK([./input 10000], 2, [], [ignore],
|
||||
AT_PARSER_CHECK([input 10000], 2, [], [ignore],
|
||||
[[VALGRIND_OPTS="$VALGRIND_OPTS --log-fd=1"]])
|
||||
|
||||
AT_DATA_STACK_TORTURE([AT_USE_ALLOCA],
|
||||
[[%define api.push-pull both
|
||||
]])
|
||||
AT_PARSER_CHECK([./input 20], 0, [], [ignore],
|
||||
AT_PARSER_CHECK([input 20], 0, [], [ignore],
|
||||
[[VALGRIND_OPTS="$VALGRIND_OPTS --log-fd=1"]])
|
||||
AT_PARSER_CHECK([./input 900], 0, [], [ignore],
|
||||
AT_PARSER_CHECK([input 900], 0, [], [ignore],
|
||||
[[VALGRIND_OPTS="$VALGRIND_OPTS --log-fd=1"]])
|
||||
AT_PARSER_CHECK([./input 10000], 2, [], [ignore],
|
||||
AT_PARSER_CHECK([input 10000], 2, [], [ignore],
|
||||
[[VALGRIND_OPTS="$VALGRIND_OPTS --log-fd=1"]])
|
||||
|
||||
m4_popdef([AT_USE_ALLOCA])
|
||||
|
||||
Reference in New Issue
Block a user