Sort sysdeps/powerpc/fpu/libm-test-ulps
[glibc.git] / stdlib / tst-fmtmsg.sh
blobabde254e06249547dd4f7c5cce1b6cd68385f74b
1 #! /bin/sh
2 # Test of fmtmsg function family.
3 # Copyright (C) 2000, 2001 Free Software Foundation, Inc.
4 # This file is part of the GNU C Library.
7 # The GNU C Library is free software; you can redistribute it and/or
8 # modify it under the terms of the GNU Lesser General Public
9 # License as published by the Free Software Foundation; either
10 # version 2.1 of the License, or (at your option) any later version.
12 # The GNU C Library is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 # Lesser General Public License for more details.
17 # You should have received a copy of the GNU Lesser General Public
18 # License along with the GNU C Library; if not, see
19 # <http://www.gnu.org/licenses/>.
21 common_objpfx=$1
22 run_program_prefix=$2
23 objpfx=$3
25 test="${run_program_prefix} ${objpfx}tst-fmtmsg"
26 out=${objpfx}tst-fmtmsg.out
28 LC_ALL=C
29 export LC_ALL
31 (MSGVERB= $test || exit 1;
32 MSGVERB=label $test || exit 1;
33 MSGVERB=severity $test || exit 1;
34 MSGVERB=severity:label $test || exit 1;
35 MSGVERB=text $test || exit 1;
36 MSGVERB=text:label $test || exit 1;
37 MSGVERB=text:severity $test || exit 1;
38 MSGVERB=text:severity:label $test || exit 1;
39 MSGVERB=action $test || exit 1;
40 MSGVERB=action:label $test || exit 1;
41 MSGVERB=action:severity $test || exit 1;
42 MSGVERB=action:severity:label $test || exit 1;
43 MSGVERB=action:text $test || exit 1;
44 MSGVERB=action:text:label $test || exit 1;
45 MSGVERB=action:text:severity $test || exit 1;
46 MSGVERB=action:text:severity:label $test || exit 1;
47 MSGVERB=tag $test || exit 1;
48 MSGVERB=tag:label $test || exit 1;
49 MSGVERB=tag:severity $test || exit 1;
50 MSGVERB=tag:severity:label $test || exit 1;
51 MSGVERB=tag:text $test || exit 1;
52 MSGVERB=tag:text:label $test || exit 1;
53 MSGVERB=tag:text:severity $test || exit 1;
54 MSGVERB=tag:text:severity:label $test || exit 1;
55 MSGVERB=tag:action $test || exit 1;
56 MSGVERB=tag:action:label $test || exit 1;
57 MSGVERB=tag:action:severity $test || exit 1;
58 MSGVERB=tag:action:severity:label $test || exit 1;
59 MSGVERB=tag:action:text $test || exit 1;
60 MSGVERB=tag:action:text:label $test || exit 1;
61 MSGVERB=tag:action:text:severity $test || exit 1;
62 MSGVERB=tag:action:text:severity:label $test || exit 1;) 2> $out
64 cmp $out <<EOF
65 GLIBC:tst-fmtmsg: HALT: halt
66 TO FIX: should print message for MM_HALT GLIBC:tst-fmtmsg:1
67 GLIBC:tst-fmtmsg: ERROR: halt
68 TO FIX: should print message for MM_ERROR GLIBC:tst-fmtmsg:2
69 GLIBC:tst-fmtmsg: WARNING: halt
70 TO FIX: should print message for MM_WARNING GLIBC:tst-fmtmsg:3
71 GLIBC:tst-fmtmsg: INFO: halt
72 TO FIX: should print message for MM_INFO GLIBC:tst-fmtmsg:4
73 GLIBC:tst-fmtmsg: halt
74 TO FIX: should print message for MM_NOSEV GLIBC:tst-fmtmsg:5
75 GLIBC:tst-fmtmsg: TEST: halt
76 TO FIX: should print message for MM_TEST GLIBC:tst-fmtmsg:6
77 GLIBC:tst-fmtmsg
78 GLIBC:tst-fmtmsg
79 GLIBC:tst-fmtmsg
80 GLIBC:tst-fmtmsg
81 GLIBC:tst-fmtmsg
82 GLIBC:tst-fmtmsg
83 HALT
84 ERROR
85 WARNING
86 INFO
88 TEST
89 GLIBC:tst-fmtmsg: HALT
90 GLIBC:tst-fmtmsg: ERROR
91 GLIBC:tst-fmtmsg: WARNING
92 GLIBC:tst-fmtmsg: INFO
93 GLIBC:tst-fmtmsg
94 GLIBC:tst-fmtmsg: TEST
95 halt
96 halt
97 halt
98 halt
99 halt
100 halt
101 GLIBC:tst-fmtmsg: halt
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 HALT: halt
108 ERROR: halt
109 WARNING: halt
110 INFO: halt
111 halt
112 TEST: halt
113 GLIBC:tst-fmtmsg: HALT: halt
114 GLIBC:tst-fmtmsg: ERROR: halt
115 GLIBC:tst-fmtmsg: WARNING: halt
116 GLIBC:tst-fmtmsg: INFO: halt
117 GLIBC:tst-fmtmsg: halt
118 GLIBC:tst-fmtmsg: TEST: halt
119 TO FIX: should print message for MM_HALT
120 TO FIX: should print message for MM_ERROR
121 TO FIX: should print message for MM_WARNING
122 TO FIX: should print message for MM_INFO
123 TO FIX: should print message for MM_NOSEV
124 TO FIX: should print message for MM_TEST
125 GLIBC:tst-fmtmsg: TO FIX: should print message for MM_HALT
126 GLIBC:tst-fmtmsg: TO FIX: should print message for MM_ERROR
127 GLIBC:tst-fmtmsg: TO FIX: should print message for MM_WARNING
128 GLIBC:tst-fmtmsg: TO FIX: should print message for MM_INFO
129 GLIBC:tst-fmtmsg: TO FIX: should print message for MM_NOSEV
130 GLIBC:tst-fmtmsg: TO FIX: should print message for MM_TEST
131 HALT: TO FIX: should print message for MM_HALT
132 ERROR: TO FIX: should print message for MM_ERROR
133 WARNING: TO FIX: should print message for MM_WARNING
134 INFO: TO FIX: should print message for MM_INFO
135 TO FIX: should print message for MM_NOSEV
136 TEST: TO FIX: should print message for MM_TEST
137 GLIBC:tst-fmtmsg: HALT: TO FIX: should print message for MM_HALT
138 GLIBC:tst-fmtmsg: ERROR: TO FIX: should print message for MM_ERROR
139 GLIBC:tst-fmtmsg: WARNING: TO FIX: should print message for MM_WARNING
140 GLIBC:tst-fmtmsg: INFO: TO FIX: should print message for MM_INFO
141 GLIBC:tst-fmtmsg: TO FIX: should print message for MM_NOSEV
142 GLIBC:tst-fmtmsg: TEST: TO FIX: should print message for MM_TEST
143 halt
144 TO FIX: should print message for MM_HALT
145 halt
146 TO FIX: should print message for MM_ERROR
147 halt
148 TO FIX: should print message for MM_WARNING
149 halt
150 TO FIX: should print message for MM_INFO
151 halt
152 TO FIX: should print message for MM_NOSEV
153 halt
154 TO FIX: should print message for MM_TEST
155 GLIBC:tst-fmtmsg: halt
156 TO FIX: should print message for MM_HALT
157 GLIBC:tst-fmtmsg: halt
158 TO FIX: should print message for MM_ERROR
159 GLIBC:tst-fmtmsg: halt
160 TO FIX: should print message for MM_WARNING
161 GLIBC:tst-fmtmsg: halt
162 TO FIX: should print message for MM_INFO
163 GLIBC:tst-fmtmsg: halt
164 TO FIX: should print message for MM_NOSEV
165 GLIBC:tst-fmtmsg: halt
166 TO FIX: should print message for MM_TEST
167 HALT: halt
168 TO FIX: should print message for MM_HALT
169 ERROR: halt
170 TO FIX: should print message for MM_ERROR
171 WARNING: halt
172 TO FIX: should print message for MM_WARNING
173 INFO: halt
174 TO FIX: should print message for MM_INFO
175 halt
176 TO FIX: should print message for MM_NOSEV
177 TEST: halt
178 TO FIX: should print message for MM_TEST
179 GLIBC:tst-fmtmsg: HALT: halt
180 TO FIX: should print message for MM_HALT
181 GLIBC:tst-fmtmsg: ERROR: halt
182 TO FIX: should print message for MM_ERROR
183 GLIBC:tst-fmtmsg: WARNING: halt
184 TO FIX: should print message for MM_WARNING
185 GLIBC:tst-fmtmsg: INFO: halt
186 TO FIX: should print message for MM_INFO
187 GLIBC:tst-fmtmsg: halt
188 TO FIX: should print message for MM_NOSEV
189 GLIBC:tst-fmtmsg: TEST: halt
190 TO FIX: should print message for MM_TEST
191 GLIBC:tst-fmtmsg:1
192 GLIBC:tst-fmtmsg:2
193 GLIBC:tst-fmtmsg:3
194 GLIBC:tst-fmtmsg:4
195 GLIBC:tst-fmtmsg:5
196 GLIBC:tst-fmtmsg:6
197 GLIBC:tst-fmtmsg: GLIBC:tst-fmtmsg:1
198 GLIBC:tst-fmtmsg: GLIBC:tst-fmtmsg:2
199 GLIBC:tst-fmtmsg: GLIBC:tst-fmtmsg:3
200 GLIBC:tst-fmtmsg: GLIBC:tst-fmtmsg:4
201 GLIBC:tst-fmtmsg: GLIBC:tst-fmtmsg:5
202 GLIBC:tst-fmtmsg: GLIBC:tst-fmtmsg:6
203 HALT: GLIBC:tst-fmtmsg:1
204 ERROR: GLIBC:tst-fmtmsg:2
205 WARNING: GLIBC:tst-fmtmsg:3
206 INFO: GLIBC:tst-fmtmsg:4
207 GLIBC:tst-fmtmsg:5
208 TEST: GLIBC:tst-fmtmsg:6
209 GLIBC:tst-fmtmsg: HALT: GLIBC:tst-fmtmsg:1
210 GLIBC:tst-fmtmsg: ERROR: GLIBC:tst-fmtmsg:2
211 GLIBC:tst-fmtmsg: WARNING: GLIBC:tst-fmtmsg:3
212 GLIBC:tst-fmtmsg: INFO: GLIBC:tst-fmtmsg:4
213 GLIBC:tst-fmtmsg: GLIBC:tst-fmtmsg:5
214 GLIBC:tst-fmtmsg: TEST: GLIBC:tst-fmtmsg:6
215 halt
216 GLIBC:tst-fmtmsg:1
217 halt
218 GLIBC:tst-fmtmsg:2
219 halt
220 GLIBC:tst-fmtmsg:3
221 halt
222 GLIBC:tst-fmtmsg:4
223 halt
224 GLIBC:tst-fmtmsg:5
225 halt
226 GLIBC:tst-fmtmsg:6
227 GLIBC:tst-fmtmsg: halt
228 GLIBC:tst-fmtmsg:1
229 GLIBC:tst-fmtmsg: halt
230 GLIBC:tst-fmtmsg:2
231 GLIBC:tst-fmtmsg: halt
232 GLIBC:tst-fmtmsg:3
233 GLIBC:tst-fmtmsg: halt
234 GLIBC:tst-fmtmsg:4
235 GLIBC:tst-fmtmsg: halt
236 GLIBC:tst-fmtmsg:5
237 GLIBC:tst-fmtmsg: halt
238 GLIBC:tst-fmtmsg:6
239 HALT: halt
240 GLIBC:tst-fmtmsg:1
241 ERROR: halt
242 GLIBC:tst-fmtmsg:2
243 WARNING: halt
244 GLIBC:tst-fmtmsg:3
245 INFO: halt
246 GLIBC:tst-fmtmsg:4
247 halt
248 GLIBC:tst-fmtmsg:5
249 TEST: halt
250 GLIBC:tst-fmtmsg:6
251 GLIBC:tst-fmtmsg: HALT: halt
252 GLIBC:tst-fmtmsg:1
253 GLIBC:tst-fmtmsg: ERROR: halt
254 GLIBC:tst-fmtmsg:2
255 GLIBC:tst-fmtmsg: WARNING: halt
256 GLIBC:tst-fmtmsg:3
257 GLIBC:tst-fmtmsg: INFO: halt
258 GLIBC:tst-fmtmsg:4
259 GLIBC:tst-fmtmsg: halt
260 GLIBC:tst-fmtmsg:5
261 GLIBC:tst-fmtmsg: TEST: halt
262 GLIBC:tst-fmtmsg:6
263 TO FIX: should print message for MM_HALT GLIBC:tst-fmtmsg:1
264 TO FIX: should print message for MM_ERROR GLIBC:tst-fmtmsg:2
265 TO FIX: should print message for MM_WARNING GLIBC:tst-fmtmsg:3
266 TO FIX: should print message for MM_INFO GLIBC:tst-fmtmsg:4
267 TO FIX: should print message for MM_NOSEV GLIBC:tst-fmtmsg:5
268 TO FIX: should print message for MM_TEST GLIBC:tst-fmtmsg:6
269 GLIBC:tst-fmtmsg: TO FIX: should print message for MM_HALT GLIBC:tst-fmtmsg:1
270 GLIBC:tst-fmtmsg: TO FIX: should print message for MM_ERROR GLIBC:tst-fmtmsg:2
271 GLIBC:tst-fmtmsg: TO FIX: should print message for MM_WARNING GLIBC:tst-fmtmsg:3
272 GLIBC:tst-fmtmsg: TO FIX: should print message for MM_INFO GLIBC:tst-fmtmsg:4
273 GLIBC:tst-fmtmsg: TO FIX: should print message for MM_NOSEV GLIBC:tst-fmtmsg:5
274 GLIBC:tst-fmtmsg: TO FIX: should print message for MM_TEST GLIBC:tst-fmtmsg:6
275 HALT: TO FIX: should print message for MM_HALT GLIBC:tst-fmtmsg:1
276 ERROR: TO FIX: should print message for MM_ERROR GLIBC:tst-fmtmsg:2
277 WARNING: TO FIX: should print message for MM_WARNING GLIBC:tst-fmtmsg:3
278 INFO: TO FIX: should print message for MM_INFO GLIBC:tst-fmtmsg:4
279 TO FIX: should print message for MM_NOSEV GLIBC:tst-fmtmsg:5
280 TEST: TO FIX: should print message for MM_TEST GLIBC:tst-fmtmsg:6
281 GLIBC:tst-fmtmsg: HALT: TO FIX: should print message for MM_HALT GLIBC:tst-fmtmsg:1
282 GLIBC:tst-fmtmsg: ERROR: TO FIX: should print message for MM_ERROR GLIBC:tst-fmtmsg:2
283 GLIBC:tst-fmtmsg: WARNING: TO FIX: should print message for MM_WARNING GLIBC:tst-fmtmsg:3
284 GLIBC:tst-fmtmsg: INFO: TO FIX: should print message for MM_INFO GLIBC:tst-fmtmsg:4
285 GLIBC:tst-fmtmsg: TO FIX: should print message for MM_NOSEV GLIBC:tst-fmtmsg:5
286 GLIBC:tst-fmtmsg: TEST: TO FIX: should print message for MM_TEST GLIBC:tst-fmtmsg:6
287 halt
288 TO FIX: should print message for MM_HALT GLIBC:tst-fmtmsg:1
289 halt
290 TO FIX: should print message for MM_ERROR GLIBC:tst-fmtmsg:2
291 halt
292 TO FIX: should print message for MM_WARNING GLIBC:tst-fmtmsg:3
293 halt
294 TO FIX: should print message for MM_INFO GLIBC:tst-fmtmsg:4
295 halt
296 TO FIX: should print message for MM_NOSEV GLIBC:tst-fmtmsg:5
297 halt
298 TO FIX: should print message for MM_TEST GLIBC:tst-fmtmsg:6
299 GLIBC:tst-fmtmsg: halt
300 TO FIX: should print message for MM_HALT GLIBC:tst-fmtmsg:1
301 GLIBC:tst-fmtmsg: halt
302 TO FIX: should print message for MM_ERROR GLIBC:tst-fmtmsg:2
303 GLIBC:tst-fmtmsg: halt
304 TO FIX: should print message for MM_WARNING GLIBC:tst-fmtmsg:3
305 GLIBC:tst-fmtmsg: halt
306 TO FIX: should print message for MM_INFO GLIBC:tst-fmtmsg:4
307 GLIBC:tst-fmtmsg: halt
308 TO FIX: should print message for MM_NOSEV GLIBC:tst-fmtmsg:5
309 GLIBC:tst-fmtmsg: halt
310 TO FIX: should print message for MM_TEST GLIBC:tst-fmtmsg:6
311 HALT: halt
312 TO FIX: should print message for MM_HALT GLIBC:tst-fmtmsg:1
313 ERROR: halt
314 TO FIX: should print message for MM_ERROR GLIBC:tst-fmtmsg:2
315 WARNING: halt
316 TO FIX: should print message for MM_WARNING GLIBC:tst-fmtmsg:3
317 INFO: halt
318 TO FIX: should print message for MM_INFO GLIBC:tst-fmtmsg:4
319 halt
320 TO FIX: should print message for MM_NOSEV GLIBC:tst-fmtmsg:5
321 TEST: halt
322 TO FIX: should print message for MM_TEST GLIBC:tst-fmtmsg:6
323 GLIBC:tst-fmtmsg: HALT: halt
324 TO FIX: should print message for MM_HALT GLIBC:tst-fmtmsg:1
325 GLIBC:tst-fmtmsg: ERROR: halt
326 TO FIX: should print message for MM_ERROR GLIBC:tst-fmtmsg:2
327 GLIBC:tst-fmtmsg: WARNING: halt
328 TO FIX: should print message for MM_WARNING GLIBC:tst-fmtmsg:3
329 GLIBC:tst-fmtmsg: INFO: halt
330 TO FIX: should print message for MM_INFO GLIBC:tst-fmtmsg:4
331 GLIBC:tst-fmtmsg: halt
332 TO FIX: should print message for MM_NOSEV GLIBC:tst-fmtmsg:5
333 GLIBC:tst-fmtmsg: TEST: halt
334 TO FIX: should print message for MM_TEST GLIBC:tst-fmtmsg:6
336 exit $?