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 22EXTRA_DIST = \ 23 README 24 25dist_noinst_SCRIPTS = \ 26 create-test 27 28DIST_SUBDIRS = \ 29 test-concatenated-options \ 30 test-c++-yywrap \ 31 test-extended \ 32 test-ccl \ 33 test-quotes \ 34 test-rescan-r \ 35 test-rescan-nr \ 36 test-basic-nr \ 37 test-basic-r \ 38 test-bison-yylloc \ 39 test-bison-yylval \ 40 test-bison-nr \ 41 test-multiple-scanners-nr \ 42 test-multiple-scanners-r \ 43 test-header-nr \ 44 test-header-r \ 45 test-reject \ 46 test-c++-multiple-scanners \ 47 test-c++-basic \ 48 test-posixly-correct \ 49 test-posix \ 50 test-mem-r \ 51 test-mem-nr \ 52 test-debug-nr \ 53 test-debug-r \ 54 test-lineno-r \ 55 test-lineno-nr \ 56 test-linedir-r \ 57 TEMPLATE \ 58 test-top \ 59 test-array-nr \ 60 test-array-r \ 61 test-c-cpp-nr \ 62 test-c-cpp-r \ 63 test-include-by-buffer \ 64 test-include-by-push \ 65 test-include-by-reentrant \ 66 test-prefix-nr \ 67 test-prefix-r \ 68 test-pthread \ 69 test-string-nr \ 70 test-string-r \ 71 test-yyextra \ 72 test-alloc-extra \ 73 test-noansi-nr \ 74 test-noansi-r \ 75 test-table-opts 76 77SUBDIRS = \ 78 test-concatenated-options \ 79 test-c++-yywrap \ 80 test-extended \ 81 test-ccl \ 82 test-quotes \ 83 test-rescan-r \ 84 test-rescan-nr \ 85 test-basic-nr \ 86 test-basic-r \ 87 test-bison-yylloc \ 88 test-bison-yylval \ 89 test-bison-nr \ 90 test-multiple-scanners-nr \ 91 test-multiple-scanners-r \ 92 test-header-nr \ 93 test-header-r \ 94 test-reject \ 95 test-c++-multiple-scanners \ 96 test-c++-basic \ 97 test-posixly-correct \ 98 test-posix \ 99 test-mem-r \ 100 test-mem-nr \ 101 test-debug-nr \ 102 test-debug-r \ 103 test-lineno-r \ 104 test-lineno-nr \ 105 test-linedir-r \ 106 test-array-nr \ 107 test-array-r \ 108 test-c-cpp-nr \ 109 test-c-cpp-r \ 110 test-include-by-buffer \ 111 test-include-by-push \ 112 test-include-by-reentrant \ 113 test-prefix-nr \ 114 test-prefix-r \ 115 test-pthread \ 116 test-string-nr \ 117 test-string-r \ 118 test-yyextra \ 119 test-alloc-extra \ 120 test-noansi-nr \ 121 test-noansi-r \ 122 test-top \ 123 test-table-opts 124 125# clean up before running the test suite so we dont test old builds of test code 126 127check-local: clean 128 NOK=;\ 129 NFAIL=;\ 130 for dir in $(SUBDIRS) ; do \ 131 echo Executing test "$$dir" ; \ 132 ( cd "$$dir" && $(MAKE) test > OUTPUT 2>&1 ) ; \ 133 case $$? in \ 134 0 ) echo Test "$$dir" succeeded.; \ 135 NOK=0$$NOK;\ 136 ;; \ 137 * ) echo Test "$$dir" FAILED. See "$$dir"/OUTPUT for details. ; \ 138 NFAIL=0$$NFAIL; \ 139 ;; \ 140 esac; \ 141 done ; \ 142 echo Results: ; \ 143 echo Tests succeeded: `echo @ECHO_N@ "$$NOK@ECHO_C@"|wc -c`; \ 144 echo Tests FAILED: `echo @ECHO_N@ "$$NFAIL@ECHO_C@"|wc -c` ; \ 145 test "$$NFAIL" = "" 146