• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

Makefile.amH A D03-May-201715.7 KiB508381

Makefile.inH A D06-May-2017124.9 KiB3,2692,934

READMEH A D24-Jan-20172.3 KiB5942

alloc_extra.lH A D21-Oct-20162.8 KiB12163

array_nr.lH A D21-Oct-20161.3 KiB5621

array_r.lH A D12-Nov-20161.4 KiB6324

basic_nr.lH A D21-Oct-20161.7 KiB6526

basic_r.lH A D21-Oct-20161.8 KiB6930

bison_nr_main.cH A D21-Oct-20161.2 KiB4210

bison_nr_parser.yH A D21-Oct-20162.2 KiB9851

bison_nr_scanner.lH A D21-Oct-20161.7 KiB6331

bison_yylloc_main.cH A D21-Oct-20161.3 KiB4513

bison_yylloc_parser.yH A D21-Oct-20162.3 KiB10155

bison_yylloc_scanner.lH A D21-Oct-20161.8 KiB6633

bison_yylval_main.cH A D21-Oct-20161.3 KiB4413

bison_yylval_parser.yH A D21-Oct-20162.1 KiB8544

bison_yylval_scanner.lH A D21-Oct-20162.2 KiB8247

c_cxx_nr.lllH A D21-Oct-20161.4 KiB5848

c_cxx_r.lllH A D21-Oct-20161.6 KiB6252

ccl.lH A D21-Oct-20163.8 KiB9653

cxx_basic.llH A D21-Oct-20161.3 KiB5141

cxx_multiple_scanners_1.llH A D21-Oct-20161.3 KiB4537

cxx_multiple_scanners_2.llH A D21-Oct-20161.4 KiB4942

cxx_multiple_scanners_main.ccH A D21-Oct-20161.5 KiB5725

cxx_restart.llH A D21-Oct-20161.3 KiB5242

cxx_yywrap.llH A D21-Oct-20161.7 KiB7158

debug_nr.lH A D21-Oct-20161.3 KiB5323

debug_r.lH A D21-Oct-20161.5 KiB6027

extended.lH A D21-Oct-20161.8 KiB7435

header_nr_main.cH A D21-Oct-20161.2 KiB4112

header_nr_scanner.lH A D21-Oct-20161.2 KiB4311

header_r_main.cH A D21-Oct-20161.9 KiB6832

header_r_scanner.lH A D21-Oct-20161.3 KiB4712

include_by_buffer.direct.lH A D21-Oct-20162.6 KiB11071

include_by_push.direct.lH A D21-Oct-20162.4 KiB10061

include_by_reentrant.direct.lH A D21-Oct-20162.5 KiB10767

lineno_nr.lH A D21-Oct-20162.2 KiB9545

lineno_r.lH A D21-Oct-20162.3 KiB9848

lineno_trailing.lH A D21-Oct-20162.2 KiB8842

mem_nr.lH A D21-Oct-20164.4 KiB180120

mem_r.lH A D21-Oct-20164.7 KiB188125

multiple_scanners_nr_1.lH A D21-Oct-20161.4 KiB5120

multiple_scanners_nr_2.lH A D21-Oct-20161.4 KiB5020

multiple_scanners_nr_main.cH A D21-Oct-20161.5 KiB5224

multiple_scanners_r_1.lH A D21-Oct-20161.5 KiB5120

multiple_scanners_r_2.lH A D21-Oct-20161.5 KiB5020

multiple_scanners_r_main.cH A D21-Oct-20161.8 KiB6530

no_bison_stub.cH A D25-Jan-20171.4 KiB4011

options.cnH A D18-Jan-2017112 61

posix.lH A D21-Oct-20162 KiB8035

posixly_correct.lH A D21-Oct-20162 KiB8035

prefix_nr.lH A D21-Oct-20162 KiB7639

prefix_r.lH A D21-Oct-20162.5 KiB8447

pthread.lH A D23-Feb-20175.8 KiB209123

quote_in_comment.lH A D08-Nov-2016192 1715

quotes.lH A D04-Nov-20164.1 KiB13258

reject.l4H A D21-Oct-20162.1 KiB8367

rescan_nr.direct.lH A D21-Oct-20161.7 KiB7339

rescan_r.direct.lH A D21-Oct-20162.3 KiB9856

string_nr.lH A D21-Oct-20162.6 KiB9750

string_r.lH A D21-Oct-20162.9 KiB10457

tableopts.amH A D03-May-201712.2 KiB334200

tableopts.l4H A D21-Oct-20162.1 KiB8570

tableopts.shH A D03-May-20171.5 KiB4832

testwrapper-direct.shH A D18-Jan-2017400 2112

testwrapper.shH A D18-Jan-20171.4 KiB5945

top.lH A D21-Oct-20161.3 KiB5418

top_main.cH A D21-Oct-20161.9 KiB6832

yyextra.lH A D21-Oct-20163.1 KiB12268

README

1This file describes the flex test suite.
2
3* WHO SHOULD USE THE TEST SUITE?
4
5The test suite is intended to be used by flex developers, i.e., anyone hacking
6the flex distribution. If you are simply installing flex, then you can ignore
7this directory and its contents.
8
9* STRUCTURE OF THE TEST SUITE
10
11The testsuite consists of several tests. Each test is centered around
12a scanner known to work with the most recent version of flex. In
13general, after you modify your copy of the flex distribution, you
14should re-run the test suite. Some of the tests may require certain
15tools to be available (e.g., bison, diff). If any test returns an
16error or generates an error message, then your modifications *may*
17have broken a feature of flex. At a minimum, you'll want to
18investigate the failure and determine if it's truly significant.
19
20* HOW TO RUN THE TEST SUITE
21
22To build and execute all tests from the top level of the flex source tree:
23
24  $ make check
25
26To build and execute a single test:
27
28  $ cd tests/ # from the top level of the flex tree.
29  $ make testname.log
30
31  where "testname" is the name of the test. This is an automake-ism
32  that will create (or re-create, if need be), a log of the particular
33  test run that you're working on.
34
35* HOW TO ADD A NEW TEST TO THE TEST SUITE
36
37** List your test in the TESTS variable in Makefile.am in this
38   directory. Note that due to the large number of tests, we use
39   variables to group similar tests together. This also helps with
40   handling the automake test suite requirements. Hopefully your test
41   can be listed in SIMPLE_TESTS. You'll need to add the appropriate
42   automake _SOURCES variable as well. If you're unsure, then consult
43   the automake manual, paying attention to the parallel test harness
44   section.
45
46** On success, your test should return zero.
47
48** On error, your test should return 1 (one) and print a message to
49stderr, which will have been redirected to the log file created by the
50automake test suite harness.
51
52** If your test is skipped (e.g., because bison was not found), then
53   the test should return 77 (seventy-seven). This is the exit status that
54   would be recognized by automake's "test-driver" as _skipped_.
55
56** Once your work is done, submit a patch via the flex development
57   mailing list, the github pull request mechanism or some other
58   suitable means.
59