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