summaryrefslogtreecommitdiffabout
path: root/tests/testsuite.at
blob: 55fda158e4676336dfcf1017dd5ea0e4edfaf5ab (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
# Process this file with autom4te to create testsuite. -*- Autotest -*-
# Copyright (C) 2005 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 2, 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, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301 USA.

# 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([fdecl.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])

# End of testsuite.at

Return to:

Send suggestions and report system problems to the System administrator.