1 | # This file is part of flex.
|
---|
2 |
|
---|
3 | # Redistribution and use in source and binary forms, with or without
|
---|
4 | # modification, are permitted provided that the following conditions
|
---|
5 | # are met:
|
---|
6 |
|
---|
7 | # 1. Redistributions of source code must retain the above copyright
|
---|
8 | # notice, this list of conditions and the following disclaimer.
|
---|
9 | # 2. Redistributions in binary form must reproduce the above copyright
|
---|
10 | # notice, this list of conditions and the following disclaimer in the
|
---|
11 | # documentation and/or other materials provided with the distribution.
|
---|
12 |
|
---|
13 | # Neither the name of the University nor the names of its contributors
|
---|
14 | # may be used to endorse or promote products derived from this software
|
---|
15 | # without specific prior written permission.
|
---|
16 |
|
---|
17 | # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
|
---|
18 | # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
---|
19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
---|
20 | # PURPOSE.
|
---|
21 |
|
---|
22 | EXTRA_DIST = \
|
---|
23 | README
|
---|
24 |
|
---|
25 | dist_noinst_SCRIPTS = \
|
---|
26 | create-test
|
---|
27 |
|
---|
28 | DIST_SUBDIRS = \
|
---|
29 | test-rescan-r \
|
---|
30 | test-rescan-nr \
|
---|
31 | test-basic-nr \
|
---|
32 | test-basic-r \
|
---|
33 | test-bison-yylloc \
|
---|
34 | test-bison-yylval \
|
---|
35 | test-bison-nr \
|
---|
36 | test-multiple-scanners-nr \
|
---|
37 | test-multiple-scanners-r \
|
---|
38 | test-header-nr \
|
---|
39 | test-header-r \
|
---|
40 | test-reject \
|
---|
41 | test-c++-multiple-scanners \
|
---|
42 | test-c++-basic \
|
---|
43 | test-posixly-correct \
|
---|
44 | test-posix \
|
---|
45 | test-mem-r \
|
---|
46 | test-mem-nr \
|
---|
47 | test-debug-nr \
|
---|
48 | test-debug-r \
|
---|
49 | test-lineno-r \
|
---|
50 | test-lineno-nr \
|
---|
51 | test-linedir-r \
|
---|
52 | TEMPLATE \
|
---|
53 | test-top \
|
---|
54 | test-array-nr \
|
---|
55 | test-array-r \
|
---|
56 | test-c-cpp-nr \
|
---|
57 | test-c-cpp-r \
|
---|
58 | test-include-by-buffer \
|
---|
59 | test-include-by-push \
|
---|
60 | test-include-by-reentrant \
|
---|
61 | test-prefix-nr \
|
---|
62 | test-prefix-r \
|
---|
63 | test-pthread \
|
---|
64 | test-string-nr \
|
---|
65 | test-string-r \
|
---|
66 | test-yyextra \
|
---|
67 | test-noansi-nr \
|
---|
68 | test-noansi-r \
|
---|
69 | test-table-opts
|
---|
70 |
|
---|
71 | SUBDIRS = \
|
---|
72 | test-rescan-r \
|
---|
73 | test-rescan-nr \
|
---|
74 | test-basic-nr \
|
---|
75 | test-basic-r \
|
---|
76 | test-bison-yylloc \
|
---|
77 | test-bison-yylval \
|
---|
78 | test-bison-nr \
|
---|
79 | test-multiple-scanners-nr \
|
---|
80 | test-multiple-scanners-r \
|
---|
81 | test-header-nr \
|
---|
82 | test-header-r \
|
---|
83 | test-reject \
|
---|
84 | test-c++-multiple-scanners \
|
---|
85 | test-c++-basic \
|
---|
86 | test-posixly-correct \
|
---|
87 | test-posix \
|
---|
88 | test-mem-r \
|
---|
89 | test-mem-nr \
|
---|
90 | test-debug-nr \
|
---|
91 | test-debug-r \
|
---|
92 | test-lineno-r \
|
---|
93 | test-lineno-nr \
|
---|
94 | test-linedir-r \
|
---|
95 | test-array-nr \
|
---|
96 | test-array-r \
|
---|
97 | test-c-cpp-nr \
|
---|
98 | test-c-cpp-r \
|
---|
99 | test-include-by-buffer \
|
---|
100 | test-include-by-push \
|
---|
101 | test-include-by-reentrant \
|
---|
102 | test-prefix-nr \
|
---|
103 | test-prefix-r \
|
---|
104 | test-pthread \
|
---|
105 | test-string-nr \
|
---|
106 | test-string-r \
|
---|
107 | test-yyextra \
|
---|
108 | test-noansi-nr \
|
---|
109 | test-noansi-r \
|
---|
110 | test-top \
|
---|
111 | test-table-opts
|
---|
112 |
|
---|
113 | # clean up before running the test suite so we dont test old builds of test code
|
---|
114 |
|
---|
115 | check-local: clean
|
---|
116 | NOK=;\
|
---|
117 | NFAIL=;\
|
---|
118 | for dir in $(SUBDIRS) ; do \
|
---|
119 | echo Executing test "$$dir" ; \
|
---|
120 | ( cd "$$dir" && $(MAKE) test > OUTPUT 2>&1 ) ; \
|
---|
121 | case $$? in \
|
---|
122 | 0 ) echo Test "$$DIR" succeeded.; \
|
---|
123 | NOK=0$$NOK;\
|
---|
124 | ;; \
|
---|
125 | * ) echo Test "$$DIR" FAILED. See "$$dir"/OUTPUT for details. ; \
|
---|
126 | NFAIL=0$$NFAIL; \
|
---|
127 | ;; \
|
---|
128 | esac; \
|
---|
129 | done ; \
|
---|
130 | echo Results: ; \
|
---|
131 | echo Tests succeeded: `echo @ECHO_N@ "$$NOK@ECHO_C@"|wc -c`; \
|
---|
132 | echo Tests FAILED: `echo @ECHO_N@ "$$NFAIL@ECHO_C@"|wc -c` ; \
|
---|
133 | test "$$NFAIL" = ""
|
---|