Daniel Dunbar | 591838d | 2016-06-02 23:49:42 +0000 | [diff] [blame] | 1 | # Check the various features of the ShTest format. |
| 2 | # |
| 3 | # RUN: not %{lit} -j 1 -v %{inputs}/shtest-output-printing > %t.out |
Daniel Dunbar | 1934108 | 2016-06-07 16:13:40 +0000 | [diff] [blame] | 4 | # RUN: FileCheck --input-file %t.out %s |
Daniel Dunbar | 591838d | 2016-06-02 23:49:42 +0000 | [diff] [blame] | 5 | # |
| 6 | # END. |
| 7 | |
| 8 | # CHECK: -- Testing: |
| 9 | |
| 10 | # CHECK: FAIL: shtest-output-printing :: basic.txt |
| 11 | # CHECK-NEXT: *** TEST 'shtest-output-printing :: basic.txt' FAILED *** |
| 12 | # CHECK-NEXT: Script: |
| 13 | # CHECK-NEXT: -- |
| 14 | # CHECK: -- |
| 15 | # CHECK-NEXT: Exit Code: 1 |
| 16 | # |
| 17 | # CHECK: Command Output |
| 18 | # CHECK-NEXT: -- |
| 19 | # CHECK-NEXT: $ "true" |
| 20 | # CHECK-NEXT: $ "echo" "hi" |
| 21 | # CHECK-NEXT: # command output: |
| 22 | # CHECK-NEXT: hi |
| 23 | # |
Joel E. Denny | 71792c7 | 2018-05-30 21:07:27 +0000 | [diff] [blame] | 24 | # CHECK: $ "wc" "missing-file" |
Reid Kleckner | fa83d5a | 2017-07-26 22:11:30 +0000 | [diff] [blame] | 25 | # CHECK-NEXT: # redirected output from '{{.*(/|\\\\)}}basic.txt.tmp.out': |
Daniel Dunbar | 1934108 | 2016-06-07 16:13:40 +0000 | [diff] [blame] | 26 | # CHECK-NEXT: missing-file{{.*}} No such file or directory |
| 27 | # CHECK: note: command had no output on stdout or stderr |
Daniel Dunbar | 591838d | 2016-06-02 23:49:42 +0000 | [diff] [blame] | 28 | # CHECK-NEXT: error: command failed with exit status: 1 |