2013-01-31 23:15:20 +01:00
|
|
|
# Check the internal shell handling component of the ShTest format.
|
|
|
|
#
|
2017-07-26 17:10:50 +02:00
|
|
|
# PR33940
|
|
|
|
# XFAIL: windows
|
|
|
|
#
|
2013-01-31 23:15:20 +01:00
|
|
|
# RUN: not %{lit} -j 1 -v %{inputs}/shtest-shell > %t.out
|
2016-06-07 18:13:40 +02:00
|
|
|
# RUN: FileCheck --input-file %t.out %s
|
2013-01-31 23:15:20 +01:00
|
|
|
#
|
|
|
|
# END.
|
|
|
|
|
|
|
|
# CHECK: -- Testing:
|
|
|
|
|
|
|
|
# CHECK: FAIL: shtest-shell :: error-0.txt
|
|
|
|
# CHECK: *** TEST 'shtest-shell :: error-0.txt' FAILED ***
|
2016-06-03 01:49:42 +02:00
|
|
|
# CHECK: $ "not-a-real-command"
|
|
|
|
# CHECK: # command stderr:
|
2013-01-31 23:15:20 +01:00
|
|
|
# CHECK: 'not-a-real-command': command not found
|
2016-06-03 01:49:42 +02:00
|
|
|
# CHECK: error: command failed with exit status: 127
|
2013-01-31 23:15:20 +01:00
|
|
|
# CHECK: ***
|
|
|
|
|
|
|
|
# FIXME: The output here sucks.
|
|
|
|
#
|
|
|
|
# CHECK: FAIL: shtest-shell :: error-1.txt
|
|
|
|
# CHECK: *** TEST 'shtest-shell :: error-1.txt' FAILED ***
|
|
|
|
# CHECK: shell parser error on: 'echo "missing quote'
|
|
|
|
# CHECK: ***
|
|
|
|
|
|
|
|
# CHECK: FAIL: shtest-shell :: error-2.txt
|
|
|
|
# CHECK: *** TEST 'shtest-shell :: error-2.txt' FAILED ***
|
|
|
|
# CHECK: Unsupported redirect:
|
|
|
|
# CHECK: ***
|
|
|
|
|
|
|
|
# CHECK: PASS: shtest-shell :: redirects.txt
|
|
|
|
# CHECK: PASS: shtest-shell :: sequencing-0.txt
|
|
|
|
# CHECK: XFAIL: shtest-shell :: sequencing-1.txt
|
|
|
|
# CHECK: Failing Tests (3)
|