blob: 443cc10ef3b598ad2bc5b5db237f8eba4ad739a5 [file] [log] [blame]
Daniel Dunbar38d37982013-01-31 22:15:20 +00001# Check the internal shell handling component of the ShTest format.
2#
3# RUN: not %{lit} -j 1 -v %{inputs}/shtest-shell > %t.out
Reid Kleckner125c74b2017-07-28 16:24:18 +00004# FIXME: Temporarily dump test output so we can debug failing tests on
5# buildbots.
6# RUN: cat %t.out
Joel E. Denny57046e82019-10-12 18:51:51 +00007# RUN: FileCheck --input-file %t.out %s
Daniel Dunbar38d37982013-01-31 22:15:20 +00008#
9# END.
10
11# CHECK: -- Testing:
12
Reid Kleckner82528922018-03-26 18:05:12 +000013# CHECK: FAIL: shtest-shell :: cat-error-0.txt
14# CHECK: *** TEST 'shtest-shell :: cat-error-0.txt' FAILED ***
15# CHECK: $ "cat" "-b" "temp1.txt"
16# CHECK: # command stderr:
17# CHECK: Unsupported: 'cat': option -b not recognized
18# CHECK: error: command failed with exit status: 1
19# CHECK: ***
20
21# CHECK: FAIL: shtest-shell :: cat-error-1.txt
22# CHECK: *** TEST 'shtest-shell :: cat-error-1.txt' FAILED ***
23# CHECK: $ "cat" "temp1.txt"
24# CHECK: # command stderr:
25# CHECK: [Errno 2] No such file or directory: 'temp1.txt'
26# CHECK: error: command failed with exit status: 1
27# CHECK: ***
Ying Yicfb08e92017-12-01 09:54:27 +000028
Joel E. Denny31b37392018-05-31 00:55:32 +000029# CHECK: FAIL: shtest-shell :: colon-error.txt
30# CHECK: *** TEST 'shtest-shell :: colon-error.txt' FAILED ***
31# CHECK: $ ":"
32# CHECK: # command stderr:
33# CHECK: Unsupported: ':' cannot be part of a pipeline
34# CHECK: error: command failed with exit status: 127
35# CHECK: ***
36
Joel E. Dennyf095b8c2019-10-16 17:21:24 +000037
38# CHECK: FAIL: shtest-shell :: diff-encodings.txt
39# CHECK: *** TEST 'shtest-shell :: diff-encodings.txt' FAILED ***
40
41# CHECK: $ "diff" "-u" "diff-in.bin" "diff-in.bin"
42# CHECK-NOT: error
43
44# CHECK: $ "diff" "-u" "diff-in.utf16" "diff-in.bin"
45# CHECK: # command output:
46# CHECK-NEXT: ---
47# CHECK-NEXT: +++
48# CHECK-NEXT: @@
49# CHECK-NEXT: {{^ .f.o.o.$}}
50# CHECK-NEXT: {{^-.b.a.r.$}}
51# CHECK-NEXT: {{^\+.b.a.r..}}
52# CHECK-NEXT: {{^ .b.a.z.$}}
53# CHECK: error: command failed with exit status: 1
54# CHECK: $ "true"
55
56# CHECK: $ "diff" "-u" "diff-in.utf8" "diff-in.bin"
57# CHECK: # command output:
58# CHECK-NEXT: ---
59# CHECK-NEXT: +++
60# CHECK-NEXT: @@
61# CHECK-NEXT: -foo
62# CHECK-NEXT: -bar
63# CHECK-NEXT: -baz
64# CHECK-NEXT: {{^\+.f.o.o.$}}
65# CHECK-NEXT: {{^\+.b.a.r..}}
66# CHECK-NEXT: {{^\+.b.a.z.$}}
67# CHECK: error: command failed with exit status: 1
68# CHECK: $ "true"
69
70# CHECK: $ "diff" "-u" "diff-in.bin" "diff-in.utf8"
71# CHECK: # command output:
72# CHECK-NEXT: ---
73# CHECK-NEXT: +++
74# CHECK-NEXT: @@
75# CHECK-NEXT: {{^\-.f.o.o.$}}
76# CHECK-NEXT: {{^\-.b.a.r..}}
77# CHECK-NEXT: {{^\-.b.a.z.$}}
78# CHECK-NEXT: +foo
79# CHECK-NEXT: +bar
80# CHECK-NEXT: +baz
81# CHECK: error: command failed with exit status: 1
82# CHECK: $ "true"
83
Joel E. Denny7c1d5362019-10-17 14:03:06 +000084# CHECK: $ "cat" "diff-in.bin"
85# CHECK-NOT: error
86# CHECK: $ "diff" "-u" "-" "diff-in.bin"
87# CHECK-NOT: error
88
89# CHECK: $ "cat" "diff-in.bin"
90# CHECK-NOT: error
91# CHECK: $ "diff" "-u" "diff-in.bin" "-"
92# CHECK-NOT: error
93
94# CHECK: $ "cat" "diff-in.bin"
95# CHECK-NOT: error
96# CHECK: $ "diff" "-u" "diff-in.utf16" "-"
97# CHECK: # command output:
98# CHECK-NEXT: ---
99# CHECK-NEXT: +++
100# CHECK-NEXT: @@
101# CHECK-NEXT: {{^ .f.o.o.$}}
102# CHECK-NEXT: {{^-.b.a.r.$}}
103# CHECK-NEXT: {{^\+.b.a.r..}}
104# CHECK-NEXT: {{^ .b.a.z.$}}
105# CHECK: error: command failed with exit status: 1
106# CHECK: $ "true"
107
108# CHECK: $ "cat" "diff-in.bin"
109# CHECK-NOT: error
110# CHECK: $ "diff" "-u" "diff-in.utf8" "-"
111# CHECK: # command output:
112# CHECK-NEXT: ---
113# CHECK-NEXT: +++
114# CHECK-NEXT: @@
115# CHECK-NEXT: -foo
116# CHECK-NEXT: -bar
117# CHECK-NEXT: -baz
118# CHECK-NEXT: {{^\+.f.o.o.$}}
119# CHECK-NEXT: {{^\+.b.a.r..}}
120# CHECK-NEXT: {{^\+.b.a.z.$}}
121# CHECK: error: command failed with exit status: 1
122# CHECK: $ "true"
123
124# CHECK: $ "diff" "-u" "-" "diff-in.utf8"
125# CHECK: # command output:
126# CHECK-NEXT: ---
127# CHECK-NEXT: +++
128# CHECK-NEXT: @@
129# CHECK-NEXT: {{^\-.f.o.o.$}}
130# CHECK-NEXT: {{^\-.b.a.r..}}
131# CHECK-NEXT: {{^\-.b.a.z.$}}
132# CHECK-NEXT: +foo
133# CHECK-NEXT: +bar
134# CHECK-NEXT: +baz
135# CHECK: error: command failed with exit status: 1
136# CHECK: $ "true"
137
Joel E. Dennyf095b8c2019-10-16 17:21:24 +0000138# CHECK: $ "false"
139
140# CHECK: ***
141
142
Ying Yicfb08e92017-12-01 09:54:27 +0000143# CHECK: FAIL: shtest-shell :: diff-error-1.txt
144# CHECK: *** TEST 'shtest-shell :: diff-error-1.txt' FAILED ***
145# CHECK: $ "diff" "-B" "temp1.txt" "temp2.txt"
146# CHECK: # command stderr:
147# CHECK: Unsupported: 'diff': option -B not recognized
Joel E. Dennyb1638062019-10-17 14:02:42 +0000148# CHECK: error: command failed with exit status: 1
Ying Yicfb08e92017-12-01 09:54:27 +0000149# CHECK: ***
150
151# CHECK: FAIL: shtest-shell :: diff-error-2.txt
152# CHECK: *** TEST 'shtest-shell :: diff-error-2.txt' FAILED ***
153# CHECK: $ "diff" "temp.txt"
154# CHECK: # command stderr:
Joel E. Dennyb1638062019-10-17 14:02:42 +0000155# CHECK: Error: missing or extra operand
156# CHECK: error: command failed with exit status: 1
Ying Yicfb08e92017-12-01 09:54:27 +0000157# CHECK: ***
158
159# CHECK: FAIL: shtest-shell :: diff-error-3.txt
160# CHECK: *** TEST 'shtest-shell :: diff-error-3.txt' FAILED ***
161# CHECK: $ "diff" "temp.txt" "temp1.txt"
162# CHECK: # command stderr:
163# CHECK: Error: 'diff' command failed
164# CHECK: error: command failed with exit status: 1
165# CHECK: ***
166
167# CHECK: FAIL: shtest-shell :: diff-error-4.txt
168# CHECK: *** TEST 'shtest-shell :: diff-error-4.txt' FAILED ***
169# CHECK: Exit Code: 1
170# CHECK: # command output:
171# CHECK: diff-error-4.txt.tmp
172# CHECK: diff-error-4.txt.tmp1
173# CHECK: *** 1 ****
174# CHECK: ! hello-first
175# CHECK: --- 1 ----
176# CHECK: ! hello-second
177# CHECK: ***
178
179# CHECK: FAIL: shtest-shell :: diff-error-5.txt
180# CHECK: *** TEST 'shtest-shell :: diff-error-5.txt' FAILED ***
181# CHECK: $ "diff"
182# CHECK: # command stderr:
Joel E. Dennyb1638062019-10-17 14:02:42 +0000183# CHECK: Error: missing or extra operand
184# CHECK: error: command failed with exit status: 1
Ying Yicfb08e92017-12-01 09:54:27 +0000185# CHECK: ***
186
187# CHECK: FAIL: shtest-shell :: diff-error-6.txt
188# CHECK: *** TEST 'shtest-shell :: diff-error-6.txt' FAILED ***
189# CHECK: $ "diff"
190# CHECK: # command stderr:
Joel E. Dennyb1638062019-10-17 14:02:42 +0000191# CHECK: Error: missing or extra operand
192# CHECK: error: command failed with exit status: 1
Ying Yicfb08e92017-12-01 09:54:27 +0000193# CHECK: ***
194
Joel E. Dennyb1638062019-10-17 14:02:42 +0000195
196# CHECK: FAIL: shtest-shell :: diff-pipes.txt
197
198# CHECK: *** TEST 'shtest-shell :: diff-pipes.txt' FAILED ***
199
200# CHECK: $ "diff" "{{[^"]*}}.foo" "{{[^"]*}}.foo"
201# CHECK-NOT: note
202# CHECK-NOT: error
203# CHECK: $ "FileCheck"
204# CHECK-NOT: note
205# CHECK-NOT: error
206
207# CHECK: $ "diff" "-u" "{{[^"]*}}.foo" "{{[^"]*}}.bar"
208# CHECK: note: command had no output on stdout or stderr
209# CHECK: error: command failed with exit status: 1
210# CHECK: $ "FileCheck"
211# CHECK-NOT: note
212# CHECK-NOT: error
213# CHECK: $ "true"
214
Joel E. Denny7c1d5362019-10-17 14:03:06 +0000215# CHECK: $ "cat" "{{[^"]*}}.foo"
216# CHECK: $ "diff" "-u" "-" "{{[^"]*}}.foo"
217# CHECK-NOT: note
218# CHECK-NOT: error
219
220# CHECK: $ "cat" "{{[^"]*}}.foo"
221# CHECK: $ "diff" "-u" "{{[^"]*}}.foo" "-"
222# CHECK-NOT: note
223# CHECK-NOT: error
224
225# CHECK: $ "cat" "{{[^"]*}}.bar"
226# CHECK: $ "diff" "-u" "{{[^"]*}}.foo" "-"
227# CHECK: # command output:
228# CHECK: @@
229# CHECK-NEXT: -foo
230# CHECK-NEXT: +bar
231# CHECK: error: command failed with exit status: 1
232# CHECK: $ "true"
233
234# CHECK: $ "cat" "{{[^"]*}}.bar"
235# CHECK: $ "diff" "-u" "-" "{{[^"]*}}.foo"
236# CHECK: # command output:
237# CHECK: @@
238# CHECK-NEXT: -bar
239# CHECK-NEXT: +foo
240# CHECK: error: command failed with exit status: 1
241# CHECK: $ "true"
242
243# CHECK: $ "cat" "{{[^"]*}}.foo"
244# CHECK: $ "diff" "-" "{{[^"]*}}.foo"
245# CHECK-NOT: note
246# CHECK-NOT: error
247# CHECK: $ "FileCheck"
248# CHECK-NOT: note
249# CHECK-NOT: error
250
251# CHECK: $ "cat" "{{[^"]*}}.bar"
252# CHECK: $ "diff" "-u" "{{[^"]*}}.foo" "-"
253# CHECK: note: command had no output on stdout or stderr
254# CHECK: error: command failed with exit status: 1
255# CHECK: $ "FileCheck"
256# CHECK-NOT: note
257# CHECK-NOT: error
258# CHECK: $ "true"
259
Joel E. Dennyb1638062019-10-17 14:02:42 +0000260# CHECK: $ "false"
261
262# CHECK: ***
263
264
Max Moroz975eaca2018-01-09 18:23:34 +0000265# CHECK: FAIL: shtest-shell :: diff-r-error-0.txt
266# CHECK: *** TEST 'shtest-shell :: diff-r-error-0.txt' FAILED ***
Dmitri Gribenko60e52f52019-02-28 10:58:13 +0000267# CHECK: $ "diff" "-r"
Max Moroz975eaca2018-01-09 18:23:34 +0000268# CHECK: # command output:
269# CHECK: Only in {{.*}}dir1: dir1unique
270# CHECK: Only in {{.*}}dir2: dir2unique
271# CHECK: error: command failed with exit status: 1
272
273# CHECK: FAIL: shtest-shell :: diff-r-error-1.txt
274# CHECK: *** TEST 'shtest-shell :: diff-r-error-1.txt' FAILED ***
Dmitri Gribenko60e52f52019-02-28 10:58:13 +0000275# CHECK: $ "diff" "-r"
Max Moroz975eaca2018-01-09 18:23:34 +0000276# CHECK: # command output:
277# CHECK: *** {{.*}}dir1{{.*}}subdir{{.*}}f01
278# CHECK: --- {{.*}}dir2{{.*}}subdir{{.*}}f01
279# CHECK: 12345
280# CHECK: 00000
281# CHECK: error: command failed with exit status: 1
282
283# CHECK: FAIL: shtest-shell :: diff-r-error-2.txt
284# CHECK: *** TEST 'shtest-shell :: diff-r-error-2.txt' FAILED ***
Dmitri Gribenko60e52f52019-02-28 10:58:13 +0000285# CHECK: $ "diff" "-r"
Max Moroz975eaca2018-01-09 18:23:34 +0000286# CHECK: # command output:
287# CHECK: Only in {{.*}}dir2: extrafile
288# CHECK: error: command failed with exit status: 1
289
290# CHECK: FAIL: shtest-shell :: diff-r-error-3.txt
291# CHECK: *** TEST 'shtest-shell :: diff-r-error-3.txt' FAILED ***
Dmitri Gribenko60e52f52019-02-28 10:58:13 +0000292# CHECK: $ "diff" "-r"
Max Moroz975eaca2018-01-09 18:23:34 +0000293# CHECK: # command output:
294# CHECK: Only in {{.*}}dir1: extra_subdir
295# CHECK: error: command failed with exit status: 1
296
297# CHECK: FAIL: shtest-shell :: diff-r-error-4.txt
298# CHECK: *** TEST 'shtest-shell :: diff-r-error-4.txt' FAILED ***
Dmitri Gribenko60e52f52019-02-28 10:58:13 +0000299# CHECK: $ "diff" "-r"
Max Moroz975eaca2018-01-09 18:23:34 +0000300# CHECK: # command output:
301# CHECK: File {{.*}}dir1{{.*}}extra_subdir is a directory while file {{.*}}dir2{{.*}}extra_subdir is a regular file
302# CHECK: error: command failed with exit status: 1
303
304# CHECK: FAIL: shtest-shell :: diff-r-error-5.txt
305# CHECK: *** TEST 'shtest-shell :: diff-r-error-5.txt' FAILED ***
Dmitri Gribenko60e52f52019-02-28 10:58:13 +0000306# CHECK: $ "diff" "-r"
Max Moroz975eaca2018-01-09 18:23:34 +0000307# CHECK: # command output:
308# CHECK: Only in {{.*}}dir1: extra_subdir
309# CHECK: error: command failed with exit status: 1
310
311# CHECK: FAIL: shtest-shell :: diff-r-error-6.txt
312# CHECK: *** TEST 'shtest-shell :: diff-r-error-6.txt' FAILED ***
Dmitri Gribenko60e52f52019-02-28 10:58:13 +0000313# CHECK: $ "diff" "-r"
Max Moroz975eaca2018-01-09 18:23:34 +0000314# CHECK: # command output:
315# CHECK: File {{.*}}dir1{{.*}}extra_file is a regular empty file while file {{.*}}dir2{{.*}}extra_file is a directory
316# CHECK: error: command failed with exit status: 1
317
Joel E. Denny7c1d5362019-10-17 14:03:06 +0000318# CHECK: FAIL: shtest-shell :: diff-r-error-7.txt
319# CHECK: *** TEST 'shtest-shell :: diff-r-error-7.txt' FAILED ***
320# CHECK: $ "diff" "-r" "-" "{{[^"]*}}"
321# CHECK: # command stderr:
322# CHECK: Error: cannot recursively compare '-'
323# CHECK: error: command failed with exit status: 1
324
325# CHECK: FAIL: shtest-shell :: diff-r-error-8.txt
326# CHECK: *** TEST 'shtest-shell :: diff-r-error-8.txt' FAILED ***
327# CHECK: $ "diff" "-r" "{{[^"]*}}" "-"
328# CHECK: # command stderr:
329# CHECK: Error: cannot recursively compare '-'
330# CHECK: error: command failed with exit status: 1
331
Max Moroz975eaca2018-01-09 18:23:34 +0000332# CHECK: PASS: shtest-shell :: diff-r.txt
333
Joel E. Denny26224192019-10-16 17:21:57 +0000334
335# CHECK: FAIL: shtest-shell :: diff-strip-trailing-cr.txt
336
337# CHECK: *** TEST 'shtest-shell :: diff-strip-trailing-cr.txt' FAILED ***
338
339# CHECK: $ "diff" "-u" "diff-in.dos" "diff-in.unix"
340# CHECK: # command output:
341# CHECK: @@
342# CHECK-NEXT: -In this file, the
343# CHECK-NEXT: -sequence "\r\n"
344# CHECK-NEXT: -terminates lines.
345# CHECK-NEXT: +In this file, the
346# CHECK-NEXT: +sequence "\n"
347# CHECK-NEXT: +terminates lines.
348# CHECK: error: command failed with exit status: 1
349# CHECK: $ "true"
350
351# CHECK: $ "diff" "-u" "diff-in.unix" "diff-in.dos"
352# CHECK: # command output:
353# CHECK: @@
354# CHECK-NEXT: -In this file, the
355# CHECK-NEXT: -sequence "\n"
356# CHECK-NEXT: -terminates lines.
357# CHECK-NEXT: +In this file, the
358# CHECK-NEXT: +sequence "\r\n"
359# CHECK-NEXT: +terminates lines.
360# CHECK: error: command failed with exit status: 1
361# CHECK: $ "true"
362
363# CHECK: $ "diff" "-u" "--strip-trailing-cr" "diff-in.dos" "diff-in.unix"
364# CHECK: # command output:
365# CHECK: @@
366# CHECK-NEXT: In this file, the
367# CHECK-NEXT: -sequence "\r\n"
368# CHECK-NEXT: +sequence "\n"
369# CHECK-NEXT: terminates lines.
370# CHECK: error: command failed with exit status: 1
371# CHECK: $ "true"
372
373# CHECK: $ "diff" "-u" "--strip-trailing-cr" "diff-in.unix" "diff-in.dos"
374# CHECK: # command output:
375# CHECK: @@
376# CHECK-NEXT: In this file, the
377# CHECK-NEXT: -sequence "\n"
378# CHECK-NEXT: +sequence "\r\n"
379# CHECK-NEXT: terminates lines.
380# CHECK: error: command failed with exit status: 1
381# CHECK: $ "true"
382
383# CHECK: $ "false"
384
385# CHECK: ***
386
387
Joel E. Denny7e385bd2019-10-14 19:59:30 +0000388# CHECK: FAIL: shtest-shell :: diff-unified.txt
389
390# CHECK: *** TEST 'shtest-shell :: diff-unified.txt' FAILED ***
391
392# CHECK: $ "diff" "-u" "{{[^"]*}}.foo" "{{[^"]*}}.bar"
393# CHECK: # command output:
394# CHECK: @@ {{.*}} @@
395# CHECK-NEXT: 3
396# CHECK-NEXT: 4
397# CHECK-NEXT: 5
398# CHECK-NEXT: -6 foo
399# CHECK-NEXT: +6 bar
400# CHECK-NEXT: 7
401# CHECK-NEXT: 8
402# CHECK-NEXT: 9
403# CHECK-EMPTY:
404# CHECK-NEXT: error: command failed with exit status: 1
405# CHECK-NEXT: $ "true"
406
407# CHECK: $ "diff" "-U" "2" "{{[^"]*}}.foo" "{{[^"]*}}.bar"
408# CHECK: # command output:
409# CHECK: @@ {{.*}} @@
410# CHECK-NEXT: 4
411# CHECK-NEXT: 5
412# CHECK-NEXT: -6 foo
413# CHECK-NEXT: +6 bar
414# CHECK-NEXT: 7
415# CHECK-NEXT: 8
416# CHECK-EMPTY:
417# CHECK-NEXT: error: command failed with exit status: 1
418# CHECK-NEXT: $ "true"
419
420# CHECK: $ "diff" "-U4" "{{[^"]*}}.foo" "{{[^"]*}}.bar"
421# CHECK: # command output:
422# CHECK: @@ {{.*}} @@
423# CHECK-NEXT: 2
424# CHECK-NEXT: 3
425# CHECK-NEXT: 4
426# CHECK-NEXT: 5
427# CHECK-NEXT: -6 foo
428# CHECK-NEXT: +6 bar
429# CHECK-NEXT: 7
430# CHECK-NEXT: 8
431# CHECK-NEXT: 9
432# CHECK-NEXT: 10
433# CHECK-EMPTY:
434# CHECK-NEXT: error: command failed with exit status: 1
435# CHECK-NEXT: $ "true"
436
437# CHECK: $ "diff" "-U0" "{{[^"]*}}.foo" "{{[^"]*}}.bar"
438# CHECK: # command output:
439# CHECK: @@ {{.*}} @@
440# CHECK-NEXT: -6 foo
441# CHECK-NEXT: +6 bar
442# CHECK-EMPTY:
443# CHECK-NEXT: error: command failed with exit status: 1
444# CHECK-NEXT: $ "true"
445
Joel E. Dennyb1638062019-10-17 14:02:42 +0000446# CHECK: $ "diff" "-U" "30.1" "{{[^"]*}}" "{{[^"]*}}"
447# CHECK: # command stderr:
448# CHECK: Error: invalid '-U' argument: 30.1
449# CHECK: error: command failed with exit status: 1
450# CHECK: $ "true"
451
452# CHECK: $ "diff" "-U-1" "{{[^"]*}}" "{{[^"]*}}"
453# CHECK: # command stderr:
454# CHECK: Error: invalid '-U' argument: -1
455# CHECK: error: command failed with exit status: 1
456# CHECK: $ "true"
457
Joel E. Denny7e385bd2019-10-14 19:59:30 +0000458# CHECK: $ "false"
459
460# CHECK: ***
461
462
Daniel Dunbar38d37982013-01-31 22:15:20 +0000463# CHECK: FAIL: shtest-shell :: error-0.txt
464# CHECK: *** TEST 'shtest-shell :: error-0.txt' FAILED ***
Daniel Dunbar591838d2016-06-02 23:49:42 +0000465# CHECK: $ "not-a-real-command"
466# CHECK: # command stderr:
Daniel Dunbar38d37982013-01-31 22:15:20 +0000467# CHECK: 'not-a-real-command': command not found
Daniel Dunbar591838d2016-06-02 23:49:42 +0000468# CHECK: error: command failed with exit status: 127
Daniel Dunbar38d37982013-01-31 22:15:20 +0000469# CHECK: ***
470
471# FIXME: The output here sucks.
472#
473# CHECK: FAIL: shtest-shell :: error-1.txt
474# CHECK: *** TEST 'shtest-shell :: error-1.txt' FAILED ***
Joel E. Dennyfc01dd22018-05-31 03:40:37 +0000475# CHECK: shell parser error on: ': \'RUN: at line 3\'; echo "missing quote'
Daniel Dunbar38d37982013-01-31 22:15:20 +0000476# CHECK: ***
477
478# CHECK: FAIL: shtest-shell :: error-2.txt
479# CHECK: *** TEST 'shtest-shell :: error-2.txt' FAILED ***
480# CHECK: Unsupported redirect:
481# CHECK: ***
482
Ying Yicfb08e92017-12-01 09:54:27 +0000483# CHECK: FAIL: shtest-shell :: mkdir-error-0.txt
484# CHECK: *** TEST 'shtest-shell :: mkdir-error-0.txt' FAILED ***
485# CHECK: $ "mkdir" "-p" "temp"
486# CHECK: # command stderr:
487# CHECK: Unsupported: 'mkdir' cannot be part of a pipeline
488# CHECK: error: command failed with exit status: 127
489# CHECK: ***
490
491# CHECK: FAIL: shtest-shell :: mkdir-error-1.txt
492# CHECK: *** TEST 'shtest-shell :: mkdir-error-1.txt' FAILED ***
493# CHECK: $ "mkdir" "-p" "-m" "777" "temp"
494# CHECK: # command stderr:
495# CHECK: Unsupported: 'mkdir': option -m not recognized
496# CHECK: error: command failed with exit status: 127
497# CHECK: ***
498
499# CHECK: FAIL: shtest-shell :: mkdir-error-2.txt
500# CHECK: *** TEST 'shtest-shell :: mkdir-error-2.txt' FAILED ***
501# CHECK: $ "mkdir" "-p"
502# CHECK: # command stderr:
503# CHECK: Error: 'mkdir' is missing an operand
504# CHECK: error: command failed with exit status: 127
505# CHECK: ***
506
Daniel Dunbar38d37982013-01-31 22:15:20 +0000507# CHECK: PASS: shtest-shell :: redirects.txt
Ying Yicfb08e92017-12-01 09:54:27 +0000508
509# CHECK: FAIL: shtest-shell :: rm-error-0.txt
510# CHECK: *** TEST 'shtest-shell :: rm-error-0.txt' FAILED ***
511# CHECK: $ "rm" "-rf" "temp"
512# CHECK: # command stderr:
513# CHECK: Unsupported: 'rm' cannot be part of a pipeline
514# CHECK: error: command failed with exit status: 127
515# CHECK: ***
516
517# CHECK: FAIL: shtest-shell :: rm-error-1.txt
518# CHECK: *** TEST 'shtest-shell :: rm-error-1.txt' FAILED ***
519# CHECK: $ "rm" "-f" "-v" "temp"
520# CHECK: # command stderr:
521# CHECK: Unsupported: 'rm': option -v not recognized
522# CHECK: error: command failed with exit status: 127
523# CHECK: ***
524
525# CHECK: FAIL: shtest-shell :: rm-error-2.txt
526# CHECK: *** TEST 'shtest-shell :: rm-error-2.txt' FAILED ***
527# CHECK: $ "rm" "-r" "hello"
528# CHECK: # command stderr:
529# CHECK: Error: 'rm' command failed
530# CHECK: error: command failed with exit status: 1
531# CHECK: ***
532
533# CHECK: FAIL: shtest-shell :: rm-error-3.txt
534# CHECK: *** TEST 'shtest-shell :: rm-error-3.txt' FAILED ***
535# CHECK: Exit Code: 1
536# CHECK: ***
537
Serge Guelton54be9092019-02-28 19:16:17 +0000538# CHECK: PASS: shtest-shell :: rm-unicode-0.txt
Daniel Dunbar38d37982013-01-31 22:15:20 +0000539# CHECK: PASS: shtest-shell :: sequencing-0.txt
540# CHECK: XFAIL: shtest-shell :: sequencing-1.txt
Joel E. Denny27fdf8a2019-10-18 12:53:45 -0400541
542# CHECK: FAIL: shtest-shell :: stdout-encoding.txt
543# CHECK: *** TEST 'shtest-shell :: stdout-encoding.txt' FAILED ***
544# CHECK: $ "cat" "diff-in.bin"
545# CHECK: # command output:
546# CHECK-NEXT: {{^.f.o.o.$}}
547# CHECK-NEXT: {{^.b.a.r..}}
548# CHECK-NEXT: {{^.b.a.z.$}}
549# CHECK-NOT: error
550# CHECK: $ "false"
551# CHECK: ***
552
Ying Yicfb08e92017-12-01 09:54:27 +0000553# CHECK: PASS: shtest-shell :: valid-shell.txt
Joel E. Denny7c1d5362019-10-17 14:03:06 +0000554# CHECK: Failing Tests (33)