Index of /archives/NetBSD/NetBSD-release-10/src/external/bsd/flex/dist/tests
Name Last modified Size Description
Parent Directory -
yyextra.txt 2016-01-10 00:43 37K
yyextra.l 2017-01-03 01:26 3.1K
top_main.c 2016-01-10 00:43 1.9K
top.txt 2016-01-10 00:43 61
top.l 2016-01-10 00:43 1.3K
testwrapper.sh 2018-12-24 00:57 1.4K
testwrapper-direct.sh 2018-12-24 00:57 400
tableopts.txt 2016-01-10 00:43 68
tableopts.sh 2018-12-24 00:57 1.5K
tableopts.l4 2017-01-03 01:26 2.1K
tableopts.am 2018-12-24 00:57 12K
string_r.l 2017-01-03 01:26 2.9K
string_nr.l 2017-01-03 01:26 2.6K
rescan_r.direct.txt 2016-01-10 00:43 54
rescan_r.direct.l 2017-01-03 01:26 2.3K
rescan_nr.direct.txt 2016-01-10 00:43 54
rescan_nr.direct.l 2017-01-03 01:26 1.7K
reject.txt 2016-01-10 00:43 54
reject.l4 2017-01-03 01:26 2.1K
quotes.txt 2016-01-10 00:43 54
quotes.l 2017-01-03 01:26 4.1K
quote_in_comment.txt 2017-01-03 01:26 5
quote_in_comment.l 2017-01-03 01:26 192
pthread_5.txt 2016-01-10 00:43 68K
pthread_4.txt 2016-01-10 00:43 68K
pthread_3.txt 2016-01-10 00:43 68K
pthread_2.txt 2016-01-10 00:43 68K
pthread_1.txt 2016-01-10 00:43 68K
pthread.l 2018-12-24 00:57 5.8K
prefix_r.txt 2016-01-10 00:43 13
prefix_r.l 2017-01-03 01:26 2.5K
prefix_nr.txt 2016-01-10 00:43 13
prefix_nr.l 2017-01-03 01:26 2.0K
posixly_correct.l 2017-01-03 01:26 2.0K
posix.l 2017-01-03 01:26 2.0K
options.cn 2018-12-24 00:57 112
no_bison_stub.c 2018-12-24 00:57 1.4K
multiple_scanners_r_main.c 2017-01-03 01:26 1.8K
multiple_scanners_r_2.l 2016-01-10 00:43 1.5K
multiple_scanners_r_1.l 2016-01-10 00:43 1.5K
multiple_scanners_nr_main.c 2016-01-10 00:43 1.5K
multiple_scanners_nr_2.l 2016-01-10 00:43 1.4K
multiple_scanners_nr_1.l 2016-01-10 00:43 1.4K
mem_r.txt 2016-01-10 00:43 2.7K
mem_r.l 2017-01-03 01:26 4.7K
mem_nr.txt 2016-01-10 00:43 2.7K
mem_nr.l 2017-01-03 01:26 4.4K
lineno_trailing.one.txt 2016-01-10 00:43 179
lineno_trailing.l 2017-01-03 01:26 2.2K
lineno_r.one.txt 2016-01-10 00:43 299
lineno_r.l 2017-01-03 01:26 2.3K
lineno_nr.one.txt 2016-01-10 00:43 299
lineno_nr.l 2017-01-03 01:26 2.2K
include_by_reentrant.direct_3.txt 2016-01-10 00:43 94
include_by_reentrant.direct_2.txt 2016-01-10 00:43 139
include_by_reentrant.direct.txt 2016-01-10 00:43 135
include_by_reentrant.direct.l 2017-01-03 01:26 2.5K
include_by_push.direct_3.txt 2016-01-10 00:43 82
include_by_push.direct_2.txt 2016-01-10 00:43 122
include_by_push.direct.txt 2016-01-10 00:43 118
include_by_push.direct.l 2017-01-03 01:26 2.4K
include_by_buffer.direct_3.txt 2016-01-10 00:43 86
include_by_buffer.direct_2.txt 2016-01-10 00:43 128
include_by_buffer.direct.txt 2016-01-10 00:43 124
include_by_buffer.direct.l 2017-01-03 01:26 2.6K
header_r_scanner.l 2016-01-10 00:43 1.3K
header_r_main.c 2016-01-10 00:43 1.9K
header_r.txt 2016-01-10 00:43 61
header_nr_scanner.l 2016-01-10 00:43 1.2K
header_nr_main.c 2016-01-10 00:43 1.2K
header_nr.txt 2016-01-10 00:43 61
extended.txt 2016-01-10 00:43 32
extended.l 2017-01-03 01:26 1.8K
debug_r.txt 2016-01-10 00:43 88
debug_r.l 2017-01-03 01:26 1.5K
debug_nr.txt 2016-01-10 00:43 88
debug_nr.l 2017-01-03 01:26 1.3K
cxx_yywrap.txt 2016-01-10 00:43 54
cxx_yywrap.ll 2016-01-10 00:43 1.7K
cxx_restart.txt 2017-01-03 01:26 54
cxx_restart.ll 2017-01-03 01:26 1.3K
cxx_multiple_scanners_main.cc 2016-01-10 00:43 1.5K
cxx_multiple_scanners_2.ll 2016-01-10 00:43 1.4K
cxx_multiple_scanners_1.ll 2016-01-10 00:43 1.3K
cxx_multiple_scanners.txt 2016-01-10 00:43 15
cxx_basic.txt 2016-01-10 00:43 54
cxx_basic.ll 2016-01-10 00:43 1.3K
ccl.txt 2016-01-10 00:43 1.3K
ccl.l 2017-01-03 01:26 3.8K
c_cxx_r.txt 2016-01-10 00:43 54
c_cxx_r.lll 2017-01-03 01:26 1.6K
c_cxx_nr.txt 2016-01-10 00:43 54
c_cxx_nr.lll 2017-01-03 01:26 1.4K
bison_yylval_scanner.l 2017-01-03 01:26 2.2K
bison_yylval_parser.y 2017-01-03 01:26 2.1K
bison_yylval_main.c 2016-01-10 00:43 1.3K
bison_yylval.txt 2016-01-10 00:43 69
bison_yylloc_scanner.l 2017-01-03 01:26 1.8K
bison_yylloc_parser.y 2017-01-03 01:26 2.3K
bison_yylloc_main.c 2016-01-10 00:43 1.3K
bison_yylloc.txt 2016-01-10 00:43 96
bison_nr_scanner.l 2017-01-03 01:26 1.7K
bison_nr_parser.y 2017-01-03 01:26 2.2K
bison_nr_main.c 2017-01-03 01:26 1.2K
bison_nr.txt 2016-01-10 00:43 96
basic_r.txt 2016-01-10 00:43 57
basic_r.l 2017-01-03 01:26 1.8K
basic_nr.txt 2016-01-10 00:43 58
basic_nr.l 2017-01-03 01:26 1.7K
array_r.txt 2016-01-10 00:43 54
array_r.l 2017-01-03 01:26 1.4K
array_nr.txt 2016-01-10 00:43 54
array_nr.l 2017-01-03 01:26 1.3K
alloc_extra.txt 2016-01-10 00:43 37K
alloc_extra.l 2017-01-03 01:26 2.8K
README 2018-12-24 00:57 2.3K
Makefile.in 2018-12-24 00:57 125K
Makefile.am 2018-12-24 00:57 16K
CVS/ 2025-02-12 12:07 -
This file describes the flex test suite.
* WHO SHOULD USE THE TEST SUITE?
The test suite is intended to be used by flex developers, i.e., anyone hacking
the flex distribution. If you are simply installing flex, then you can ignore
this directory and its contents.
* STRUCTURE OF THE TEST SUITE
The testsuite consists of several tests. Each test is centered around
a scanner known to work with the most recent version of flex. In
general, after you modify your copy of the flex distribution, you
should re-run the test suite. Some of the tests may require certain
tools to be available (e.g., bison, diff). If any test returns an
error or generates an error message, then your modifications *may*
have broken a feature of flex. At a minimum, you'll want to
investigate the failure and determine if it's truly significant.
* HOW TO RUN THE TEST SUITE
To build and execute all tests from the top level of the flex source tree:
$ make check
To build and execute a single test:
$ cd tests/ # from the top level of the flex tree.
$ make testname.log
where "testname" is the name of the test. This is an automake-ism
that will create (or re-create, if need be), a log of the particular
test run that you're working on.
* HOW TO ADD A NEW TEST TO THE TEST SUITE
** List your test in the TESTS variable in Makefile.am in this
directory. Note that due to the large number of tests, we use
variables to group similar tests together. This also helps with
handling the automake test suite requirements. Hopefully your test
can be listed in SIMPLE_TESTS. You'll need to add the appropriate
automake _SOURCES variable as well. If you're unsure, then consult
the automake manual, paying attention to the parallel test harness
section.
** On success, your test should return zero.
** On error, your test should return 1 (one) and print a message to
stderr, which will have been redirected to the log file created by the
automake test suite harness.
** If your test is skipped (e.g., because bison was not found), then
the test should return 77 (seventy-seven). This is the exit status that
would be recognized by automake's "test-driver" as _skipped_.
** Once your work is done, submit a patch via the flex development
mailing list, the github pull request mechanism or some other
suitable means.