summaryrefslogtreecommitdiff
path: root/tests/Makefile.am
Commit message (Collapse)AuthorAge
* test: rename some files for non-case-sensitive filesystems.Hans-Bernhard Broeker2017-05-06
| | | | | | | -C*f and -C*F option-specific test files collide on case-insensitive file systems, and cause tests to either not be run at all, or to overwrite each other's files at build time. So rename -C*F ones to -C*_F.
* test: enable more silent building of tests.Jeff Smith2017-05-03
| | | | | | | | When running 'make V=0 check', some compile and link steps are made less verbose and some are not. This cleans up most steps that are not. These have no effect if V=0 is not specified.
* test: skip pthread test when needed files missing.Explorer092017-02-16
| | | | | | | | | | | | "Unlisting" the pthread test when libpthread is not available is never a good idea. Should let it compile into a stub program that returns the "skip" status. configure.ac and tests/Makefile.am are edited so that pthread test can be built anyway, but only works (not as the stub) when both pthread.h and libpthread are detected on the system. Also fix a small typo in tests/pthread.l comments.
* test: Skip bison tests if bison is not availableExplorer092017-01-25
|
* test: Remake *_scanner.c if *_scanner.h is missing.Explorer092017-01-24
| | | | | | | | If a ${foo}_scanner.c exists but the respective ${foo}_scanner.h is missing, then 'make' can halt. Fix this by deleting the ${foo}_scanner.c file and then remake it. This rule is the same as the automake-generated rule for .c files that require LEX or YACC (except automake will use ylwrap).
* test: remove BUILT_SOURCES; add missing dependencies.Explorer092017-01-24
| | | | | | | | | | | | | Without BUILT_SOURCES in Makefile, no test sources in tests/ will be built when using the default "make all" target. This is desireable for people who are just building flex but who do not want to run, and therefore, build any part of the test suite. Also fix missing sources dependencies: bison_nr_scanner.$(OBJEXT): bison_nr_parser.h bison_yylloc_scanner.$(OBJEXT): bison_yylloc_parser.h bison_yylval_scanner.$(OBJEXT): bison_yylval_parser.h
* test: let testwrapper scripts be run by ${SHELL}.Explorer092017-01-17
| | | | | | This allows user to use a different shell if /bin/sh has problems. The use of $SHELL (variable) to run scripts is already an Automake convention. All shell scripts in build-aux are run by $SHELL.
* Fixes a major bug in Flex's own lexing of literals.Demi Obenour2016-11-08
| | | | | | | My changes caused Flex to mishandle string and character literals in line comments. This commit fixes them. Fixes #113.
* Fix M4 quoting of section 3.Demi Obenour2016-10-05
| | | | | | | | | | This fixes M4 quoting of section 3 of the input file, including escape sequences and character constants. Tests were added to verify the behavior in section 3 with respect to quoting. Both escaping of quotes and quoting of potential macro-start characters are tested. Existing tests were also fixed to account for the new -- and now correct -- behavior. Many tests relied on the old behavior of expanding M4 macros in section 3. They needed to be updated for the new behavior.
* Fix yyrestart(NULL) SEGV.Mightyjo2016-10-05
|
* no longer generate K&R C scannersDemi Obenour2016-09-25
|
* test: run direct tests from srcdirWill Estes2016-05-20
|
* test: removed dependencies for include testsWill Estes2016-05-20
|
* suppress `WARNINGFLAGS' for the almost obsolete `noansi' test casesrlar2016-03-31
|
* configure option `--enable-warnings' and `WARNINGFLAGS'rlar2016-03-31
| | | | | | | | | | | `WARNINGFLAGS' can be passed when invoking `configure' and when invoking `make' if configure switch `--enable-warnings' was given then default to something useful if we have `GCC' `WARNINGFLAGS' is not used when compiling `stage1flex' to avoid unnecessary clutter
* tests: fixed paths to input files.Mike Frysinger2015-12-13
| | | | | | | | | | | | | | | | | | | | | | | The current test wrapper works only when the inputs are specified using relative paths. If they're specified with absolute paths, the driver fails to detect the inputs because it always prepends the input dir name which itself is a relative path: $ cd tests $ ./testwrapper.sh -d . -i $PWD/reject.txt -t ./reject_ver.table <fails to open inputs> This normally doesn't show up because people run `./configure` or, for out of tree builds, `../configure`. But if you happen to run configure with an absolute path, then automake tends to generate absolute paths as well leading to test failures. Fix all of this by dropping the implicit input directory prepending. - INPUT_NAME is often a list of files, not just a single one - the input directory is used to find the testname tables which are usually generated, so it's impossible to use files from both source and build directories - most of the time, the full/correct path is already specified
* removed extra call to a _CPPFLAGS variableWill Estes2015-11-21
|
* Used in-tree header file for c++ tests.Mightyjo2015-11-18
|
* Cleaned up more precisely after make check.Will Estes2015-11-12
| | | | | | | | | | | | | BUILT_SOURCES is now just the list of headers built as per the automake manual. We provide the list of files to clean to make rebuilding the test suite programs easier. We then use the CLEANFILES list in a dist-hook to clean up the distribution that automake gathers since not distributing flex generated files is foreign to automake's mindset, but we need exactly that. Additionally, we locate inputs to the tables-related tests more precisely. Some files are in srcdir and some are in builddir, which the arguments to the log compiler are now made aware of.
* Pulled out scripts in tests/Makefile.amWill Estes2015-11-11
|
* Added srcdir to tableopts.am includeWill Estes2015-11-11
|
* Added tableopts.sh to EXTRA_DISTWill Estes2015-11-10
|
* Made tests depend on the built flex binary.Mightyjo2015-11-10
|
* Cleaned more generated sources.Mightyjo2015-11-08
| | | | | | | Added skel.c explicitly to MAINTAINERCLEANFILES in src/Makefile.am. Added a bunch of files to built_SOURCES in tests/Makefile.am so that the suite is easier to clean up.
* split apart table options tests into tests per threading, table option, ↵Will Estes2014-11-12
| | | | serialization and verification
* use automake conditional around pthread testWill Estes2014-11-12
|
* refactor lineno_trailing test for new test suite layoutWill Estes2014-11-12
|
* refactor lineno_r test for new test suite layoutWill Estes2014-11-12
|
* refactor lineno_nr test for new test suite layoutWill Estes2014-11-12
|
* refactor pthread test for new test suite layoutWill Estes2014-11-12
|
* build reject_[vs]er tests explicitly to pass proper compiler flagsWill Estes2014-11-12
|
* refactor cxx_yywrap test for new test suite layoutWill Estes2014-11-12
|
* refactor concatenated options test for new test suite layoutWill Estes2014-11-12
|
* refactor include_by_* tests for new test suite layoutWill Estes2014-11-12
|
* refactor rescan_r test for new test suite layoutWill Estes2014-11-12
|
* Refactor rescan_nr test for new test suite layout.Will Estes2014-11-12
| | | | | | Also add -r option to testwrapper.sh to support passing input file as a command line argument to the test scanner without using shell redirection.
* correct use of objext to OBJEXTWill Estes2014-11-12
|
* refactor quotes test for new test suite layoutWill Estes2014-11-12
|
* Refactor reject test for new test suite layout.Will Estes2014-11-12
| | | | | | | | Split out reject test into its constituant tests. Add .reject tests and .table tests for automake test log generation. Rewrite testwrapper.sh to handle running with a tables file and specifying optional input using command line options rather than positional parameters.
* Refactor multiple_scanners_r test for new test suite layout.Will Estes2014-11-12
| | | | | | Also, remove the use of table files from this test as that tests two features at once and we want to be as close to testing one feature at a time as we can be.
* refactor multiple_scanners_nr test for new test suite layoutWill Estes2014-11-12
|
* refactor cxx_multiple_scanners test for new test suite layoutWill Estes2014-11-12
|
* refactor c_cxx_nr, c_cxx_r tests for new test suite layoutWill Estes2014-11-12
|
* refactor cxx_basic test for new test suite layoutWill Estes2014-11-12
|
* refactor posixly_correct test for new test suite layoutWill Estes2014-11-12
|
* refactor yyextra test for new test suite layoutWill Estes2014-11-12
|
* refactor top test for new test suite layoutWill Estes2014-11-12
|
* refactor string_r test for new test suite layoutWill Estes2014-11-12
|
* refactor string_nr test for new test suite layoutWill Estes2014-11-12
|
* refactor prefix_r test for new test suite layoutWill Estes2014-11-12
|