summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* fix(issue-525): Fail gracefully when yy_get_next_buffer can't find one.Joseph Langley2022-05-182-0/+0
| | | | Demonstrate yyinput() error checking for this condition.
* fix(issue-525): Add regression test for Issue 525.Joseph Langley2022-05-182-1/+141
| | | | yyrestart should not set yy_fill_buffer to 1 when it was previously set to 0 (e.g. by yy_scan_buffer).
* chore(perm): Fix permissions 755->644Joseph Langley2021-07-022-0/+0
|
* chore(make): Ensure distcheck cleans up directories.Joseph Langley2021-06-091-3/+3
|
* chore(test): Declare script variables before use.Joseph Langley2021-06-091-0/+2
| | | | For set -euvx
* Ensure size of Reject state buffer is sufficient each time ↵Mightyjo2021-06-093-1/+555
| | | | yy_switch_to_buffer is called.
* Don't use C++ auto, it angers TravisCI.Mightyjo2021-06-091-1/+1
|
* Fix test failure on TravisCI.Mightyjo2021-06-091-1/+1
|
* Test for reversion of CVE-2006-0459.Mightyjo2021-06-091-1/+5
|
* Test for reversion of CVE-2006-0459.Mightyjo2021-06-092-0/+544
|
* chore(test): Clean up debugging in testsJoseph Langley2021-06-053-6/+1
|
* fix(test): Re-add posix test input to repo.Joseph Langley2021-06-052-0/+2
|
* chore(test): Enable shell '-eu' strictnessJoseph Langley2021-06-052-6/+9
|
* chore(test): Regenerate ruleset.amJoseph Langley2021-06-051-1/+1
|
* fix(test): Make test generating scripts work in VPATH buildsJoseph Langley2021-06-055-250/+324
|
* fix(test): Re-add test inputs to tests/Joseph Langley2021-06-0522-0/+109
| | | | | Generating these test inputs on the fly breaks VPATH builds and 'make distcheck'. Glad we have a lot fewer of them now, at least.
* fix(build): Expand wildcards in Makefile.am.Joseph Langley2021-06-041-6/+27
| | | | Wildcards were causing automake to generate spurious build targets.
* fix(build): Prevent automake computing default _SOURCES for tests.Joseph Langley2021-06-033-35/+34
| | | | | | 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.
* Remove prrequisite from .l.go suffix ruleEric S. Raymond2021-02-051-1/+1
| | | | | autogen gets indigestion iv you give a suffix rule a prerequisite, so don't do that.
* Go back end: More Goification of names.Eric S. Raymond2020-12-041-2/+6
|
* Portability fix in tests - not all languages have ++ and --.Eric S. Raymond2020-12-042-2/+10
|
* In the Go back end, more moves towards Go conventions.Eric S. Raymond2020-11-201-1/+1
| | | | All documented in the go-flex.skl header comment.
* Improve information hiding in C99 and Go back ends.Eric S. Raymond2020-11-202-6/+6
| | | | | | Things that don't need to be declared before that DFA tables shouldn't be.
* Eliminate forwards in the C99 back end.Eric S. Raymond2020-11-192-9/+14
|
* TYhis commit is a model for how to add a new back end.Eric S. Raymond2020-11-174-4/+265
| | | | | | | 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.
* Improve cleanup of generated .txt after tests.Eric S. Raymond2020-11-172-2/+2
|
* Convert the debug test to be ruleset-based,Eric S. Raymond2020-11-178-167/+35
|
* Rename some rules files to make maintaining .gitignore simpler.Eric S. Raymond2020-11-174-31/+25
| | | | Due to some limitayions in git ignore wildcarding.
* Fix error in testnmaker: shell case alternations evaluate easrky.Eric S. Raymond2020-11-161-4/+4
|
* Up-gun a test to use the lineno code in the array+BOL case...Eric S. Raymond2020-11-161-1/+1
| | | | ...and fix the bug that turned up.
* Remove now-unused parts of test/testwrapper.sh.Eric S. Raymond2020-11-161-2/+3
|
* Remove the ".one" category of tests; they've been replaced by rulesets.Eric S. Raymond2020-11-168-188/+4
| | | | | This reduces the complexitry of the test machinery as well as making tests less backend-specific.
* Remove now-unused SOURCES declarations.Eric S. Raymond2020-11-161-3/+0
|
* Improve instrumentation of test failures.Eric S. Raymond2020-11-162-7/+6
| | | | Also, yyinpt.txt is generated and does not need to be checked in.
* Repair some bitrotted variable-trailing-context code.Eric S. Raymond2020-11-154-6/+77
| | | | | 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.
* Fix typo revealed by Go porting work, and improve test coverage to match.Eric S. Raymond2020-11-1511-299/+246
| | | | | | | | | | | 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.
* Minor build system fixes before starting the Go port.Eric S. Raymond2020-11-133-14/+9
| | | | | | | | | | | | | | | 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.
* Clean up test/Makefile,am's EXTRA_DIST.Eric S. Raymond2020-11-121-8/+1
|
* Declare that rulset.am depends on *.rules files...Eric S. Raymond2020-11-122-4/+4
| | | | ...for automatic remake when a new one is added.
* Eliminate almost all forward declarations from C99.Eric S. Raymond2020-11-111-9/+10
| | | | One less C-ism to deal wit h when porting to a new target languages.
* Add a test for trailing conyext rules. Fix the bug it turned up.Eric S. Raymond2020-11-113-2/+58
| | | | | Also, roperly condition some variables related to trailing contexts. Makes generated parsers ever so slightly smaller in this case.
* Successful elimination of preprocessor dependencies fromm C99 skeleton.Eric S. Raymond2020-11-101-2/+2
| | | | | | There's only one left. in the prefix code. We leave that in place because ity will be needed if we ever want to replace the default C back end with C99.
* Add a test for yymore, and fix a bug it turned up.Eric S. Raymond2020-11-074-2/+53
|
* Fix errors that were masking problems with yyreject().Eric S. Raymond2020-11-042-2/+2
| | | | | | | Ensure that derived skel.h includes are removed on every clean. Fix a bad shell line that prevented proper cleaming of derived *.c files from tests.
* Pull two random flags into the ctrl structure.Eric S. Raymond2020-11-022-10/+13
| | | | Also, some documentation polishing.
* Add a test for yyless.Eric S. Raymond2020-11-013-3/+55
|
* Simplify and generalize the testmaker macros.Eric S. Raymond2020-11-017-48/+42
|
* Portability improvement on the extended test.Eric S. Raymond2020-11-013-9/+11
|
* shellcheck cleanup on all scripts. Turned up a minor bug in testmaker.sh.Eric S. Raymond2020-11-015-28/+31
|
* Rulesets now carry their test loads with them.Eric S. Raymond2020-10-3128-72/+70
| | | | Makes it easier to see what the tests are doing.