comparison utils/lit/tests/shtest-shell.py @ 134:3a76565eade5 LLVM5.0.1

update 5.0.1
author mir3636
date Sat, 17 Feb 2018 09:57:20 +0900
parents 803732b1fca8
children c2174574ed3a
comparison
equal deleted inserted replaced
133:c60214abe0e8 134:3a76565eade5
8 # 8 #
9 # END. 9 # END.
10 10
11 # CHECK: -- Testing: 11 # CHECK: -- Testing:
12 12
13
14 # CHECK: FAIL: shtest-shell :: diff-error-0.txt
15 # CHECK: *** TEST 'shtest-shell :: diff-error-0.txt' FAILED ***
16 # CHECK: $ "diff" "diff-error-0.txt" "diff-error-0.txt"
17 # CHECK: # command stderr:
18 # CHECK: Unsupported: 'diff' cannot be part of a pipeline
19 # CHECK: error: command failed with exit status: 127
20 # CHECK: ***
21
22 # CHECK: FAIL: shtest-shell :: diff-error-1.txt
23 # CHECK: *** TEST 'shtest-shell :: diff-error-1.txt' FAILED ***
24 # CHECK: $ "diff" "-B" "temp1.txt" "temp2.txt"
25 # CHECK: # command stderr:
26 # CHECK: Unsupported: 'diff': option -B not recognized
27 # CHECK: error: command failed with exit status: 127
28 # CHECK: ***
29
30 # CHECK: FAIL: shtest-shell :: diff-error-2.txt
31 # CHECK: *** TEST 'shtest-shell :: diff-error-2.txt' FAILED ***
32 # CHECK: $ "diff" "temp.txt"
33 # CHECK: # command stderr:
34 # CHECK: Error: missing or extra operand
35 # CHECK: error: command failed with exit status: 127
36 # CHECK: ***
37
38 # CHECK: FAIL: shtest-shell :: diff-error-3.txt
39 # CHECK: *** TEST 'shtest-shell :: diff-error-3.txt' FAILED ***
40 # CHECK: $ "diff" "temp.txt" "temp1.txt"
41 # CHECK: # command stderr:
42 # CHECK: Error: 'diff' command failed
43 # CHECK: error: command failed with exit status: 1
44 # CHECK: ***
45
46 # CHECK: FAIL: shtest-shell :: diff-error-4.txt
47 # CHECK: *** TEST 'shtest-shell :: diff-error-4.txt' FAILED ***
48 # CHECK: Exit Code: 1
49 # CHECK: # command output:
50 # CHECK: diff-error-4.txt.tmp
51 # CHECK: diff-error-4.txt.tmp1
52 # CHECK: *** 1 ****
53 # CHECK: ! hello-first
54 # CHECK: --- 1 ----
55 # CHECK: ! hello-second
56 # CHECK: ***
57
58 # CHECK: FAIL: shtest-shell :: diff-error-5.txt
59 # CHECK: *** TEST 'shtest-shell :: diff-error-5.txt' FAILED ***
60 # CHECK: $ "diff"
61 # CHECK: # command stderr:
62 # CHECK: Error: missing or extra operand
63 # CHECK: error: command failed with exit status: 127
64 # CHECK: ***
65
66 # CHECK: FAIL: shtest-shell :: diff-error-6.txt
67 # CHECK: *** TEST 'shtest-shell :: diff-error-6.txt' FAILED ***
68 # CHECK: $ "diff"
69 # CHECK: # command stderr:
70 # CHECK: Error: missing or extra operand
71 # CHECK: error: command failed with exit status: 127
72 # CHECK: ***
73
74 # CHECK: FAIL: shtest-shell :: diff-r-error-0.txt
75 # CHECK: *** TEST 'shtest-shell :: diff-r-error-0.txt' FAILED ***
76 # CEHCK: $ "diff" "-r"
77 # CHECK: # command output:
78 # CHECK: Only in {{.*}}dir1: dir1unique
79 # CHECK: Only in {{.*}}dir2: dir2unique
80 # CHECK: error: command failed with exit status: 1
81
82 # CHECK: FAIL: shtest-shell :: diff-r-error-1.txt
83 # CHECK: *** TEST 'shtest-shell :: diff-r-error-1.txt' FAILED ***
84 # CEHCK: $ "diff" "-r"
85 # CHECK: # command output:
86 # CHECK: *** {{.*}}dir1{{.*}}subdir{{.*}}f01
87 # CHECK: --- {{.*}}dir2{{.*}}subdir{{.*}}f01
88 # CHECK: 12345
89 # CHECK: 00000
90 # CHECK: error: command failed with exit status: 1
91
92 # CHECK: FAIL: shtest-shell :: diff-r-error-2.txt
93 # CHECK: *** TEST 'shtest-shell :: diff-r-error-2.txt' FAILED ***
94 # CEHCK: $ "diff" "-r"
95 # CHECK: # command output:
96 # CHECK: Only in {{.*}}dir2: extrafile
97 # CHECK: error: command failed with exit status: 1
98
99 # CHECK: FAIL: shtest-shell :: diff-r-error-3.txt
100 # CHECK: *** TEST 'shtest-shell :: diff-r-error-3.txt' FAILED ***
101 # CEHCK: $ "diff" "-r"
102 # CHECK: # command output:
103 # CHECK: Only in {{.*}}dir1: extra_subdir
104 # CHECK: error: command failed with exit status: 1
105
106 # CHECK: FAIL: shtest-shell :: diff-r-error-4.txt
107 # CHECK: *** TEST 'shtest-shell :: diff-r-error-4.txt' FAILED ***
108 # CEHCK: $ "diff" "-r"
109 # CHECK: # command output:
110 # CHECK: File {{.*}}dir1{{.*}}extra_subdir is a directory while file {{.*}}dir2{{.*}}extra_subdir is a regular file
111 # CHECK: error: command failed with exit status: 1
112
113 # CHECK: FAIL: shtest-shell :: diff-r-error-5.txt
114 # CHECK: *** TEST 'shtest-shell :: diff-r-error-5.txt' FAILED ***
115 # CEHCK: $ "diff" "-r"
116 # CHECK: # command output:
117 # CHECK: Only in {{.*}}dir1: extra_subdir
118 # CHECK: error: command failed with exit status: 1
119
120 # CHECK: FAIL: shtest-shell :: diff-r-error-6.txt
121 # CHECK: *** TEST 'shtest-shell :: diff-r-error-6.txt' FAILED ***
122 # CEHCK: $ "diff" "-r"
123 # CHECK: # command output:
124 # CHECK: File {{.*}}dir1{{.*}}extra_file is a regular empty file while file {{.*}}dir2{{.*}}extra_file is a directory
125 # CHECK: error: command failed with exit status: 1
126
127 # CHECK: PASS: shtest-shell :: diff-r.txt
128
13 # CHECK: FAIL: shtest-shell :: error-0.txt 129 # CHECK: FAIL: shtest-shell :: error-0.txt
14 # CHECK: *** TEST 'shtest-shell :: error-0.txt' FAILED *** 130 # CHECK: *** TEST 'shtest-shell :: error-0.txt' FAILED ***
15 # CHECK: $ "not-a-real-command" 131 # CHECK: $ "not-a-real-command"
16 # CHECK: # command stderr: 132 # CHECK: # command stderr:
17 # CHECK: 'not-a-real-command': command not found 133 # CHECK: 'not-a-real-command': command not found
28 # CHECK: FAIL: shtest-shell :: error-2.txt 144 # CHECK: FAIL: shtest-shell :: error-2.txt
29 # CHECK: *** TEST 'shtest-shell :: error-2.txt' FAILED *** 145 # CHECK: *** TEST 'shtest-shell :: error-2.txt' FAILED ***
30 # CHECK: Unsupported redirect: 146 # CHECK: Unsupported redirect:
31 # CHECK: *** 147 # CHECK: ***
32 148
149 # CHECK: FAIL: shtest-shell :: mkdir-error-0.txt
150 # CHECK: *** TEST 'shtest-shell :: mkdir-error-0.txt' FAILED ***
151 # CHECK: $ "mkdir" "-p" "temp"
152 # CHECK: # command stderr:
153 # CHECK: Unsupported: 'mkdir' cannot be part of a pipeline
154 # CHECK: error: command failed with exit status: 127
155 # CHECK: ***
156
157 # CHECK: FAIL: shtest-shell :: mkdir-error-1.txt
158 # CHECK: *** TEST 'shtest-shell :: mkdir-error-1.txt' FAILED ***
159 # CHECK: $ "mkdir" "-p" "-m" "777" "temp"
160 # CHECK: # command stderr:
161 # CHECK: Unsupported: 'mkdir': option -m not recognized
162 # CHECK: error: command failed with exit status: 127
163 # CHECK: ***
164
165 # CHECK: FAIL: shtest-shell :: mkdir-error-2.txt
166 # CHECK: *** TEST 'shtest-shell :: mkdir-error-2.txt' FAILED ***
167 # CHECK: $ "mkdir" "-p"
168 # CHECK: # command stderr:
169 # CHECK: Error: 'mkdir' is missing an operand
170 # CHECK: error: command failed with exit status: 127
171 # CHECK: ***
172
33 # CHECK: PASS: shtest-shell :: redirects.txt 173 # CHECK: PASS: shtest-shell :: redirects.txt
174
175 # CHECK: FAIL: shtest-shell :: rm-error-0.txt
176 # CHECK: *** TEST 'shtest-shell :: rm-error-0.txt' FAILED ***
177 # CHECK: $ "rm" "-rf" "temp"
178 # CHECK: # command stderr:
179 # CHECK: Unsupported: 'rm' cannot be part of a pipeline
180 # CHECK: error: command failed with exit status: 127
181 # CHECK: ***
182
183 # CHECK: FAIL: shtest-shell :: rm-error-1.txt
184 # CHECK: *** TEST 'shtest-shell :: rm-error-1.txt' FAILED ***
185 # CHECK: $ "rm" "-f" "-v" "temp"
186 # CHECK: # command stderr:
187 # CHECK: Unsupported: 'rm': option -v not recognized
188 # CHECK: error: command failed with exit status: 127
189 # CHECK: ***
190
191 # CHECK: FAIL: shtest-shell :: rm-error-2.txt
192 # CHECK: *** TEST 'shtest-shell :: rm-error-2.txt' FAILED ***
193 # CHECK: $ "rm" "-r" "hello"
194 # CHECK: # command stderr:
195 # CHECK: Error: 'rm' command failed
196 # CHECK: error: command failed with exit status: 1
197 # CHECK: ***
198
199 # CHECK: FAIL: shtest-shell :: rm-error-3.txt
200 # CHECK: *** TEST 'shtest-shell :: rm-error-3.txt' FAILED ***
201 # CHECK: Exit Code: 1
202 # CHECK: ***
203
34 # CHECK: PASS: shtest-shell :: sequencing-0.txt 204 # CHECK: PASS: shtest-shell :: sequencing-0.txt
35 # CHECK: XFAIL: shtest-shell :: sequencing-1.txt 205 # CHECK: XFAIL: shtest-shell :: sequencing-1.txt
36 # CHECK: Failing Tests (3) 206 # CHECK: PASS: shtest-shell :: valid-shell.txt
207 # CHECK: Failing Tests (24)