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 |
Reid Kleckner | 125c74b | 2017-07-28 16:24:18 +0000 | [diff] [blame^] | 4 | # FIXME: Temporarily dump test output so we can debug failing tests on |
| 5 | # buildbots. |
| 6 | # RUN: cat %t.out |
Daniel Dunbar | 1934108 | 2016-06-07 16:13:40 +0000 | [diff] [blame] | 7 | # RUN: FileCheck --input-file %t.out %s |
Daniel Dunbar | 38d3798 | 2013-01-31 22:15:20 +0000 | [diff] [blame] | 8 | # |
| 9 | # END. |
| 10 | |
| 11 | # CHECK: -- Testing: |
| 12 | |
| 13 | # CHECK: FAIL: shtest-shell :: error-0.txt |
| 14 | # CHECK: *** TEST 'shtest-shell :: error-0.txt' FAILED *** |
Daniel Dunbar | 591838d | 2016-06-02 23:49:42 +0000 | [diff] [blame] | 15 | # CHECK: $ "not-a-real-command" |
| 16 | # CHECK: # command stderr: |
Daniel Dunbar | 38d3798 | 2013-01-31 22:15:20 +0000 | [diff] [blame] | 17 | # CHECK: 'not-a-real-command': command not found |
Daniel Dunbar | 591838d | 2016-06-02 23:49:42 +0000 | [diff] [blame] | 18 | # CHECK: error: command failed with exit status: 127 |
Daniel Dunbar | 38d3798 | 2013-01-31 22:15:20 +0000 | [diff] [blame] | 19 | # CHECK: *** |
| 20 | |
| 21 | # FIXME: The output here sucks. |
| 22 | # |
| 23 | # CHECK: FAIL: shtest-shell :: error-1.txt |
| 24 | # CHECK: *** TEST 'shtest-shell :: error-1.txt' FAILED *** |
| 25 | # CHECK: shell parser error on: 'echo "missing quote' |
| 26 | # CHECK: *** |
| 27 | |
| 28 | # CHECK: FAIL: shtest-shell :: error-2.txt |
| 29 | # CHECK: *** TEST 'shtest-shell :: error-2.txt' FAILED *** |
| 30 | # CHECK: Unsupported redirect: |
| 31 | # CHECK: *** |
| 32 | |
| 33 | # CHECK: PASS: shtest-shell :: redirects.txt |
| 34 | # CHECK: PASS: shtest-shell :: sequencing-0.txt |
| 35 | # CHECK: XFAIL: shtest-shell :: sequencing-1.txt |
| 36 | # CHECK: Failing Tests (3) |