| 1 |
# Makefile for GNU cflow regression tests. |
| 2 |
# Copyright (C) 2005-2025 Sergey Poznyakoff |
| 3 |
# |
| 4 |
# This program is free software; you can redistribute it and/or |
| 5 |
# modify it under the terms of the GNU General Public License as |
| 6 |
# published by the Free Software Foundation; either version 3, or (at |
| 7 |
# your option) any later version. |
| 8 |
# |
| 9 |
# This program is distributed in the hope that it will be useful, but |
| 10 |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 |
# General Public License for more details. |
| 13 |
# |
| 14 |
# You should have received a copy of the GNU General Public License |
| 15 |
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 16 |
|
| 17 |
EXTRA_DIST = $(TESTSUITE_AT) testsuite package.m4 |
| 18 |
DISTCLEANFILES = atconfig $(check_SCRIPTS) |
| 19 |
MAINTAINERCLEANFILES = Makefile.in $(TESTSUITE) |
| 20 |
|
| 21 |
## ------------ ## |
| 22 |
## package.m4. ## |
| 23 |
## ------------ ## |
| 24 |
|
| 25 |
$(srcdir)/package.m4: $(top_srcdir)/configure.ac |
| 26 |
{ \ |
| 27 |
echo '# Signature of the current package.'; \ |
| 28 |
echo 'm4_define([AT_PACKAGE_NAME], [@PACKAGE_NAME@])'; \ |
| 29 |
echo 'm4_define([AT_PACKAGE_TARNAME], [@PACKAGE_TARNAME@])'; \ |
| 30 |
echo 'm4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@])'; \ |
| 31 |
echo 'm4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@])'; \ |
| 32 |
echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \ |
| 33 |
} >$(srcdir)/package.m4 |
| 34 |
|
| 35 |
# |
| 36 |
|
| 37 |
## ------------ ## |
| 38 |
## Test suite. ## |
| 39 |
## ------------ ## |
| 40 |
|
| 41 |
TESTSUITE_AT = \ |
| 42 |
all.at\ |
| 43 |
attr.at\ |
| 44 |
awrapper.at\ |
| 45 |
bartest.at\ |
| 46 |
corner.at\ |
| 47 |
decl01.at\ |
| 48 |
direct.at\ |
| 49 |
fdecl.at\ |
| 50 |
funcarg.at\ |
| 51 |
hiding.at\ |
| 52 |
include.at\ |
| 53 |
invalid.at\ |
| 54 |
knr.at\ |
| 55 |
memberof.at\ |
| 56 |
multi.at\ |
| 57 |
nfarg.at\ |
| 58 |
nfparg.at\ |
| 59 |
num.at\ |
| 60 |
parm.at\ |
| 61 |
pwrapper.at\ |
| 62 |
recurse.at\ |
| 63 |
reverse.at\ |
| 64 |
ssblock.at\ |
| 65 |
static.at\ |
| 66 |
struct.at\ |
| 67 |
testsuite.at\ |
| 68 |
typedef.at\ |
| 69 |
version.at |
| 70 |
|
| 71 |
TESTSUITE = $(srcdir)/testsuite |
| 72 |
|
| 73 |
AUTOTEST = $(AUTOM4TE) --language=autotest |
| 74 |
$(TESTSUITE): package.m4 $(TESTSUITE_AT) |
| 75 |
$(AUTOTEST) -I $(srcdir) testsuite.at -o [email protected] |
| 76 |
mv [email protected] $@ |
| 77 |
|
| 78 |
atconfig: $(top_builddir)/config.status |
| 79 |
cd $(top_builddir) && ./config.status tests/$@ |
| 80 |
|
| 81 |
clean-local: |
| 82 |
$(SHELL) $(TESTSUITE) --clean |
| 83 |
|
| 84 |
check-local: atconfig atlocal $(TESTSUITE) |
| 85 |
$(SHELL) $(TESTSUITE) |
| 86 |
|
| 87 |
# Run the test suite on the *installed* tree. |
| 88 |
installcheck-local: |
| 89 |
$(SHELL) $(TESTSUITE) AUTOTEST_PATH=$(exec_prefix)/bin |