diff options
author | Daniel Dunbar <daniel@zuster.org> | 2013-01-31 22:15:20 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2013-01-31 22:15:20 +0000 |
commit | ac1b2e5550d395f8a150830d9513ee62d678597b (patch) | |
tree | 6ca317cd50fd520986d32b2bc56ee9ca9470e30c /utils/lit/tests/shtest-shell.py | |
parent | a80ae9c71c361e0569af66b9885a15c3877c6c2d (diff) | |
download | external_llvm-ac1b2e5550d395f8a150830d9513ee62d678597b.zip external_llvm-ac1b2e5550d395f8a150830d9513ee62d678597b.tar.gz external_llvm-ac1b2e5550d395f8a150830d9513ee62d678597b.tar.bz2 |
[lit] Add a test for internal shell execution behaviors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174102 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/lit/tests/shtest-shell.py')
-rw-r--r-- | utils/lit/tests/shtest-shell.py | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/utils/lit/tests/shtest-shell.py b/utils/lit/tests/shtest-shell.py new file mode 100644 index 0000000..32479e1 --- /dev/null +++ b/utils/lit/tests/shtest-shell.py @@ -0,0 +1,33 @@ +# 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: Command 0: "not-a-real-command" +# CHECK: Command 0 Result: 127 +# CHECK: Command 0 Stderr: +# CHECK: 'not-a-real-command': command not found +# 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) |