Debian Codegraph @

tests/testsuite.at

raw
1 # Process this file with autom4te to create testsuite. -*- Autotest -*-
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 # We need a recent Autotest.
18 m4_version_prereq([2.69])
19
20 m4_define([TEST_CFLOW_OPTIONS],[])
21
22 dnl CFLOW_CHECK_PROG(PROGNAME,OUTPUT,[STDERR],[RUN-IF-FAIL], [RUN-IF-PASS])
23 m4_define([CFLOW_CHECK_PROG],[
24 dnl Save sample output
25 AT_DATA([expout],[$2])
26 AT_CHECK([cflow ]TEST_CFLOW_OPTIONS[ $1],
27 [0],
28 [expout],
29 [$3],[$4],[$5])])
30
31 dnl CFLOW_CHECK(TEXT,OUTPUT,[STDERR],[RUN-IF-FAIL], [RUN-IF-PASS])
32 m4_define([CFLOW_CHECK],[
33 dnl Save the program
34 AT_DATA([prog],[$1
35 ])
36 CFLOW_CHECK_PROG([prog],m4_shift($@))])
37
38 m4_define([CFLOW_OPT],[
39 m4_pushdef([TEST_CFLOW_OPTIONS],[$1])
40 $2
41 m4_popdef([TEST_CFLOW_OPTIONS])])
42
43 m4_pushdef([CFLOW_TEST],
44 [AT_SETUP([$1])
45 AT_KEYWORDS([$2])
46 CFLOW_CHECK(m4_shift(m4_shift($@)))
47 AT_CLEANUP
48 ])
49
50 AT_INIT
51
52 CFLOW_TEST_INIT
53
54 AT_TESTED([cflow])
55
56 m4_include([version.at])
57 m4_include([direct.at])
58 m4_include([reverse.at])
59 m4_include([recurse.at])
60 m4_include([attr.at])
61 m4_include([awrapper.at])
62 m4_include([pwrapper.at])
63 m4_include([knr.at])
64 m4_include([fdecl.at])
65 m4_include([static.at])
66 m4_include([include.at])
67 m4_include([ssblock.at])
68 m4_include([funcarg.at])
69 m4_include([parm.at])
70 m4_include([nfparg.at])
71 m4_include([nfarg.at])
72 m4_include([hiding.at])
73 m4_include([multi.at])
74 m4_include([bartest.at])
75 m4_include([decl01.at])
76 m4_include([invalid.at])
77 m4_include([memberof.at])
78 m4_include([num.at])
79
80 m4_include([struct.at])
81 m4_include([typedef.at])
82 m4_include([all.at])
83
84 m4_include([corner.at])
85
86 # End of testsuite.at