~pali/+junk/llvm-toolchain-3.7

« back to all changes in this revision

Viewing changes to utils/lit/tests/shtest-shell.py

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2015-07-15 17:51:08 UTC
  • Revision ID: package-import@ubuntu.com-20150715175108-l8mynwovkx4zx697
Tags: upstream-3.7~+rc2
ImportĀ upstreamĀ versionĀ 3.7~+rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Check the internal shell handling component of the ShTest format.
 
2
#
 
3
# RUN: not %{lit} -j 1 -v %{inputs}/shtest-shell > %t.out
 
4
# RUN: FileCheck < %t.out %s
 
5
#
 
6
# END.
 
7
 
 
8
# CHECK: -- Testing:
 
9
 
 
10
# CHECK: FAIL: shtest-shell :: error-0.txt
 
11
# CHECK: *** TEST 'shtest-shell :: error-0.txt' FAILED ***
 
12
# CHECK: Command 0: "not-a-real-command"
 
13
# CHECK: Command 0 Result: 127
 
14
# CHECK: Command 0 Stderr:
 
15
# CHECK: 'not-a-real-command': command not found
 
16
# CHECK: ***
 
17
 
 
18
# FIXME: The output here sucks.
 
19
#
 
20
# CHECK: FAIL: shtest-shell :: error-1.txt
 
21
# CHECK: *** TEST 'shtest-shell :: error-1.txt' FAILED ***
 
22
# CHECK: shell parser error on: 'echo "missing quote'
 
23
# CHECK: ***
 
24
 
 
25
# CHECK: FAIL: shtest-shell :: error-2.txt
 
26
# CHECK: *** TEST 'shtest-shell :: error-2.txt' FAILED ***
 
27
# CHECK: Unsupported redirect:
 
28
# CHECK: ***
 
29
 
 
30
# CHECK: PASS: shtest-shell :: redirects.txt
 
31
# CHECK: PASS: shtest-shell :: sequencing-0.txt
 
32
# CHECK: XFAIL: shtest-shell :: sequencing-1.txt
 
33
# CHECK: Failing Tests (3)