aboutsummaryrefslogtreecommitdiff
path: root/tests/testsuite.at
blob: e6a1947591e236f107425b82601356bcd8ab185d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# Process this file with autom4te to create testsuite. -*- Autotest -*-
# Copyright (C) 2005-2019 Sergey Poznyakoff
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 3, or (at
# your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

# We need a recent Autotest.
m4_version_prereq([2.69])

m4_define([TEST_CFLOW_OPTIONS],[])

dnl CFLOW_CHECK_PROG(PROGNAME,OUTPUT,[STDERR],[RUN-IF-FAIL], [RUN-IF-PASS])
m4_define([CFLOW_CHECK_PROG],[
dnl Save sample output
AT_DATA([expout],[$2])
AT_CHECK([cflow ]TEST_CFLOW_OPTIONS[ $1],
[0],
[expout],
[$3],[$4],[$5])])

dnl CFLOW_CHECK(TEXT,OUTPUT,[STDERR],[RUN-IF-FAIL], [RUN-IF-PASS])
m4_define([CFLOW_CHECK],[
dnl Save the program
AT_DATA([prog],[$1
])
CFLOW_CHECK_PROG([prog],m4_shift($@))])

m4_define([CFLOW_OPT],[
m4_pushdef([TEST_CFLOW_OPTIONS],[$1])
$2
m4_popdef([TEST_CFLOW_OPTIONS])])

m4_pushdef([CFLOW_TEST],
[AT_SETUP([$1])
AT_KEYWORDS([$2])
CFLOW_CHECK(m4_shift(m4_shift($@)))
AT_CLEANUP
])

AT_INIT

CFLOW_TEST_INIT

AT_TESTED([cflow])

m4_include([version.at])
m4_include([direct.at])
m4_include([reverse.at])
m4_include([recurse.at])
m4_include([attr.at])
m4_include([awrapper.at])
m4_include([pwrapper.at])
m4_include([knr.at])
m4_include([fdecl.at])
m4_include([static.at])
m4_include([include.at])
m4_include([ssblock.at])
m4_include([funcarg.at])
m4_include([parm.at])
m4_include([nfparg.at])
m4_include([nfarg.at])
m4_include([hiding.at])
m4_include([multi.at])
m4_include([bartest.at])
m4_include([decl01.at])
m4_include([invalid.at])
m4_include([memberof.at])

m4_include([struct.at])
m4_include([typedef.at])
m4_include([all.at])

# End of testsuite.at

Return to:

Send suggestions and report system problems to the System administrator.