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