diff options
Diffstat (limited to 'utils/lit/tests/shtest-shell.py')
| -rw-r--r-- | utils/lit/tests/shtest-shell.py | 82 | 
1 files changed, 80 insertions, 2 deletions
diff --git a/utils/lit/tests/shtest-shell.py b/utils/lit/tests/shtest-shell.py index 723842fce040..ed0bdf35fe11 100644 --- a/utils/lit/tests/shtest-shell.py +++ b/utils/lit/tests/shtest-shell.py @@ -10,6 +10,29 @@  # CHECK: -- Testing: +# CHECK: FAIL: shtest-shell :: cat-error-0.txt +# CHECK: *** TEST 'shtest-shell :: cat-error-0.txt' FAILED *** +# CHECK: $ "cat" "-b" "temp1.txt" +# CHECK: # command stderr: +# CHECK: Unsupported: 'cat':  option -b not recognized +# CHECK: error: command failed with exit status: 1 +# CHECK: *** + +# CHECK: FAIL: shtest-shell :: cat-error-1.txt +# CHECK: *** TEST 'shtest-shell :: cat-error-1.txt' FAILED *** +# CHECK: $ "cat" "temp1.txt" +# CHECK: # command stderr: +# CHECK: [Errno 2] No such file or directory: 'temp1.txt' +# CHECK: error: command failed with exit status: 1 +# CHECK: *** + +# CHECK: FAIL: shtest-shell :: colon-error.txt +# CHECK: *** TEST 'shtest-shell :: colon-error.txt' FAILED *** +# CHECK: $ ":" +# CHECK: # command stderr: +# CHECK: Unsupported: ':' cannot be part of a pipeline +# CHECK: error: command failed with exit status: 127 +# CHECK: ***  # CHECK: FAIL: shtest-shell :: diff-error-0.txt  # CHECK: *** TEST 'shtest-shell :: diff-error-0.txt' FAILED *** @@ -71,6 +94,61 @@  # CHECK: error: command failed with exit status: 127  # CHECK: *** +# CHECK: FAIL: shtest-shell :: diff-r-error-0.txt +# CHECK: *** TEST 'shtest-shell :: diff-r-error-0.txt' FAILED *** +# CEHCK: $ "diff" "-r"  +# CHECK: # command output: +# CHECK: Only in {{.*}}dir1: dir1unique +# CHECK: Only in {{.*}}dir2: dir2unique +# CHECK: error: command failed with exit status: 1 + +# CHECK: FAIL: shtest-shell :: diff-r-error-1.txt +# CHECK: *** TEST 'shtest-shell :: diff-r-error-1.txt' FAILED *** +# CEHCK: $ "diff" "-r"  +# CHECK: # command output: +# CHECK: *** {{.*}}dir1{{.*}}subdir{{.*}}f01 +# CHECK: --- {{.*}}dir2{{.*}}subdir{{.*}}f01 +# CHECK: 12345 +# CHECK: 00000 +# CHECK: error: command failed with exit status: 1 + +# CHECK: FAIL: shtest-shell :: diff-r-error-2.txt +# CHECK: *** TEST 'shtest-shell :: diff-r-error-2.txt' FAILED *** +# CEHCK: $ "diff" "-r"  +# CHECK: # command output: +# CHECK: Only in {{.*}}dir2: extrafile +# CHECK: error: command failed with exit status: 1 + +# CHECK: FAIL: shtest-shell :: diff-r-error-3.txt +# CHECK: *** TEST 'shtest-shell :: diff-r-error-3.txt' FAILED *** +# CEHCK: $ "diff" "-r"  +# CHECK: # command output: +# CHECK: Only in {{.*}}dir1: extra_subdir +# CHECK: error: command failed with exit status: 1 + +# CHECK: FAIL: shtest-shell :: diff-r-error-4.txt +# CHECK: *** TEST 'shtest-shell :: diff-r-error-4.txt' FAILED *** +# CEHCK: $ "diff" "-r"  +# CHECK: # command output: +# CHECK: File {{.*}}dir1{{.*}}extra_subdir is a directory while file {{.*}}dir2{{.*}}extra_subdir is a regular file +# CHECK: error: command failed with exit status: 1 + +# CHECK: FAIL: shtest-shell :: diff-r-error-5.txt +# CHECK: *** TEST 'shtest-shell :: diff-r-error-5.txt' FAILED *** +# CEHCK: $ "diff" "-r"  +# CHECK: # command output: +# CHECK: Only in {{.*}}dir1: extra_subdir +# CHECK: error: command failed with exit status: 1 + +# CHECK: FAIL: shtest-shell :: diff-r-error-6.txt +# CHECK: *** TEST 'shtest-shell :: diff-r-error-6.txt' FAILED *** +# CEHCK: $ "diff" "-r"  +# CHECK: # command output: +# CHECK: File {{.*}}dir1{{.*}}extra_file is a regular empty file while file {{.*}}dir2{{.*}}extra_file is a directory +# CHECK: error: command failed with exit status: 1 + +# CHECK: PASS: shtest-shell :: diff-r.txt +  # CHECK: FAIL: shtest-shell :: error-0.txt  # CHECK: *** TEST 'shtest-shell :: error-0.txt' FAILED ***  # CHECK: $ "not-a-real-command" @@ -83,7 +161,7 @@  #  # CHECK: FAIL: shtest-shell :: error-1.txt  # CHECK: *** TEST 'shtest-shell :: error-1.txt' FAILED *** -# CHECK: shell parser error on: 'echo "missing quote' +# CHECK: shell parser error on: ': \'RUN: at line 3\'; echo "missing quote'  # CHECK: ***  # CHECK: FAIL: shtest-shell :: error-2.txt @@ -149,4 +227,4 @@  # CHECK: PASS: shtest-shell :: sequencing-0.txt  # CHECK: XFAIL: shtest-shell :: sequencing-1.txt  # CHECK: PASS: shtest-shell :: valid-shell.txt -# CHECK: Failing Tests (17) +# CHECK: Failing Tests (27)  | 
