1357f1050SThomas Veerman# This file is part of flex. 2357f1050SThomas Veerman 3357f1050SThomas Veerman# Redistribution and use in source and binary forms, with or without 4357f1050SThomas Veerman# modification, are permitted provided that the following conditions 5357f1050SThomas Veerman# are met: 6357f1050SThomas Veerman 7357f1050SThomas Veerman# 1. Redistributions of source code must retain the above copyright 8357f1050SThomas Veerman# notice, this list of conditions and the following disclaimer. 9357f1050SThomas Veerman# 2. Redistributions in binary form must reproduce the above copyright 10357f1050SThomas Veerman# notice, this list of conditions and the following disclaimer in the 11357f1050SThomas Veerman# documentation and/or other materials provided with the distribution. 12357f1050SThomas Veerman 13357f1050SThomas Veerman# Neither the name of the University nor the names of its contributors 14357f1050SThomas Veerman# may be used to endorse or promote products derived from this software 15357f1050SThomas Veerman# without specific prior written permission. 16357f1050SThomas Veerman 17357f1050SThomas Veerman# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 18357f1050SThomas Veerman# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 19357f1050SThomas Veerman# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 20357f1050SThomas Veerman# PURPOSE. 21357f1050SThomas Veerman 22357f1050SThomas VeermanEXTRA_DIST = \ 23357f1050SThomas Veerman README 24357f1050SThomas Veerman 25357f1050SThomas Veermandist_noinst_SCRIPTS = \ 26357f1050SThomas Veerman create-test 27357f1050SThomas Veerman 28357f1050SThomas VeermanDIST_SUBDIRS = \ 29357f1050SThomas Veerman test-concatenated-options \ 30357f1050SThomas Veerman test-c++-yywrap \ 31357f1050SThomas Veerman test-extended \ 32357f1050SThomas Veerman test-ccl \ 33357f1050SThomas Veerman test-quotes \ 34357f1050SThomas Veerman test-rescan-r \ 35357f1050SThomas Veerman test-rescan-nr \ 36357f1050SThomas Veerman test-basic-nr \ 37357f1050SThomas Veerman test-basic-r \ 38357f1050SThomas Veerman test-bison-yylloc \ 39357f1050SThomas Veerman test-bison-yylval \ 40357f1050SThomas Veerman test-bison-nr \ 41357f1050SThomas Veerman test-multiple-scanners-nr \ 42357f1050SThomas Veerman test-multiple-scanners-r \ 43357f1050SThomas Veerman test-header-nr \ 44357f1050SThomas Veerman test-header-r \ 45357f1050SThomas Veerman test-reject \ 46357f1050SThomas Veerman test-c++-multiple-scanners \ 47357f1050SThomas Veerman test-c++-basic \ 48357f1050SThomas Veerman test-posixly-correct \ 49357f1050SThomas Veerman test-posix \ 50357f1050SThomas Veerman test-mem-r \ 51357f1050SThomas Veerman test-mem-nr \ 52357f1050SThomas Veerman test-debug-nr \ 53357f1050SThomas Veerman test-debug-r \ 54357f1050SThomas Veerman test-lineno-r \ 55357f1050SThomas Veerman test-lineno-nr \ 56*0a6a1f1dSLionel Sambuc test-lineno-trailing \ 57357f1050SThomas Veerman test-linedir-r \ 58357f1050SThomas Veerman TEMPLATE \ 59357f1050SThomas Veerman test-top \ 60357f1050SThomas Veerman test-array-nr \ 61357f1050SThomas Veerman test-array-r \ 62357f1050SThomas Veerman test-c-cpp-nr \ 63357f1050SThomas Veerman test-c-cpp-r \ 64357f1050SThomas Veerman test-include-by-buffer \ 65357f1050SThomas Veerman test-include-by-push \ 66357f1050SThomas Veerman test-include-by-reentrant \ 67357f1050SThomas Veerman test-prefix-nr \ 68357f1050SThomas Veerman test-prefix-r \ 69357f1050SThomas Veerman test-pthread \ 70357f1050SThomas Veerman test-string-nr \ 71357f1050SThomas Veerman test-string-r \ 72357f1050SThomas Veerman test-yyextra \ 73357f1050SThomas Veerman test-alloc-extra \ 74357f1050SThomas Veerman test-noansi-nr \ 75357f1050SThomas Veerman test-noansi-r \ 76357f1050SThomas Veerman test-table-opts 77357f1050SThomas Veerman 78357f1050SThomas VeermanSUBDIRS = \ 79357f1050SThomas Veerman test-concatenated-options \ 80357f1050SThomas Veerman test-c++-yywrap \ 81357f1050SThomas Veerman test-extended \ 82357f1050SThomas Veerman test-ccl \ 83357f1050SThomas Veerman test-quotes \ 84357f1050SThomas Veerman test-rescan-r \ 85357f1050SThomas Veerman test-rescan-nr \ 86357f1050SThomas Veerman test-basic-nr \ 87357f1050SThomas Veerman test-basic-r \ 88357f1050SThomas Veerman test-bison-yylloc \ 89357f1050SThomas Veerman test-bison-yylval \ 90357f1050SThomas Veerman test-bison-nr \ 91357f1050SThomas Veerman test-multiple-scanners-nr \ 92357f1050SThomas Veerman test-multiple-scanners-r \ 93357f1050SThomas Veerman test-header-nr \ 94357f1050SThomas Veerman test-header-r \ 95357f1050SThomas Veerman test-reject \ 96357f1050SThomas Veerman test-c++-multiple-scanners \ 97357f1050SThomas Veerman test-c++-basic \ 98357f1050SThomas Veerman test-posixly-correct \ 99357f1050SThomas Veerman test-posix \ 100357f1050SThomas Veerman test-mem-r \ 101357f1050SThomas Veerman test-mem-nr \ 102357f1050SThomas Veerman test-debug-nr \ 103357f1050SThomas Veerman test-debug-r \ 104357f1050SThomas Veerman test-lineno-r \ 105357f1050SThomas Veerman test-lineno-nr \ 106*0a6a1f1dSLionel Sambuc test-lineno-trailing \ 107357f1050SThomas Veerman test-linedir-r \ 108357f1050SThomas Veerman test-array-nr \ 109357f1050SThomas Veerman test-array-r \ 110357f1050SThomas Veerman test-c-cpp-nr \ 111357f1050SThomas Veerman test-c-cpp-r \ 112357f1050SThomas Veerman test-include-by-buffer \ 113357f1050SThomas Veerman test-include-by-push \ 114357f1050SThomas Veerman test-include-by-reentrant \ 115357f1050SThomas Veerman test-prefix-nr \ 116357f1050SThomas Veerman test-prefix-r \ 117357f1050SThomas Veerman test-pthread \ 118357f1050SThomas Veerman test-string-nr \ 119357f1050SThomas Veerman test-string-r \ 120357f1050SThomas Veerman test-yyextra \ 121357f1050SThomas Veerman test-alloc-extra \ 122357f1050SThomas Veerman test-noansi-nr \ 123357f1050SThomas Veerman test-noansi-r \ 124357f1050SThomas Veerman test-top \ 125357f1050SThomas Veerman test-table-opts 126357f1050SThomas Veerman 127357f1050SThomas Veerman# clean up before running the test suite so we dont test old builds of test code 128357f1050SThomas Veerman 129357f1050SThomas Veermancheck-local: clean 130357f1050SThomas Veerman NOK=;\ 131357f1050SThomas Veerman NFAIL=;\ 132357f1050SThomas Veerman for dir in $(SUBDIRS) ; do \ 133357f1050SThomas Veerman echo Executing test "$$dir" ; \ 134357f1050SThomas Veerman ( cd "$$dir" && $(MAKE) test > OUTPUT 2>&1 ) ; \ 135357f1050SThomas Veerman case $$? in \ 136357f1050SThomas Veerman 0 ) echo Test "$$dir" succeeded.; \ 137357f1050SThomas Veerman NOK=0$$NOK;\ 138357f1050SThomas Veerman ;; \ 139357f1050SThomas Veerman * ) echo Test "$$dir" FAILED. See "$$dir"/OUTPUT for details. ; \ 140357f1050SThomas Veerman NFAIL=0$$NFAIL; \ 141357f1050SThomas Veerman ;; \ 142357f1050SThomas Veerman esac; \ 143357f1050SThomas Veerman done ; \ 144357f1050SThomas Veerman echo Results: ; \ 145357f1050SThomas Veerman echo Tests succeeded: `echo @ECHO_N@ "$$NOK@ECHO_C@"|wc -c`; \ 146357f1050SThomas Veerman echo Tests FAILED: `echo @ECHO_N@ "$$NFAIL@ECHO_C@"|wc -c` ; \ 147357f1050SThomas Veerman test "$$NFAIL" = "" 148