Name Date Size #Lines LOC

..--

TEMPLATE/H--1,099793

test-alloc-extra/H--1,8981,443

test-array-nr/H--1,034777

test-array-r/H--1,032774

test-basic-nr/H--1,048784

test-basic-r/H--1,049788

test-bison-nr/H--1,195862

test-bison-yylloc/H--1,199867

test-bison-yylval/H--1,199871

test-c++-basic/H--1,021772

test-c++-multiple-scanners/H--1,141829

test-c++-yywrap/H--1,040789

test-c-cpp-nr/H--1,027772

test-c-cpp-r/H--1,031776

test-ccl/H--1,085829

test-concatenated-options/H--934716

test-debug-nr/H--1,019773

test-debug-r/H--1,026777

test-extended/H--1,038786

test-header-nr/H--1,071784

test-header-r/H--1,104805

test-include-by-buffer/H--1,092827

test-include-by-push/H--1,082817

test-include-by-reentrant/H--1,091825

test-linedir-r/H--1,112816

test-lineno-nr/H--1,079812

test-lineno-r/H--1,082815

test-lineno-trailing/H--1,066804

test-mem-nr/H--1,169888

test-mem-r/H--1,171890

test-multiple-scanners-nr/H--1,142826

test-multiple-scanners-r/H--1,186861

test-noansi-nr/H--1,049785

test-noansi-r/H--1,050789

test-posix/H--1,046783

test-posixly-correct/H--1,046783

test-prefix-nr/H--1,059795

test-prefix-r/H--1,067803

test-pthread/H--5,4125,104

test-quotes/H--1,075799

test-reject/H--1,153866

test-rescan-nr/H--1,044789

test-rescan-r/H--1,069806

test-string-nr/H--1,066798

test-string-r/H--1,073805

test-table-opts/H--1,317970

test-top/H--1,111811

test-yyextra/H--1,8961,447

MakefileH A D15-Oct-201521.8 KiB767661

Makefile.amH A D15-Oct-20153.3 KiB148120

Makefile.inH A D15-Oct-201521.5 KiB767663

READMEH A D06-Jun-20123.1 KiB7857

create-testH A D06-Jun-2012559 3423

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 test suite consists of several directories, each containing a
12scanner 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 tools
15to be available (e.g., bison, diff). If any test returns an error or
16generates an error message, then your modifications *may* have broken
17a feature of flex. At a minimum, you'll want to investigate the
18failure 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  $ cd test-pthread-nr # for example
30  $ make test
31
32* HOW TO ADD A NEW TEST TO THE TEST SUITE
33
34**- RUN the script `create-test` found in this directory with a single
35argument of the name of the test you want to create.  If it fails with
36a message about a non-existent file `config.status', then run the
37configure script in the top-level directory and everything will be
38fine.  If it fails to work for you other than this, report it as a
39bug.
40
41** Modify the files in the newly created directory so that they test
42whatever feature of flex you are interested in.
43
44** On success, your test should return zero.
45
46** On error, your test should return 1 (one) and print a message to
47stderr, which will have been redirected to the file named, "OUTPUT",
48in your test's directory.
49
50** If your test is skipped (e.g., because bison was not found), then
51   the test should return 2 (two). See "test-bison-nr/Makefile.am" for
52   an example.
53
54** You must modify the last few lines of the top-level configure.in by
55   adding the Makefile for your test directory.  (This step is
56   done automatically by `create-test`.)
57
58** You must add the name of your test to the SUBDIRS variable in
59   tests/Makefile.am. (This is also done automatically for you by `create-test'.)
60
61** Add a description of your new test to the end of the file
62    `descriptions'. Remember to keep the description as brief as
63    possible, preferably to one line.
64
65** You will have to run the autogen.sh script in the top-level
66   directory as well as run the configure script in that
67   directory. (Note that running config.status may prove easier or
68   quicker.)
69
70** The easiest way for you to submit your new test to the flex
71   maintainers is by generating a patch. The flex maintainers only
72   need to have the Makefile.am, the flex input file, the test input
73   file (if there is one) and any other files necessary to compile the
74   test. You do not need to submit files generated by autoconf,
75   automake, configure etc. It would be helpful to include the file
76   .cvsignore which you will find in your test directory if you used
77   the `create-test' script.
78