Ross Burton
dff2e1b19f
build(tests): add missing parser->scanner dependencies
...
With sufficient parallelism and `make --shuffle` to reorder builds the
test suite occasionally fails to build with errors like this:
tests/bison_yylval_parser.y:36:10: fatal error: bison_yylval_scanner.h: No such file or directory
36 | #include "bison_yylval_scanner.h"
Solve this by adding the missing dependencies to the *_parser.o targets
on the _scanner.h files.
2025-03-27 16:43:30 -04:00
Explorer09
1a7a3e0885
build(tests): Fix ruleset.am regeneration in VPATH build
2024-05-01 12:40:16 -04:00
Mightyjo
3d2cc12a8b
fix(build): Comment out impl func dec in prefix_c99 test.
...
tests/prefix_c99.l calls a function before its definition from within
a dead code block. This is treated as an error in newer compilers. The
test isn't needed as the scanner's main() repeats the call.
Refs: #632
2024-03-15 00:04:55 -04:00
Bill Currie
1370faa58c
Add lineno_generated.l.in to EXTRA_DIST
...
I had forgotten about distcheck
2023-12-11 10:46:20 -05:00
Bill Currie
a46776704b
Extract correct line numbers to use in line number test
...
This makes the test much less fragile as now all that is need is for
@LINE@ and __LINE__ to be on the same line (the comment gets substituted
too, but it's a comment...)
2023-12-11 10:46:20 -05:00
Bill Currie
0591dc12ba
Add a test for checking the generated line numbers
...
This checks the line numbers in multiple places, so it should help keep
line numbers working in general.
2023-12-11 10:46:20 -05:00
musvaage
d7d1c54362
typos
2023-08-22 11:35:15 -04:00
Simon Sobisch
3aedd28670
remove unused DO_COMPARISON
2023-03-15 13:36:52 -04:00
Mightyjo
74e8c880fc
test(quotes): Add after action comment tests for m4quotes.
2023-03-09 14:41:26 -05:00
Simon Sobisch
9e69eff334
.gitignore adjustments for WIN32
2023-03-01 09:46:26 -05:00
Joseph Langley
4581eccf1e
fix(issue-525): Fail gracefully when yy_get_next_buffer can't find one.
...
Demonstrate yyinput() error checking for this condition.
2022-05-18 11:15:49 -04:00
Joseph Langley
9d9a039c31
fix(issue-525): Add regression test for Issue 525.
...
yyrestart should not set yy_fill_buffer to 1 when it was previously set to 0 (e.g. by yy_scan_buffer).
2022-05-18 11:13:46 -04:00
Joseph Langley
8100144eb4
chore(perm): Fix permissions 755->644
2021-07-02 17:53:29 -04:00
Joseph Langley
ab783a0b99
chore(make): Ensure distcheck cleans up directories.
2021-06-09 21:46:01 -04:00
Joseph Langley
916636cb96
chore(test): Declare script variables before use.
...
For set -euvx
2021-06-09 21:46:01 -04:00
Mightyjo
e61f190ef6
Ensure size of Reject state buffer is sufficient each time yy_switch_to_buffer is called.
2021-06-09 21:46:00 -04:00
Mightyjo
379af7681d
Don't use C++ auto, it angers TravisCI.
2021-06-09 21:46:00 -04:00
Mightyjo
b4162d3653
Fix test failure on TravisCI.
2021-06-09 21:46:00 -04:00
Mightyjo
470c8a201f
Test for reversion of CVE-2006-0459.
2021-06-09 21:46:00 -04:00
Mightyjo
7e6ad373b8
Test for reversion of CVE-2006-0459.
2021-06-09 21:46:00 -04:00
Joseph Langley
0d5d2dd4af
chore(test): Clean up debugging in tests
2021-06-05 01:29:41 -04:00
Joseph Langley
5772bb456e
fix(test): Re-add posix test input to repo.
2021-06-05 01:14:26 -04:00
Joseph Langley
1e893215c5
chore(test): Enable shell '-eu' strictness
2021-06-05 01:08:37 -04:00
Joseph Langley
90713678d8
chore(test): Regenerate ruleset.am
2021-06-05 00:46:26 -04:00
Joseph Langley
455d913d34
fix(test): Make test generating scripts work in VPATH builds
2021-06-05 00:29:05 -04:00
Joseph Langley
aeb2cb5539
fix(test): Re-add test inputs to tests/
...
Generating these test inputs on the fly breaks VPATH builds and 'make distcheck'.
Glad we have a lot fewer of them now, at least.
2021-06-05 00:26:47 -04:00
Joseph Langley
46299d7dbc
fix(build): Expand wildcards in Makefile.am.
...
Wildcards were causing automake to generate spurious build targets.
2021-06-04 00:34:40 -04:00
Joseph Langley
e50f889082
fix(build): Prevent automake computing default _SOURCES for tests.
...
Automake attempts to compute default _SOURCES for the test-yydecl-*.sh runners generated by test-yydecl-gen.sh. Providing an intentionally empty _SOURCES variable for each script fixes the attendant errors.
Also removed EXTRA_DIST lines for deleted test inputs.
2021-06-03 21:56:59 -04:00
Eric S. Raymond
5d93876e22
Remove prrequisite from .l.go suffix rule
...
autogen gets indigestion iv you give a suffix rule a prerequisite,
so don't do that.
2021-02-05 07:33:45 -05:00
Eric S. Raymond
f5960fabba
Go back end: More Goification of names.
2020-12-04 11:31:27 -05:00
Eric S. Raymond
33bd31b74b
Portability fix in tests - not all languages have ++ and --.
2020-12-04 06:49:26 -05:00
Eric S. Raymond
dd0fb2920b
In the Go back end, more moves towards Go conventions.
...
All documented in the go-flex.skl header comment.
2020-11-20 07:32:35 -05:00
Eric S. Raymond
7b3f8db536
Improve information hiding in C99 and Go back ends.
...
Things that don't need to be declared before that DFA
tables shouldn't be.
2020-11-20 05:52:06 -05:00
Eric S. Raymond
5a9a913893
Eliminate forwards in the C99 back end.
2020-11-19 18:26:48 -05:00
Eric S. Raymond
30d15dfae9
TYhis commit is a model for how to add a new back end.
...
Begin the Go back end. Right now it's a fake that generates C...
...but this commit puts all the build and testnmachinery in place
for when it's not. All tests pass.
2020-11-17 07:28:40 -05:00
Eric S. Raymond
be50e74b5c
Improve cleanup of generated .txt after tests.
2020-11-17 05:52:08 -05:00
Eric S. Raymond
eaf12696af
Convert the debug test to be ruleset-based,
2020-11-17 05:42:50 -05:00
Eric S. Raymond
e2a64fa174
Rename some rules files to make maintaining .gitignore simpler.
...
Due to some limitayions in git ignore wildcarding.
2020-11-17 00:07:07 -05:00
Eric S. Raymond
52e6bb3e84
Fix error in testnmaker: shell case alternations evaluate easrky.
2020-11-16 23:24:30 -05:00
Eric S. Raymond
654ab2012f
Up-gun a test to use the lineno code in the array+BOL case...
...
...and fix the bug that turned up.
2020-11-16 17:32:40 -05:00
Eric S. Raymond
a67532dd57
Remove now-unused parts of test/testwrapper.sh.
2020-11-16 06:10:47 -05:00
Eric S. Raymond
22b9ea63bd
Remove the ".one" category of tests; they've been replaced by rulesets.
...
This reduces the complexitry of the test machinery as well as making
tests less backend-specific.
2020-11-16 05:54:38 -05:00
Eric S. Raymond
f0f53f6930
Remove now-unused SOURCES declarations.
2020-11-16 05:32:38 -05:00
Eric S. Raymond
eacb312e5b
Improve instrumentation of test failures.
...
Also, yyinpt.txt is generated and does not need to be checked in.
2020-11-16 04:51:00 -05:00
Eric S. Raymond
709c1724ed
Repair some bitrotted variable-trailing-context code.
...
It decayed because the test for this feature only exercised the nr
back end. We add a ruleset--based test to verify on all back ends.
2020-11-15 22:37:24 -05:00
Eric S. Raymond
df632cf2eb
Fix typo revealed by Go porting work, and improve test coverage to match.
...
We a ruleset test for BOL matching and a test for the array case of yymore.
Improve yymore testing by adding tests that require a BOL match in
both array and pointer cases.
Also, convert lineno sporadic test to be ruleset-based so it's
applied on all back ends.
No cide changes.
2020-11-15 12:24:35 -05:00
Eric S. Raymond
3603f03350
Minor build system fixes before starting the Go port.
...
Remove two dependencies that the C99 back end no longer has.
Repair to force in-time building of skel.h files. This way of doing
it reduces where a new skel dependency has to be declared in the
vuilld recipe to the one spot where the flex.h file is made from the
flex.skl file.
The posixly correct test only needs to be done once, since it only
affects how the tables are genetated rather than setting code
conditionals in the back end.
Also, some comment typo fixes.
2020-11-13 08:23:10 -05:00
Eric S. Raymond
110899d69e
Clean up test/Makefile,am's EXTRA_DIST.
2020-11-12 09:53:26 -05:00
Eric S. Raymond
fa6a0fc666
Declare that rulset.am depends on *.rules files...
...
...for automatic remake when a new one is added.
2020-11-12 08:37:50 -05:00
Eric S. Raymond
01850d3ba1
Eliminate almost all forward declarations from C99.
...
One less C-ism to deal wit h when porting to a new target languages.
2020-11-11 18:13:15 -05:00