aboutsummaryrefslogtreecommitdiff
path: root/tests/testsuite.at
blob: 72af03748dafe899d191e87ca209ca6252aebcd6 (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
# Process this file with autom4te to create testsuite. -*- Autotest -*-
# Copyright (C) 2005, 2007, 2010, 2011, 2014 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.52g])

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])])

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([struct00.at])
m4_include([struct01.at])
m4_include([struct02.at])
m4_include([struct03.at])
m4_include([struct04.at])

# End of testsuite.at

Return to:

Send suggestions and report system problems to the System administrator.