1# Check the internal shell handling component of the ShTest format.
2
3# RUN: not %{lit} -v %{inputs}/shtest-shell > %t.out
4# FIXME: Temporarily dump test output so we can debug failing tests on
5# buildbots.
6# RUN: cat %t.out
7# RUN: FileCheck --input-file %t.out %s
8#
9# Test again in non-UTF shell to catch potential errors with python 2 seen
10# on stdout-encoding.txt
11# RUN: env PYTHONIOENCODING=ascii not %{lit} -a %{inputs}/shtest-shell > %t.ascii.out
12# FIXME: Temporarily dump test output so we can debug failing tests on
13# buildbots.
14# RUN: cat %t.ascii.out
15# RUN: FileCheck --input-file %t.ascii.out %s
16#
17# END.
18
19# CHECK: -- Testing:
20
21# CHECK: FAIL: shtest-shell :: cat-error-0.txt
22# CHECK: *** TEST 'shtest-shell :: cat-error-0.txt' FAILED ***
23# CHECK: $ "cat" "-b" "temp1.txt"
24# CHECK: # command stderr:
25# CHECK: Unsupported: 'cat':  option -b not recognized
26# CHECK: error: command failed with exit status: 1
27# CHECK: ***
28
29# CHECK: FAIL: shtest-shell :: cat-error-1.txt
30# CHECK: *** TEST 'shtest-shell :: cat-error-1.txt' FAILED ***
31# CHECK: $ "cat" "temp1.txt"
32# CHECK: # command stderr:
33# CHECK: [Errno 2] No such file or directory: 'temp1.txt'
34# CHECK: error: command failed with exit status: 1
35# CHECK: ***
36
37# CHECK: FAIL: shtest-shell :: colon-error.txt
38# CHECK: *** TEST 'shtest-shell :: colon-error.txt' FAILED ***
39# CHECK: $ ":"
40# CHECK: # command stderr:
41# CHECK: Unsupported: ':' cannot be part of a pipeline
42# CHECK: error: command failed with exit status: 127
43# CHECK: ***
44
45# CHECK: PASS: shtest-shell :: continuations.txt
46
47# CHECK: PASS: shtest-shell :: dev-null.txt
48
49# CHECK: FAIL: shtest-shell :: diff-b.txt
50# CHECK: *** TEST 'shtest-shell :: diff-b.txt' FAILED ***
51# CHECK: $ "diff" "-b" "{{[^"]*}}.0" "{{[^"]*}}.1"
52# CHECK: # command output:
53# CHECK: 1,2
54# CHECK-NEXT: {{^  }}f o o
55# CHECK-NEXT: ! b a r
56# CHECK-NEXT: ---
57# CHECK-NEXT: {{^  }}f o o
58# CHECK-NEXT: ! bar
59# CHECK-EMPTY:
60# CHECK: error: command failed with exit status: 1
61# CHECK: ***
62
63
64# CHECK: FAIL: shtest-shell :: diff-encodings.txt
65# CHECK: *** TEST 'shtest-shell :: diff-encodings.txt' FAILED ***
66
67# CHECK: $ "diff" "-u" "diff-in.bin" "diff-in.bin"
68# CHECK-NOT: error
69
70# CHECK: $ "diff" "-u" "diff-in.utf16" "diff-in.bin"
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.r.}}
78# CHECK-NEXT: {{^ .b.a.z.$}}
79# CHECK: error: command failed with exit status: 1
80# CHECK: $ "true"
81
82# CHECK: $ "diff" "-u" "diff-in.utf8" "diff-in.bin"
83# CHECK: # command output:
84# CHECK-NEXT: ---
85# CHECK-NEXT: +++
86# CHECK-NEXT: @@
87# CHECK-NEXT: -foo
88# CHECK-NEXT: -bar
89# CHECK-NEXT: -baz
90# CHECK-NEXT: {{^\+.f.o.o.$}}
91# CHECK-NEXT: {{^\+.b.a.r.}}
92# CHECK-NEXT: {{^\+.b.a.z.$}}
93# CHECK: error: command failed with exit status: 1
94# CHECK: $ "true"
95
96# CHECK: $ "diff" "-u" "diff-in.bin" "diff-in.utf8"
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.z.$}}
104# CHECK-NEXT: +foo
105# CHECK-NEXT: +bar
106# CHECK-NEXT: +baz
107# CHECK: error: command failed with exit status: 1
108# CHECK: $ "true"
109
110# CHECK: $ "cat" "diff-in.bin"
111# CHECK-NOT: error
112# CHECK: $ "diff" "-u" "-" "diff-in.bin"
113# CHECK-NOT: error
114
115# CHECK: $ "cat" "diff-in.bin"
116# CHECK-NOT: error
117# CHECK: $ "diff" "-u" "diff-in.bin" "-"
118# CHECK-NOT: error
119
120# CHECK: $ "cat" "diff-in.bin"
121# CHECK-NOT: error
122# CHECK: $ "diff" "-u" "diff-in.utf16" "-"
123# CHECK: # command output:
124# CHECK-NEXT: ---
125# CHECK-NEXT: +++
126# CHECK-NEXT: @@
127# CHECK-NEXT: {{^ .f.o.o.$}}
128# CHECK-NEXT: {{^-.b.a.r.$}}
129# CHECK-NEXT: {{^\+.b.a.r.}}
130# CHECK-NEXT: {{^ .b.a.z.$}}
131# CHECK: error: command failed with exit status: 1
132# CHECK: $ "true"
133
134# CHECK: $ "cat" "diff-in.bin"
135# CHECK-NOT: error
136# CHECK: $ "diff" "-u" "diff-in.utf8" "-"
137# CHECK: # command output:
138# CHECK-NEXT: ---
139# CHECK-NEXT: +++
140# CHECK-NEXT: @@
141# CHECK-NEXT: -foo
142# CHECK-NEXT: -bar
143# CHECK-NEXT: -baz
144# CHECK-NEXT: {{^\+.f.o.o.$}}
145# CHECK-NEXT: {{^\+.b.a.r.}}
146# CHECK-NEXT: {{^\+.b.a.z.$}}
147# CHECK: error: command failed with exit status: 1
148# CHECK: $ "true"
149
150# CHECK: $ "diff" "-u" "-" "diff-in.utf8"
151# CHECK: # command output:
152# CHECK-NEXT: ---
153# CHECK-NEXT: +++
154# CHECK-NEXT: @@
155# CHECK-NEXT: {{^\-.f.o.o.$}}
156# CHECK-NEXT: {{^\-.b.a.r.}}
157# CHECK-NEXT: {{^\-.b.a.z.$}}
158# CHECK-NEXT: +foo
159# CHECK-NEXT: +bar
160# CHECK-NEXT: +baz
161# CHECK: error: command failed with exit status: 1
162# CHECK: $ "true"
163
164# CHECK: $ "false"
165
166# CHECK: ***
167
168
169# CHECK: FAIL: shtest-shell :: diff-error-1.txt
170# CHECK: *** TEST 'shtest-shell :: diff-error-1.txt' FAILED ***
171# CHECK: $ "diff" "-B" "temp1.txt" "temp2.txt"
172# CHECK: # command stderr:
173# CHECK: Unsupported: 'diff': option -B not recognized
174# CHECK: error: command failed with exit status: 1
175# CHECK: ***
176
177# CHECK: FAIL: shtest-shell :: diff-error-2.txt
178# CHECK: *** TEST 'shtest-shell :: diff-error-2.txt' FAILED ***
179# CHECK: $ "diff" "temp.txt"
180# CHECK: # command stderr:
181# CHECK: Error: missing or extra operand
182# CHECK: error: command failed with exit status: 1
183# CHECK: ***
184
185# CHECK: FAIL: shtest-shell :: diff-error-3.txt
186# CHECK: *** TEST 'shtest-shell :: diff-error-3.txt' FAILED ***
187# CHECK: $ "diff" "temp.txt" "temp1.txt"
188# CHECK: # command stderr:
189# CHECK: Error: 'diff' command failed
190# CHECK: error: command failed with exit status: 1
191# CHECK: ***
192
193# CHECK: FAIL: shtest-shell :: diff-error-4.txt
194# CHECK: *** TEST 'shtest-shell :: diff-error-4.txt' FAILED ***
195# CHECK: Exit Code: 1
196# CHECK: # command output:
197# CHECK: diff-error-4.txt.tmp
198# CHECK: diff-error-4.txt.tmp1
199# CHECK: *** 1 ****
200# CHECK: ! hello-first
201# CHECK: --- 1 ----
202# CHECK: ! hello-second
203# CHECK: ***
204
205# CHECK: FAIL: shtest-shell :: diff-error-5.txt
206# CHECK: *** TEST 'shtest-shell :: diff-error-5.txt' FAILED ***
207# CHECK: $ "diff"
208# CHECK: # command stderr:
209# CHECK: Error: missing or extra operand
210# CHECK: error: command failed with exit status: 1
211# CHECK: ***
212
213# CHECK: FAIL: shtest-shell :: diff-error-6.txt
214# CHECK: *** TEST 'shtest-shell :: diff-error-6.txt' FAILED ***
215# CHECK: $ "diff"
216# CHECK: # command stderr:
217# CHECK: Error: missing or extra operand
218# CHECK: error: command failed with exit status: 1
219# CHECK: ***
220
221
222# CHECK: FAIL: shtest-shell :: diff-pipes.txt
223
224# CHECK: *** TEST 'shtest-shell :: diff-pipes.txt' FAILED ***
225
226# CHECK: $ "diff" "{{[^"]*}}.foo" "{{[^"]*}}.foo"
227# CHECK-NOT: note
228# CHECK-NOT: error
229# CHECK: $ "FileCheck"
230# CHECK-NOT: note
231# CHECK-NOT: error
232
233# CHECK: $ "diff" "-u" "{{[^"]*}}.foo" "{{[^"]*}}.bar"
234# CHECK: note: command had no output on stdout or stderr
235# CHECK: error: command failed with exit status: 1
236# CHECK: $ "FileCheck"
237# CHECK-NOT: note
238# CHECK-NOT: error
239# CHECK: $ "true"
240
241# CHECK: $ "cat" "{{[^"]*}}.foo"
242# CHECK: $ "diff" "-u" "-" "{{[^"]*}}.foo"
243# CHECK-NOT: note
244# CHECK-NOT: error
245
246# CHECK: $ "cat" "{{[^"]*}}.foo"
247# CHECK: $ "diff" "-u" "{{[^"]*}}.foo" "-"
248# CHECK-NOT: note
249# CHECK-NOT: error
250
251# CHECK: $ "cat" "{{[^"]*}}.bar"
252# CHECK: $ "diff" "-u" "{{[^"]*}}.foo" "-"
253# CHECK: # command output:
254# CHECK: @@
255# CHECK-NEXT: -foo
256# CHECK-NEXT: +bar
257# CHECK: error: command failed with exit status: 1
258# CHECK: $ "true"
259
260# CHECK: $ "cat" "{{[^"]*}}.bar"
261# CHECK: $ "diff" "-u" "-" "{{[^"]*}}.foo"
262# CHECK: # command output:
263# CHECK: @@
264# CHECK-NEXT: -bar
265# CHECK-NEXT: +foo
266# CHECK: error: command failed with exit status: 1
267# CHECK: $ "true"
268
269# CHECK: $ "cat" "{{[^"]*}}.foo"
270# CHECK: $ "diff" "-" "{{[^"]*}}.foo"
271# CHECK-NOT: note
272# CHECK-NOT: error
273# CHECK: $ "FileCheck"
274# CHECK-NOT: note
275# CHECK-NOT: error
276
277# CHECK: $ "cat" "{{[^"]*}}.bar"
278# CHECK: $ "diff" "-u" "{{[^"]*}}.foo" "-"
279# CHECK: note: command had no output on stdout or stderr
280# CHECK: error: command failed with exit status: 1
281# CHECK: $ "FileCheck"
282# CHECK-NOT: note
283# CHECK-NOT: error
284# CHECK: $ "true"
285
286# CHECK: $ "false"
287
288# CHECK: ***
289
290
291# CHECK: FAIL: shtest-shell :: diff-r-error-0.txt
292# CHECK: *** TEST 'shtest-shell :: diff-r-error-0.txt' FAILED ***
293# CHECK: $ "diff" "-r"
294# CHECK: # command output:
295# CHECK: Only in {{.*}}dir1: dir1unique
296# CHECK: Only in {{.*}}dir2: dir2unique
297# CHECK: error: command failed with exit status: 1
298
299# CHECK: FAIL: shtest-shell :: diff-r-error-1.txt
300# CHECK: *** TEST 'shtest-shell :: diff-r-error-1.txt' FAILED ***
301# CHECK: $ "diff" "-r"
302# CHECK: # command output:
303# CHECK: *** {{.*}}dir1{{.*}}subdir{{.*}}f01
304# CHECK: --- {{.*}}dir2{{.*}}subdir{{.*}}f01
305# CHECK: 12345
306# CHECK: 00000
307# CHECK: error: command failed with exit status: 1
308
309# CHECK: FAIL: shtest-shell :: diff-r-error-2.txt
310# CHECK: *** TEST 'shtest-shell :: diff-r-error-2.txt' FAILED ***
311# CHECK: $ "diff" "-r"
312# CHECK: # command output:
313# CHECK: Only in {{.*}}dir2: extrafile
314# CHECK: error: command failed with exit status: 1
315
316# CHECK: FAIL: shtest-shell :: diff-r-error-3.txt
317# CHECK: *** TEST 'shtest-shell :: diff-r-error-3.txt' FAILED ***
318# CHECK: $ "diff" "-r"
319# CHECK: # command output:
320# CHECK: Only in {{.*}}dir1: extra_subdir
321# CHECK: error: command failed with exit status: 1
322
323# CHECK: FAIL: shtest-shell :: diff-r-error-4.txt
324# CHECK: *** TEST 'shtest-shell :: diff-r-error-4.txt' FAILED ***
325# CHECK: $ "diff" "-r"
326# CHECK: # command output:
327# CHECK: File {{.*}}dir1{{.*}}extra_subdir is a directory while file {{.*}}dir2{{.*}}extra_subdir is a regular file
328# CHECK: error: command failed with exit status: 1
329
330# CHECK: FAIL: shtest-shell :: diff-r-error-5.txt
331# CHECK: *** TEST 'shtest-shell :: diff-r-error-5.txt' FAILED ***
332# CHECK: $ "diff" "-r"
333# CHECK: # command output:
334# CHECK: Only in {{.*}}dir1: extra_subdir
335# CHECK: error: command failed with exit status: 1
336
337# CHECK: FAIL: shtest-shell :: diff-r-error-6.txt
338# CHECK: *** TEST 'shtest-shell :: diff-r-error-6.txt' FAILED ***
339# CHECK: $ "diff" "-r"
340# CHECK: # command output:
341# CHECK: File {{.*}}dir1{{.*}}extra_file is a regular empty file while file {{.*}}dir2{{.*}}extra_file is a directory
342# CHECK: error: command failed with exit status: 1
343
344# CHECK: FAIL: shtest-shell :: diff-r-error-7.txt
345# CHECK: *** TEST 'shtest-shell :: diff-r-error-7.txt' FAILED ***
346# CHECK: $ "diff" "-r" "-" "{{[^"]*}}"
347# CHECK: # command stderr:
348# CHECK: Error: cannot recursively compare '-'
349# CHECK: error: command failed with exit status: 1
350
351# CHECK: FAIL: shtest-shell :: diff-r-error-8.txt
352# CHECK: *** TEST 'shtest-shell :: diff-r-error-8.txt' FAILED ***
353# CHECK: $ "diff" "-r" "{{[^"]*}}" "-"
354# CHECK: # command stderr:
355# CHECK: Error: cannot recursively compare '-'
356# CHECK: error: command failed with exit status: 1
357
358# CHECK: PASS: shtest-shell :: diff-r.txt
359
360
361# CHECK: FAIL: shtest-shell :: diff-strip-trailing-cr.txt
362
363# CHECK: *** TEST 'shtest-shell :: diff-strip-trailing-cr.txt' FAILED ***
364
365# CHECK: $ "diff" "-u" "diff-in.dos" "diff-in.unix"
366# CHECK: # command output:
367# CHECK: @@
368# CHECK-NEXT: -In this file, the
369# CHECK-NEXT: -sequence "\r\n"
370# CHECK-NEXT: -terminates lines.
371# CHECK-NEXT: +In this file, the
372# CHECK-NEXT: +sequence "\n"
373# CHECK-NEXT: +terminates lines.
374# CHECK: error: command failed with exit status: 1
375# CHECK: $ "true"
376
377# CHECK: $ "diff" "-u" "diff-in.unix" "diff-in.dos"
378# CHECK: # command output:
379# CHECK: @@
380# CHECK-NEXT: -In this file, the
381# CHECK-NEXT: -sequence "\n"
382# CHECK-NEXT: -terminates lines.
383# CHECK-NEXT: +In this file, the
384# CHECK-NEXT: +sequence "\r\n"
385# CHECK-NEXT: +terminates lines.
386# CHECK: error: command failed with exit status: 1
387# CHECK: $ "true"
388
389# CHECK: $ "diff" "-u" "--strip-trailing-cr" "diff-in.dos" "diff-in.unix"
390# CHECK: # command output:
391# CHECK: @@
392# CHECK-NEXT:  In this file, the
393# CHECK-NEXT: -sequence "\r\n"
394# CHECK-NEXT: +sequence "\n"
395# CHECK-NEXT:  terminates lines.
396# CHECK: error: command failed with exit status: 1
397# CHECK: $ "true"
398
399# CHECK: $ "diff" "-u" "--strip-trailing-cr" "diff-in.unix" "diff-in.dos"
400# CHECK: # command output:
401# CHECK: @@
402# CHECK-NEXT:  In this file, the
403# CHECK-NEXT: -sequence "\n"
404# CHECK-NEXT: +sequence "\r\n"
405# CHECK-NEXT:  terminates lines.
406# CHECK: error: command failed with exit status: 1
407# CHECK: $ "true"
408
409# CHECK: $ "false"
410
411# CHECK: ***
412
413
414# CHECK: FAIL: shtest-shell :: diff-unified.txt
415
416# CHECK: *** TEST 'shtest-shell :: diff-unified.txt' FAILED ***
417
418# CHECK: $ "diff" "-u" "{{[^"]*}}.foo" "{{[^"]*}}.bar"
419# CHECK: # command output:
420# CHECK: @@ {{.*}} @@
421# CHECK-NEXT: 3
422# CHECK-NEXT: 4
423# CHECK-NEXT: 5
424# CHECK-NEXT: -6 foo
425# CHECK-NEXT: +6 bar
426# CHECK-NEXT: 7
427# CHECK-NEXT: 8
428# CHECK-NEXT: 9
429# CHECK-EMPTY:
430# CHECK-NEXT: error: command failed with exit status: 1
431# CHECK-NEXT: $ "true"
432
433# CHECK: $ "diff" "-U" "2" "{{[^"]*}}.foo" "{{[^"]*}}.bar"
434# CHECK: # command output:
435# CHECK: @@ {{.*}} @@
436# CHECK-NEXT: 4
437# CHECK-NEXT: 5
438# CHECK-NEXT: -6 foo
439# CHECK-NEXT: +6 bar
440# CHECK-NEXT: 7
441# CHECK-NEXT: 8
442# CHECK-EMPTY:
443# CHECK-NEXT: error: command failed with exit status: 1
444# CHECK-NEXT: $ "true"
445
446# CHECK: $ "diff" "-U4" "{{[^"]*}}.foo" "{{[^"]*}}.bar"
447# CHECK: # command output:
448# CHECK: @@ {{.*}} @@
449# CHECK-NEXT: 2
450# CHECK-NEXT: 3
451# CHECK-NEXT: 4
452# CHECK-NEXT: 5
453# CHECK-NEXT: -6 foo
454# CHECK-NEXT: +6 bar
455# CHECK-NEXT: 7
456# CHECK-NEXT: 8
457# CHECK-NEXT: 9
458# CHECK-NEXT: 10
459# CHECK-EMPTY:
460# CHECK-NEXT: error: command failed with exit status: 1
461# CHECK-NEXT: $ "true"
462
463# CHECK: $ "diff" "-U0" "{{[^"]*}}.foo" "{{[^"]*}}.bar"
464# CHECK: # command output:
465# CHECK: @@ {{.*}} @@
466# CHECK-NEXT: -6 foo
467# CHECK-NEXT: +6 bar
468# CHECK-EMPTY:
469# CHECK-NEXT: error: command failed with exit status: 1
470# CHECK-NEXT: $ "true"
471
472# CHECK: $ "diff" "-U" "30.1" "{{[^"]*}}" "{{[^"]*}}"
473# CHECK: # command stderr:
474# CHECK: Error: invalid '-U' argument: 30.1
475# CHECK: error: command failed with exit status: 1
476# CHECK: $ "true"
477
478# CHECK: $ "diff" "-U-1" "{{[^"]*}}" "{{[^"]*}}"
479# CHECK: # command stderr:
480# CHECK: Error: invalid '-U' argument: -1
481# CHECK: error: command failed with exit status: 1
482# CHECK: $ "true"
483
484# CHECK: $ "false"
485
486# CHECK: ***
487
488
489# CHECK: FAIL: shtest-shell :: diff-w.txt
490# CHECK: *** TEST 'shtest-shell :: diff-w.txt' FAILED ***
491# CHECK: $ "diff" "-w" "{{[^"]*}}.0" "{{[^"]*}}.1"
492# CHECK: # command output:
493# CHECK: 1,3
494# CHECK-NEXT: {{^  }}foo
495# CHECK-NEXT: {{^  }}bar
496# CHECK-NEXT: ! baz
497# CHECK-NEXT: ---
498# CHECK-NEXT: {{^  }}foo
499# CHECK-NEXT: {{^  }}bar
500# CHECK-NEXT: ! bat
501# CHECK-EMPTY:
502# CHECK: error: command failed with exit status: 1
503# CHECK: ***
504
505# CHECK: FAIL: shtest-shell :: error-0.txt
506# CHECK: *** TEST 'shtest-shell :: error-0.txt' FAILED ***
507# CHECK: $ "not-a-real-command"
508# CHECK: # command stderr:
509# CHECK: 'not-a-real-command': command not found
510# CHECK: error: command failed with exit status: 127
511# CHECK: ***
512
513# FIXME: The output here sucks.
514#
515# CHECK: FAIL: shtest-shell :: error-1.txt
516# CHECK: *** TEST 'shtest-shell :: error-1.txt' FAILED ***
517# CHECK: shell parser error on: ': \'RUN: at line 3\'; echo "missing quote'
518# CHECK: ***
519
520# CHECK: FAIL: shtest-shell :: error-2.txt
521# CHECK: *** TEST 'shtest-shell :: error-2.txt' FAILED ***
522# CHECK: Unsupported redirect:
523# CHECK: ***
524
525# CHECK: FAIL: shtest-shell :: mkdir-error-0.txt
526# CHECK: *** TEST 'shtest-shell :: mkdir-error-0.txt' FAILED ***
527# CHECK: $ "mkdir" "-p" "temp"
528# CHECK: # command stderr:
529# CHECK: Unsupported: 'mkdir' cannot be part of a pipeline
530# CHECK: error: command failed with exit status: 127
531# CHECK: ***
532
533# CHECK: FAIL: shtest-shell :: mkdir-error-1.txt
534# CHECK: *** TEST 'shtest-shell :: mkdir-error-1.txt' FAILED ***
535# CHECK: $ "mkdir" "-p" "-m" "777" "temp"
536# CHECK: # command stderr:
537# CHECK: Unsupported: 'mkdir': option -m not recognized
538# CHECK: error: command failed with exit status: 127
539# CHECK: ***
540
541# CHECK: FAIL: shtest-shell :: mkdir-error-2.txt
542# CHECK: *** TEST 'shtest-shell :: mkdir-error-2.txt' FAILED ***
543# CHECK: $ "mkdir" "-p"
544# CHECK: # command stderr:
545# CHECK: Error: 'mkdir' is missing an operand
546# CHECK: error: command failed with exit status: 127
547# CHECK: ***
548
549# CHECK: PASS: shtest-shell :: redirects.txt
550
551# CHECK: FAIL: shtest-shell :: rm-error-0.txt
552# CHECK: *** TEST 'shtest-shell :: rm-error-0.txt' FAILED ***
553# CHECK: $ "rm" "-rf" "temp"
554# CHECK: # command stderr:
555# CHECK: Unsupported: 'rm' cannot be part of a pipeline
556# CHECK: error: command failed with exit status: 127
557# CHECK: ***
558
559# CHECK: FAIL: shtest-shell :: rm-error-1.txt
560# CHECK: *** TEST 'shtest-shell :: rm-error-1.txt' FAILED ***
561# CHECK: $ "rm" "-f" "-v" "temp"
562# CHECK: # command stderr:
563# CHECK: Unsupported: 'rm': option -v not recognized
564# CHECK: error: command failed with exit status: 127
565# CHECK: ***
566
567# CHECK: FAIL: shtest-shell :: rm-error-2.txt
568# CHECK: *** TEST 'shtest-shell :: rm-error-2.txt' FAILED ***
569# CHECK: $ "rm" "-r" "hello"
570# CHECK: # command stderr:
571# CHECK: Error: 'rm' command failed
572# CHECK: error: command failed with exit status: 1
573# CHECK: ***
574
575# CHECK: FAIL: shtest-shell :: rm-error-3.txt
576# CHECK: *** TEST 'shtest-shell :: rm-error-3.txt' FAILED ***
577# CHECK: Exit Code: 1
578# CHECK: ***
579
580# CHECK: PASS: shtest-shell :: rm-unicode-0.txt
581# CHECK: PASS: shtest-shell :: sequencing-0.txt
582# CHECK: XFAIL: shtest-shell :: sequencing-1.txt
583
584# CHECK: FAIL: shtest-shell :: stdout-encoding.txt
585# CHECK: *** TEST 'shtest-shell :: stdout-encoding.txt' FAILED ***
586# CHECK: $ "cat" "diff-in.bin"
587# CHECK: # command output:
588# CHECK-NEXT: {{^.f.o.o.$}}
589# CHECK-NEXT: {{^.b.a.r.}}
590# CHECK-NEXT: {{^.b.a.z.$}}
591# CHECK-NOT: error
592# CHECK: $ "false"
593# CHECK: ***
594
595# CHECK: PASS: shtest-shell :: valid-shell.txt
596# CHECK: Failed Tests (35)
597