mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-27 15:28:53 -04:00

- This only applies to scripts executed by the _internal_ shell script interpreter. - This patch reworks the log to look more like a shell transcript, and be less verbose (but in the interest of calling attention to the important parts). Here is an example of the new format, for commands with/without failures and with/without output: ``` $ true $ echo hi hi $ false note: command had no output on stdout or stderr error: command failed with exit status 1 ``` llvm-svn: 271610
34 lines
986 B
Python
34 lines
986 B
Python
# Check the internal shell handling component of the ShTest format.
|
|
#
|
|
# RUN: not %{lit} -j 1 -v %{inputs}/shtest-shell > %t.out
|
|
# RUN: FileCheck < %t.out %s
|
|
#
|
|
# END.
|
|
|
|
# CHECK: -- Testing:
|
|
|
|
# CHECK: FAIL: shtest-shell :: error-0.txt
|
|
# CHECK: *** TEST 'shtest-shell :: error-0.txt' FAILED ***
|
|
# CHECK: $ "not-a-real-command"
|
|
# CHECK: # command stderr:
|
|
# CHECK: 'not-a-real-command': command not found
|
|
# CHECK: error: command failed with exit status: 127
|
|
# 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)
|