diff options
Diffstat (limited to 'llvm/utils/lit/tests/shtest-shell.py')
-rw-r--r-- | llvm/utils/lit/tests/shtest-shell.py | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/llvm/utils/lit/tests/shtest-shell.py b/llvm/utils/lit/tests/shtest-shell.py index 443cc10ef3b..5bf38ebd08f 100644 --- a/llvm/utils/lit/tests/shtest-shell.py +++ b/llvm/utils/lit/tests/shtest-shell.py @@ -34,6 +34,22 @@ # CHECK: error: command failed with exit status: 127 # CHECK: *** +# CHECK: PASS: shtest-shell :: dev-null.txt + +# CHECK: FAIL: shtest-shell :: diff-b.txt +# CHECK: *** TEST 'shtest-shell :: diff-b.txt' FAILED *** +# CHECK: $ "diff" "-b" "{{[^"]*}}.0" "{{[^"]*}}.1" +# CHECK: # command output: +# CHECK: 1,2 +# CHECK-NEXT: {{^ }}f o o +# CHECK-NEXT: ! b a r +# CHECK-NEXT: --- +# CHECK-NEXT: {{^ }}f o o +# CHECK-NEXT: ! bar +# CHECK-EMPTY: +# CHECK: error: command failed with exit status: 1 +# CHECK: *** + # CHECK: FAIL: shtest-shell :: diff-encodings.txt # CHECK: *** TEST 'shtest-shell :: diff-encodings.txt' FAILED *** @@ -460,6 +476,22 @@ # CHECK: *** +# CHECK: FAIL: shtest-shell :: diff-w.txt +# CHECK: *** TEST 'shtest-shell :: diff-w.txt' FAILED *** +# CHECK: $ "diff" "-w" "{{[^"]*}}.0" "{{[^"]*}}.1" +# CHECK: # command output: +# CHECK: 1,3 +# CHECK-NEXT: {{^ }}foo +# CHECK-NEXT: {{^ }}bar +# CHECK-NEXT: ! baz +# CHECK-NEXT: --- +# CHECK-NEXT: {{^ }}foo +# CHECK-NEXT: {{^ }}bar +# CHECK-NEXT: ! bat +# CHECK-EMPTY: +# CHECK: error: command failed with exit status: 1 +# CHECK: *** + # CHECK: FAIL: shtest-shell :: error-0.txt # CHECK: *** TEST 'shtest-shell :: error-0.txt' FAILED *** # CHECK: $ "not-a-real-command" @@ -551,4 +583,4 @@ # CHECK: *** # CHECK: PASS: shtest-shell :: valid-shell.txt -# CHECK: Failing Tests (33) +# CHECK: Failing Tests (35) |