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