Daniel Dunbar | 38d3798 | 2013-01-31 22:15:20 +0000 | [diff] [blame] | 1 | # Check the internal shell handling component of the ShTest format. |
| 2 | # |
| 3 | # RUN: not %{lit} -j 1 -v %{inputs}/shtest-shell > %t.out |
Daniel Dunbar | 1934108 | 2016-06-07 16:13:40 +0000 | [diff] [blame^] | 4 | # RUN: FileCheck --input-file %t.out %s |
Daniel Dunbar | 38d3798 | 2013-01-31 22:15:20 +0000 | [diff] [blame] | 5 | # |
| 6 | # END. |
| 7 | |
| 8 | # CHECK: -- Testing: |
| 9 | |
| 10 | # CHECK: FAIL: shtest-shell :: error-0.txt |
| 11 | # CHECK: *** TEST 'shtest-shell :: error-0.txt' FAILED *** |
Daniel Dunbar | 591838d | 2016-06-02 23:49:42 +0000 | [diff] [blame] | 12 | # CHECK: $ "not-a-real-command" |
| 13 | # CHECK: # command stderr: |
Daniel Dunbar | 38d3798 | 2013-01-31 22:15:20 +0000 | [diff] [blame] | 14 | # CHECK: 'not-a-real-command': command not found |
Daniel Dunbar | 591838d | 2016-06-02 23:49:42 +0000 | [diff] [blame] | 15 | # CHECK: error: command failed with exit status: 127 |
Daniel Dunbar | 38d3798 | 2013-01-31 22:15:20 +0000 | [diff] [blame] | 16 | # CHECK: *** |
| 17 | |
| 18 | # FIXME: The output here sucks. |
| 19 | # |
| 20 | # CHECK: FAIL: shtest-shell :: error-1.txt |
| 21 | # CHECK: *** TEST 'shtest-shell :: error-1.txt' FAILED *** |
| 22 | # CHECK: shell parser error on: 'echo "missing quote' |
| 23 | # CHECK: *** |
| 24 | |
| 25 | # CHECK: FAIL: shtest-shell :: error-2.txt |
| 26 | # CHECK: *** TEST 'shtest-shell :: error-2.txt' FAILED *** |
| 27 | # CHECK: Unsupported redirect: |
| 28 | # CHECK: *** |
| 29 | |
| 30 | # CHECK: PASS: shtest-shell :: redirects.txt |
| 31 | # CHECK: PASS: shtest-shell :: sequencing-0.txt |
| 32 | # CHECK: XFAIL: shtest-shell :: sequencing-1.txt |
| 33 | # CHECK: Failing Tests (3) |