2 # Test of fmtmsg function family.
3 # Copyright (C) 2000-2016 Free Software Foundation, Inc.
4 # This file is part of the GNU C Library.
6 # The GNU C Library is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU Lesser General Public
8 # License as published by the Free Software Foundation; either
9 # version 2.1 of the License, or (at your option) any later version.
11 # The GNU C Library is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # Lesser General Public License for more details.
16 # You should have received a copy of the GNU Lesser General Public
17 # License along with the GNU C Library; if not, see
18 # <http://www.gnu.org/licenses/>.
23 test_program_prefix_before_env
=$2
25 test_program_prefix_after_env
=$4
28 test_pre
="${test_program_prefix_before_env} ${run_program_env}"
29 test="${test_program_prefix_after_env} ${objpfx}tst-fmtmsg"
30 out
=${objpfx}tst-fmtmsg.out
32 ($test_pre MSGVERB
= $test ||
exit 1;
33 $test_pre MSGVERB
=label
$test ||
exit 1;
34 $test_pre MSGVERB
=severity
$test ||
exit 1;
35 $test_pre MSGVERB
=severity
:label
$test ||
exit 1;
36 $test_pre MSGVERB
=text
$test ||
exit 1;
37 $test_pre MSGVERB
=text
:label
$test ||
exit 1;
38 $test_pre MSGVERB
=text
:severity
$test ||
exit 1;
39 $test_pre MSGVERB
=text
:severity
:label
$test ||
exit 1;
40 $test_pre MSGVERB
=action
$test ||
exit 1;
41 $test_pre MSGVERB
=action
:label
$test ||
exit 1;
42 $test_pre MSGVERB
=action
:severity
$test ||
exit 1;
43 $test_pre MSGVERB
=action
:severity
:label
$test ||
exit 1;
44 $test_pre MSGVERB
=action
:text
$test ||
exit 1;
45 $test_pre MSGVERB
=action
:text
:label
$test ||
exit 1;
46 $test_pre MSGVERB
=action
:text
:severity
$test ||
exit 1;
47 $test_pre MSGVERB
=action
:text
:severity
:label
$test ||
exit 1;
48 $test_pre MSGVERB
=tag
$test ||
exit 1;
49 $test_pre MSGVERB
=tag
:label
$test ||
exit 1;
50 $test_pre MSGVERB
=tag
:severity
$test ||
exit 1;
51 $test_pre MSGVERB
=tag
:severity
:label
$test ||
exit 1;
52 $test_pre MSGVERB
=tag
:text
$test ||
exit 1;
53 $test_pre MSGVERB
=tag
:text
:label
$test ||
exit 1;
54 $test_pre MSGVERB
=tag
:text
:severity
$test ||
exit 1;
55 $test_pre MSGVERB
=tag
:text
:severity
:label
$test ||
exit 1;
56 $test_pre MSGVERB
=tag
:action
$test ||
exit 1;
57 $test_pre MSGVERB
=tag
:action
:label
$test ||
exit 1;
58 $test_pre MSGVERB
=tag
:action
:severity
$test ||
exit 1;
59 $test_pre MSGVERB
=tag
:action
:severity
:label
$test ||
exit 1;
60 $test_pre MSGVERB
=tag
:action
:text
$test ||
exit 1;
61 $test_pre MSGVERB
=tag
:action
:text
:label
$test ||
exit 1;
62 $test_pre MSGVERB
=tag
:action
:text
:severity
$test ||
exit 1;
63 $test_pre MSGVERB
=tag
:action
:text
:severity
:label
$test ||
exit 1;) 2> $out
66 GLIBC:tst-fmtmsg: HALT: halt
67 TO FIX: should print message for MM_HALT GLIBC:tst-fmtmsg:1
68 GLIBC:tst-fmtmsg: ERROR: halt
69 TO FIX: should print message for MM_ERROR GLIBC:tst-fmtmsg:2
70 GLIBC:tst-fmtmsg: WARNING: halt
71 TO FIX: should print message for MM_WARNING GLIBC:tst-fmtmsg:3
72 GLIBC:tst-fmtmsg: INFO: halt
73 TO FIX: should print message for MM_INFO GLIBC:tst-fmtmsg:4
74 GLIBC:tst-fmtmsg: halt
75 TO FIX: should print message for MM_NOSEV GLIBC:tst-fmtmsg:5
76 GLIBC:tst-fmtmsg: TEST: halt
77 TO FIX: should print message for MM_TEST GLIBC:tst-fmtmsg:6
90 GLIBC:tst-fmtmsg: HALT
91 GLIBC:tst-fmtmsg: ERROR
92 GLIBC:tst-fmtmsg: WARNING
93 GLIBC:tst-fmtmsg: INFO
95 GLIBC:tst-fmtmsg: TEST
102 GLIBC:tst-fmtmsg: halt
103 GLIBC:tst-fmtmsg: halt
104 GLIBC:tst-fmtmsg: halt
105 GLIBC:tst-fmtmsg: halt
106 GLIBC:tst-fmtmsg: halt
107 GLIBC:tst-fmtmsg: halt
114 GLIBC:tst-fmtmsg: HALT: halt
115 GLIBC:tst-fmtmsg: ERROR: halt
116 GLIBC:tst-fmtmsg: WARNING: halt
117 GLIBC:tst-fmtmsg: INFO: halt
118 GLIBC:tst-fmtmsg: halt
119 GLIBC:tst-fmtmsg: TEST: halt
120 TO FIX: should print message for MM_HALT
121 TO FIX: should print message for MM_ERROR
122 TO FIX: should print message for MM_WARNING
123 TO FIX: should print message for MM_INFO
124 TO FIX: should print message for MM_NOSEV
125 TO FIX: should print message for MM_TEST
126 GLIBC:tst-fmtmsg: TO FIX: should print message for MM_HALT
127 GLIBC:tst-fmtmsg: TO FIX: should print message for MM_ERROR
128 GLIBC:tst-fmtmsg: TO FIX: should print message for MM_WARNING
129 GLIBC:tst-fmtmsg: TO FIX: should print message for MM_INFO
130 GLIBC:tst-fmtmsg: TO FIX: should print message for MM_NOSEV
131 GLIBC:tst-fmtmsg: TO FIX: should print message for MM_TEST
132 HALT: TO FIX: should print message for MM_HALT
133 ERROR: TO FIX: should print message for MM_ERROR
134 WARNING: TO FIX: should print message for MM_WARNING
135 INFO: TO FIX: should print message for MM_INFO
136 TO FIX: should print message for MM_NOSEV
137 TEST: TO FIX: should print message for MM_TEST
138 GLIBC:tst-fmtmsg: HALT: TO FIX: should print message for MM_HALT
139 GLIBC:tst-fmtmsg: ERROR: TO FIX: should print message for MM_ERROR
140 GLIBC:tst-fmtmsg: WARNING: TO FIX: should print message for MM_WARNING
141 GLIBC:tst-fmtmsg: INFO: TO FIX: should print message for MM_INFO
142 GLIBC:tst-fmtmsg: TO FIX: should print message for MM_NOSEV
143 GLIBC:tst-fmtmsg: TEST: TO FIX: should print message for MM_TEST
145 TO FIX: should print message for MM_HALT
147 TO FIX: should print message for MM_ERROR
149 TO FIX: should print message for MM_WARNING
151 TO FIX: should print message for MM_INFO
153 TO FIX: should print message for MM_NOSEV
155 TO FIX: should print message for MM_TEST
156 GLIBC:tst-fmtmsg: halt
157 TO FIX: should print message for MM_HALT
158 GLIBC:tst-fmtmsg: halt
159 TO FIX: should print message for MM_ERROR
160 GLIBC:tst-fmtmsg: halt
161 TO FIX: should print message for MM_WARNING
162 GLIBC:tst-fmtmsg: halt
163 TO FIX: should print message for MM_INFO
164 GLIBC:tst-fmtmsg: halt
165 TO FIX: should print message for MM_NOSEV
166 GLIBC:tst-fmtmsg: halt
167 TO FIX: should print message for MM_TEST
169 TO FIX: should print message for MM_HALT
171 TO FIX: should print message for MM_ERROR
173 TO FIX: should print message for MM_WARNING
175 TO FIX: should print message for MM_INFO
177 TO FIX: should print message for MM_NOSEV
179 TO FIX: should print message for MM_TEST
180 GLIBC:tst-fmtmsg: HALT: halt
181 TO FIX: should print message for MM_HALT
182 GLIBC:tst-fmtmsg: ERROR: halt
183 TO FIX: should print message for MM_ERROR
184 GLIBC:tst-fmtmsg: WARNING: halt
185 TO FIX: should print message for MM_WARNING
186 GLIBC:tst-fmtmsg: INFO: halt
187 TO FIX: should print message for MM_INFO
188 GLIBC:tst-fmtmsg: halt
189 TO FIX: should print message for MM_NOSEV
190 GLIBC:tst-fmtmsg: TEST: halt
191 TO FIX: should print message for MM_TEST
198 GLIBC:tst-fmtmsg: GLIBC:tst-fmtmsg:1
199 GLIBC:tst-fmtmsg: GLIBC:tst-fmtmsg:2
200 GLIBC:tst-fmtmsg: GLIBC:tst-fmtmsg:3
201 GLIBC:tst-fmtmsg: GLIBC:tst-fmtmsg:4
202 GLIBC:tst-fmtmsg: GLIBC:tst-fmtmsg:5
203 GLIBC:tst-fmtmsg: GLIBC:tst-fmtmsg:6
204 HALT: GLIBC:tst-fmtmsg:1
205 ERROR: GLIBC:tst-fmtmsg:2
206 WARNING: GLIBC:tst-fmtmsg:3
207 INFO: GLIBC:tst-fmtmsg:4
209 TEST: GLIBC:tst-fmtmsg:6
210 GLIBC:tst-fmtmsg: HALT: GLIBC:tst-fmtmsg:1
211 GLIBC:tst-fmtmsg: ERROR: GLIBC:tst-fmtmsg:2
212 GLIBC:tst-fmtmsg: WARNING: GLIBC:tst-fmtmsg:3
213 GLIBC:tst-fmtmsg: INFO: GLIBC:tst-fmtmsg:4
214 GLIBC:tst-fmtmsg: GLIBC:tst-fmtmsg:5
215 GLIBC:tst-fmtmsg: TEST: GLIBC:tst-fmtmsg:6
228 GLIBC:tst-fmtmsg: halt
230 GLIBC:tst-fmtmsg: halt
232 GLIBC:tst-fmtmsg: halt
234 GLIBC:tst-fmtmsg: halt
236 GLIBC:tst-fmtmsg: halt
238 GLIBC:tst-fmtmsg: halt
252 GLIBC:tst-fmtmsg: HALT: halt
254 GLIBC:tst-fmtmsg: ERROR: halt
256 GLIBC:tst-fmtmsg: WARNING: halt
258 GLIBC:tst-fmtmsg: INFO: halt
260 GLIBC:tst-fmtmsg: halt
262 GLIBC:tst-fmtmsg: TEST: halt
264 TO FIX: should print message for MM_HALT GLIBC:tst-fmtmsg:1
265 TO FIX: should print message for MM_ERROR GLIBC:tst-fmtmsg:2
266 TO FIX: should print message for MM_WARNING GLIBC:tst-fmtmsg:3
267 TO FIX: should print message for MM_INFO GLIBC:tst-fmtmsg:4
268 TO FIX: should print message for MM_NOSEV GLIBC:tst-fmtmsg:5
269 TO FIX: should print message for MM_TEST GLIBC:tst-fmtmsg:6
270 GLIBC:tst-fmtmsg: TO FIX: should print message for MM_HALT GLIBC:tst-fmtmsg:1
271 GLIBC:tst-fmtmsg: TO FIX: should print message for MM_ERROR GLIBC:tst-fmtmsg:2
272 GLIBC:tst-fmtmsg: TO FIX: should print message for MM_WARNING GLIBC:tst-fmtmsg:3
273 GLIBC:tst-fmtmsg: TO FIX: should print message for MM_INFO GLIBC:tst-fmtmsg:4
274 GLIBC:tst-fmtmsg: TO FIX: should print message for MM_NOSEV GLIBC:tst-fmtmsg:5
275 GLIBC:tst-fmtmsg: TO FIX: should print message for MM_TEST GLIBC:tst-fmtmsg:6
276 HALT: TO FIX: should print message for MM_HALT GLIBC:tst-fmtmsg:1
277 ERROR: TO FIX: should print message for MM_ERROR GLIBC:tst-fmtmsg:2
278 WARNING: TO FIX: should print message for MM_WARNING GLIBC:tst-fmtmsg:3
279 INFO: TO FIX: should print message for MM_INFO GLIBC:tst-fmtmsg:4
280 TO FIX: should print message for MM_NOSEV GLIBC:tst-fmtmsg:5
281 TEST: TO FIX: should print message for MM_TEST GLIBC:tst-fmtmsg:6
282 GLIBC:tst-fmtmsg: HALT: TO FIX: should print message for MM_HALT GLIBC:tst-fmtmsg:1
283 GLIBC:tst-fmtmsg: ERROR: TO FIX: should print message for MM_ERROR GLIBC:tst-fmtmsg:2
284 GLIBC:tst-fmtmsg: WARNING: TO FIX: should print message for MM_WARNING GLIBC:tst-fmtmsg:3
285 GLIBC:tst-fmtmsg: INFO: TO FIX: should print message for MM_INFO GLIBC:tst-fmtmsg:4
286 GLIBC:tst-fmtmsg: TO FIX: should print message for MM_NOSEV GLIBC:tst-fmtmsg:5
287 GLIBC:tst-fmtmsg: TEST: TO FIX: should print message for MM_TEST GLIBC:tst-fmtmsg:6
289 TO FIX: should print message for MM_HALT GLIBC:tst-fmtmsg:1
291 TO FIX: should print message for MM_ERROR GLIBC:tst-fmtmsg:2
293 TO FIX: should print message for MM_WARNING GLIBC:tst-fmtmsg:3
295 TO FIX: should print message for MM_INFO GLIBC:tst-fmtmsg:4
297 TO FIX: should print message for MM_NOSEV GLIBC:tst-fmtmsg:5
299 TO FIX: should print message for MM_TEST GLIBC:tst-fmtmsg:6
300 GLIBC:tst-fmtmsg: halt
301 TO FIX: should print message for MM_HALT GLIBC:tst-fmtmsg:1
302 GLIBC:tst-fmtmsg: halt
303 TO FIX: should print message for MM_ERROR GLIBC:tst-fmtmsg:2
304 GLIBC:tst-fmtmsg: halt
305 TO FIX: should print message for MM_WARNING GLIBC:tst-fmtmsg:3
306 GLIBC:tst-fmtmsg: halt
307 TO FIX: should print message for MM_INFO GLIBC:tst-fmtmsg:4
308 GLIBC:tst-fmtmsg: halt
309 TO FIX: should print message for MM_NOSEV GLIBC:tst-fmtmsg:5
310 GLIBC:tst-fmtmsg: halt
311 TO FIX: should print message for MM_TEST GLIBC:tst-fmtmsg:6
313 TO FIX: should print message for MM_HALT GLIBC:tst-fmtmsg:1
315 TO FIX: should print message for MM_ERROR GLIBC:tst-fmtmsg:2
317 TO FIX: should print message for MM_WARNING GLIBC:tst-fmtmsg:3
319 TO FIX: should print message for MM_INFO GLIBC:tst-fmtmsg:4
321 TO FIX: should print message for MM_NOSEV GLIBC:tst-fmtmsg:5
323 TO FIX: should print message for MM_TEST GLIBC:tst-fmtmsg:6
324 GLIBC:tst-fmtmsg: HALT: halt
325 TO FIX: should print message for MM_HALT GLIBC:tst-fmtmsg:1
326 GLIBC:tst-fmtmsg: ERROR: halt
327 TO FIX: should print message for MM_ERROR GLIBC:tst-fmtmsg:2
328 GLIBC:tst-fmtmsg: WARNING: halt
329 TO FIX: should print message for MM_WARNING GLIBC:tst-fmtmsg:3
330 GLIBC:tst-fmtmsg: INFO: halt
331 TO FIX: should print message for MM_INFO GLIBC:tst-fmtmsg:4
332 GLIBC:tst-fmtmsg: halt
333 TO FIX: should print message for MM_NOSEV GLIBC:tst-fmtmsg:5
334 GLIBC:tst-fmtmsg: TEST: halt
335 TO FIX: should print message for MM_TEST GLIBC:tst-fmtmsg:6