summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAge
* Merge branch 'upstream'Manoj Srivastava2018-02-12
|\
| * Update to a new upstream commit for some bug fixes.Manoj Srivastava2018-02-08
| |\ | | | | | | | | | Signed-off-by: Manoj Srivastava <srivasta@debian.org>
| | * test: echo 'set -v' before setting so in shell.Explorer092017-06-04
| | |
| | * test: remove duplicate shell options lineWill Estes2017-05-26
| | |
| | * test: use portable pattern substitution in tableopts.shExplorer092017-05-24
| | | | | | | | | | | | Fixes: #222
| | * 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.
* | | Merge branch 'upstream'Manoj Srivastava2018-02-08
|\| | | | | | | | | | | | | | | | | Update to v2.6.4 Signed-off-by: Manoj Srivastava <srivasta@debian.org>
| * | New upstream version 2.6.4Manoj Srivastava2018-02-08
| |/
| * 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: document automake convention for skipped exit status.Explorer092017-01-20
| |
| * 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.
| * test: Remove test scripts bashisms.Explorer092017-01-17
| | | | | | | | | | | | | | | | They now all work under a POSIX compliant sh. Specifically, 'dash' can now be used for running "make check" tests. Note that none of these scripts has ever been using a pipe, so `set -o pipefail` is unnecessary and removed.
| * test: exit on '-1' test non-zero status.Explorer092017-01-17
| | | | | | | | | | | | | | | | | | | | | | | | If a '-1' test program returns a non-zero status, don't go further and compare it's (numeric) output values. This allows a '-1' test to indicate a "skip" status or an otherwise error. (Currently no such '-1' test would skip like this, though.) Shell syntax note: `set -e` will not exit with the syntax like this `test $(false) = $(false);`. The exit statuses of `false` in the example will be ignored instead. But putting the output in a variable, such as `VAR=$(false)`, DOES exit.
| * fix backwards incompatible changes in 2.6.2.Demi Obenour2016-11-12
| | | | | | | | | | | | | | This patch addscompatibility `#defines` for all macros affected by `%prefix`. Fixes #113.
| * git: ignore quote_in_comment artifactsWill Estes2016-11-08
| |
| * 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.
| * Add more escaping testsDemi Obenour2016-11-02
| |
| * Fix M4 quotation in section 2 prologue and refactor duplicated codeDemi Obenour2016-10-23
| |
| * Improved M4 quotationDemi Obenour2016-10-19
| | | | | | | | | | | | | | | | | | | | | | This fixes M4 quotation of certain strings beginning with `yy` (in section 3 of the input file only) and character literals. The new quotation method is also less brittle and faster. Tests that relied on the old behavior were fixed. Also, `yyconst` is no longer defined; use `const` (which it unconditionally was defined to) instead.
| * 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
| |
| * Exited with error code on some conditions in include testsEgor Pugin2016-05-20
| |
| * test: drop .exe when making input file namesWill 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
| * warning: conversion to 'size_t' from 'int' may change the sign of the result ↵rlar2016-03-18
| | | | | | | | [-Wsign-conversion]
| * warning: conversion to 'long unsigned int' from 'int' may change the sign of ↵rlar2016-03-18
| | | | | | | | the result [-Wsign-conversion]
| * warning: redundant redeclaration of '...' [-Wredundant-decls]rlar2016-03-18
| |
| * warning: no previous prototype for '...' [-Wmissing-prototypes]rlar2016-03-18
| |
| * warning: unused variable 'fp' [-Wunused-variable]rlar2016-03-18
| |
| * main(), warning: redundant redeclaration of 'main' [-Wredundant-decls]rlar2016-03-18
| |
| * main(), warning: old-style function definition [-Wold-style-definition]rlar2016-03-18
| |
| * main(), warning: old-style function definition [-Wold-style-definition]rlar2016-03-18
| |
* | Merge branch 'upstream'Manoj Srivastava2016-07-31
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Manoj Srivastava <srivasta@debian.org> # Conflicts: # src/buf.c # src/flex.skl # src/skel.c
| * | Imported Upstream version 2.6.1Manoj Srivastava2016-07-31
| | |
| * | merge tag v2.6.1Manoj Srivastava2016-07-28
| |\| | | | | | | | | | Signed-off-by: Manoj Srivastava <srivasta@debian.org>
| | * warning: deprecated directive, use '%pure-parser' [-Wdeprecated]rlar2016-02-27
| | |
| | * Opened files in binary mode explicitlyEgor Pugin2016-01-10
| | |
| | * 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
| | * Remove allocation castsMichael McConville2015-12-07
| | |
| | * removed extra call to a _CPPFLAGS variableWill Estes2015-11-21
| | |
| | * Used in-tree header file for c++ tests.Mightyjo2015-11-18
| | |
* | | Updated for cross compilation supportdebian/2.6.0-9Manoj Srivastava2016-02-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updated standards version to 3.9.7. No changes needed. Bug fix: "[src:flex] FTCBFS: runs host arch binaries during build", thanks to Helmut Grohne. Make the tests use either the installed flex or the newly built flex to generate test soureces, depending on whether or not we are cross compiling. Also added a build depends flex <cross> Hope this works. This has not broken the common case. (Closes: #762180). Signed-off-by: Manoj Srivastava <srivasta@debian.org>