File: debugspec.at

package info (click to toggle)
mailutils 1%3A3.20-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 38,912 kB
  • sloc: ansic: 187,772; sh: 111,430; yacc: 7,463; cpp: 3,834; makefile: 3,166; lex: 1,972; python: 1,617; exp: 1,563; awk: 152; lisp: 132; sed: 31
file content (150 lines) | stat: -rw-r--r-- 4,047 bytes parent folder | download | duplicates (2)
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
# This file is part of GNU Mailutils. -*- Autotest -*-
# Copyright (C) 2010-2025 Free Software Foundation, Inc.
#
# GNU Mailutils 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.
#
# GNU Mailutils 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 GNU Mailutils.  If not, see <http://www.gnu.org/licenses/>.

dnl ------------------------------------------------------------
dnl TESTDBG([KW = `'], [ARGS], [STDOUT = `'],
dnl         [STDERR = `'])
dnl
m4_pushdef([TESTDBG],[
AT_SETUP([debugspec: $2])
AT_KEYWORDS([debugspec debug dbgspec $1])
AT_CHECK([debugspec $2],
[0],
[$3],
[$4])
AT_CLEANUP])

dnl ------------------------------------------------------------
TESTDBG([debugspec00],[mailbox],
[mailbox
])

TESTDBG([debugspec01],[mailbox.=trace2],
[mailbox.=trace2
])

TESTDBG([debugspec02],[mailbox.trace3],
[mailbox.trace3
])

TESTDBG([debugspec03],[mailbox.!trace3],
[mailbox.trace4-prot
])

TESTDBG([debugspec04],[mailbox.!=trace3],
[mailbox.trace2,trace4-prot
])

TESTDBG([debugspec05],[mailbox.!=prot],
[mailbox.trace9
])

TESTDBG([debugspec06],[mailbox.prot,!=trace4],
[mailbox.trace3,trace5-prot
])

TESTDBG([debugspec07],[mailbox.prot,!trace4],
[mailbox.trace5-prot
])

TESTDBG([debugspec08],[mailbox.trace2-trace5],
[mailbox.trace2-trace5
])

TESTDBG([debugspec09],[mailbox.trace2-trace5,trace7-prot],
[mailbox.trace2-trace5,trace7-prot
])

TESTDBG([debugspec10],
['mailbox.error,=trace3,=trace7,=trace9;mailer.trace7,!trace2'],
[mailbox.=error,=trace3,=trace7,=trace9;mailer.trace3-trace7
])

TESTDBG([debugspec11],
[-showunset -names='mailbox;mailer;filter' dnl
 'mailbox.error,=trace3,=trace7,=trace9;mailer.trace7,!trace2'],
[!filter;mailbox.=error,=trace3,=trace7,=trace9;mailer.trace3-trace7
])

TESTDBG([debugspec12],
[-sort all],
[acl;address;app;assoc;attribute;auth;body;config;envelope;filter;folder;header;iterator;list;locker;mailbox;mailcap;mailer;message;mime;mimetypes;property;remote;server;stream;ticket;tls;url;wicket
])

TESTDBG([debugspec13],
[-sort -names 'url;address;server;mailbox' all],
[address;mailbox;server;url
])

TESTDBG([debugspec14],
[-sort -showunset 'all;!mailer;!config;auth.prot,!=trace4'],
[acl;address;app;assoc;attribute;auth.trace3,trace5-prot;body;!config;envelope;filter;folder;header;iterator;list;locker;mailbox;mailcap;!mailer;message;mime;mimetypes;property;remote;server;stream;ticket;tls;url;wicket
])

TESTDBG([debugspec15],
[-sort -compress 'all;!mailer;!config;auth.prot,!=trace4'],
[all;auth.trace3,trace5-prot;!config;!mailer
])

TESTDBG([debugspec16],
[-quiet 'mailer' mailer.error mailer.trace0 mailer.prot auth.error auth.prot ],
[mailer.error: true
mailer.trace0: true
mailer.prot: true
auth.error: false
auth.prot: false
])

TESTDBG([debugspec17],
[-quiet 'mailer.trace3' mailer.error mailer.trace0 mailer.trace1 mailer.trace2 dnl
 mailer.trace3 mailer.trace4 mailer.prot],
[mailer.error: true
mailer.trace0: true
mailer.trace1: true
mailer.trace2: true
mailer.trace3: true
mailer.trace4: false
mailer.prot: false
])

TESTDBG([debugspec18],
[-quiet 'mailer.=trace3' mailer.error mailer.trace0 mailer.trace1 dnl
 mailer.trace2 mailer.trace3 mailer.trace4 mailer.prot],
[mailer.error: false
mailer.trace0: false
mailer.trace1: false
mailer.trace2: false
mailer.trace3: true
mailer.trace4: false
mailer.prot: false
])

TESTDBG([debugspec19],
[-quiet 'all;!mailer;auth.!=prot' mailer.error mailer.prot dnl
 auth.error auth.prot dnl
 app.error app.prot],
[mailer.error: false
mailer.prot: false
auth.error: true
auth.prot: false
app.error: true
app.prot: true
])

dnl ------------------------------------------------------------

m4_popdef([TESTDBG])