blob: 33b5ab669eaa2cfd244c3b4c08c27d97fbc57e9e [file] [log] [blame]
Daniel Dunbar38d37982013-01-31 22:15:20 +00001# Check the internal shell handling component of the ShTest format.
2#
3# RUN: not %{lit} -j 1 -v %{inputs}/shtest-shell > %t.out
Reid Kleckner125c74b2017-07-28 16:24:18 +00004# FIXME: Temporarily dump test output so we can debug failing tests on
5# buildbots.
6# RUN: cat %t.out
Daniel Dunbar19341082016-06-07 16:13:40 +00007# RUN: FileCheck --input-file %t.out %s
Daniel Dunbar38d37982013-01-31 22:15:20 +00008#
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 Dunbar591838d2016-06-02 23:49:42 +000015# CHECK: $ "not-a-real-command"
16# CHECK: # command stderr:
Daniel Dunbar38d37982013-01-31 22:15:20 +000017# CHECK: 'not-a-real-command': command not found
Daniel Dunbar591838d2016-06-02 23:49:42 +000018# CHECK: error: command failed with exit status: 127
Daniel Dunbar38d37982013-01-31 22:15:20 +000019# 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)