brintos

brintos / llvm-project-archived public Read only

0
0
Text · 774 B · 9763f9f Raw
24 lines · python
1## Test the cat command.2#3# RUN: not %{lit} -v %{inputs}/shtest-cat \4# RUN: | FileCheck -match-full-lines %s5# END.6 7# CHECK: FAIL: shtest-cat :: cat-error-0.txt ({{[^)]*}})8# CHECK: cat -b temp1.txt9# CHECK: # .---command stderr{{-*}}10# CHECK-NEXT: # | Unsupported: 'cat':  option -b not recognized11# CHECK: # error: command failed with exit status: 112 13# CHECK: FAIL: shtest-cat :: cat-error-1.txt ({{[^)]*}})14# CHECK: cat temp1.txt15# CHECK: # .---command stderr{{-*}}16# CHECK-NEXT: # | [Errno 2] No such file or directory: 'temp1.txt'17# CHECK: # error: command failed with exit status: 118 19# CHECK: PASS: shtest-cat :: cat.txt ({{[^)]*}})20 21# CHECK: Total Discovered Tests: 322# CHECK-NEXT: Passed: 1 {{\([0-9]*\.[0-9]*%\)}}23# CHECK-NEXT: Failed: 2 {{\([0-9]*\.[0-9]*%\)}}24