|
89 | 89 | #
|
90 | 90 | # Test without any options
|
91 | 91 | #
|
92 |
| -test.run(chdir='work1', |
| 92 | +test.run(chdir='work1', |
93 | 93 | arguments = '.',
|
94 | 94 | stdout=expected_stdout,
|
95 | 95 | stderr='')
|
96 | 96 | test.must_exist(['work1', 'f1.out'])
|
97 | 97 | test.must_exist(['work1', 'f2.out'])
|
98 | 98 |
|
99 |
| -test.run(chdir='work1', |
| 99 | +test.run(chdir='work1', |
100 | 100 | arguments = '-c .')
|
101 | 101 | test.must_not_exist(['work1', 'f1.out'])
|
102 | 102 | test.must_not_exist(['work1', 'f2.out'])
|
103 | 103 |
|
104 | 104 | #
|
105 | 105 | # Test with -j2
|
106 | 106 | #
|
107 |
| -test.run(chdir='work1', |
| 107 | +test.run(chdir='work1', |
108 | 108 | arguments = '-j2 .',
|
109 | 109 | stdout=expected_stdout,
|
110 | 110 | stderr='')
|
111 | 111 | test.must_exist(['work1', 'f1.out'])
|
112 | 112 | test.must_exist(['work1', 'f2.out'])
|
113 | 113 |
|
114 |
| -test.run(chdir='work1', |
| 114 | +test.run(chdir='work1', |
115 | 115 | arguments = '-j2 -c .')
|
116 | 116 | test.must_not_exist(['work1', 'f1.out'])
|
117 | 117 | test.must_not_exist(['work1', 'f2.out'])
|
|
120 | 120 | #
|
121 | 121 | # Test with --stack-size
|
122 | 122 | #
|
123 |
| -test.run(chdir='work1', |
| 123 | +test.run(chdir='work1', |
124 | 124 | arguments = '--stack-size=128 .',
|
125 | 125 | stdout=expected_stdout,
|
126 | 126 | stderr='')
|
127 | 127 | test.must_exist(['work1', 'f1.out'])
|
128 | 128 | test.must_exist(['work1', 'f2.out'])
|
129 | 129 |
|
130 |
| -test.run(chdir='work1', |
| 130 | +test.run(chdir='work1', |
131 | 131 | arguments = '--stack-size=128 -c .')
|
132 | 132 | test.must_not_exist(['work1', 'f1.out'])
|
133 | 133 | test.must_not_exist(['work1', 'f2.out'])
|
134 | 134 |
|
135 | 135 | #
|
136 | 136 | # Test with SetOption('stack_size', 128)
|
137 | 137 | #
|
138 |
| -test.run(chdir='work2', |
| 138 | +test.run(chdir='work2', |
139 | 139 | arguments = '.',
|
140 | 140 | stdout=expected_stdout,
|
141 | 141 | stderr='')
|
142 | 142 | test.must_exist(['work2', 'f1.out'])
|
143 | 143 | test.must_exist(['work2', 'f2.out'])
|
144 | 144 |
|
145 |
| -test.run(chdir='work2', |
| 145 | +test.run(chdir='work2', |
146 | 146 | arguments = '--stack-size=128 -c .')
|
147 | 147 | test.must_not_exist(['work2', 'f1.out'])
|
148 | 148 | test.must_not_exist(['work2', 'f2.out'])
|
|
151 | 151 | #
|
152 | 152 | # Test with -j2 --stack-size=128
|
153 | 153 | #
|
154 |
| - test.run(chdir='work1', |
| 154 | + test.run(chdir='work1', |
155 | 155 | arguments = '-j2 --stack-size=128 .',
|
156 | 156 | stdout=expected_stdout,
|
157 | 157 | stderr='')
|
158 | 158 | test.must_exist(['work1', 'f1.out'])
|
159 | 159 | test.must_exist(['work1', 'f2.out'])
|
160 | 160 |
|
161 |
| - test.run(chdir='work1', |
| 161 | + test.run(chdir='work1', |
162 | 162 | arguments = '-j2 --stack-size=128 -c .')
|
163 | 163 | test.must_not_exist(['work1', 'f1.out'])
|
164 | 164 | test.must_not_exist(['work1', 'f2.out'])
|
165 | 165 |
|
166 | 166 | #
|
167 | 167 | # Test with -j2 --stack-size=16
|
168 | 168 | #
|
169 |
| - test.run(chdir='work1', |
| 169 | + test.run(chdir='work1', |
170 | 170 | arguments = '-j2 --stack-size=16 .',
|
171 | 171 | match=TestSCons.match_re,
|
172 | 172 | stdout=re_expected_stdout,
|
173 | 173 | stderr="""
|
174 | 174 | scons: warning: Setting stack size failed:
|
175 | 175 | size not valid: 16384 bytes
|
176 | 176 | File .*
|
| 177 | +
|
| 178 | +scons: warning: Setting stack size failed: |
| 179 | + size not valid: 16384 bytes |
| 180 | +File .* |
177 | 181 | """)
|
178 | 182 | test.must_exist(['work1', 'f1.out'])
|
179 | 183 | test.must_exist(['work1', 'f2.out'])
|
180 | 184 |
|
181 |
| - test.run(chdir='work1', |
| 185 | + test.run(chdir='work1', |
182 | 186 | arguments = '-j2 --stack-size=16 -c .',
|
183 | 187 | match=TestSCons.match_re,
|
184 | 188 | stderr="""
|
185 | 189 | scons: warning: Setting stack size failed:
|
186 | 190 | size not valid: 16384 bytes
|
187 | 191 | File .*
|
| 192 | +
|
| 193 | +scons: warning: Setting stack size failed: |
| 194 | + size not valid: 16384 bytes |
| 195 | +File .* |
188 | 196 | """)
|
189 | 197 | test.must_not_exist(['work1', 'f1.out'])
|
190 | 198 | test.must_not_exist(['work1', 'f2.out'])
|
191 | 199 |
|
192 | 200 | #
|
193 | 201 | # Test with -j2 SetOption('stack_size', 128)
|
194 | 202 | #
|
195 |
| - test.run(chdir='work2', |
| 203 | + test.run(chdir='work2', |
196 | 204 | arguments = '-j2 .',
|
197 | 205 | stdout=expected_stdout,
|
198 | 206 | stderr='')
|
199 | 207 | test.must_exist(['work2', 'f1.out'])
|
200 | 208 | test.must_exist(['work2', 'f2.out'])
|
201 | 209 |
|
202 |
| - test.run(chdir='work2', |
| 210 | + test.run(chdir='work2', |
203 | 211 | arguments = '-j2 -c .')
|
204 | 212 | test.must_not_exist(['work2', 'f1.out'])
|
205 | 213 | test.must_not_exist(['work2', 'f2.out'])
|
206 | 214 |
|
207 | 215 | #
|
208 | 216 | # Test with -j2 --stack-size=128 --warn=no-stack-size
|
209 | 217 | #
|
210 |
| - test.run(chdir='work1', |
| 218 | + test.run(chdir='work1', |
211 | 219 | arguments = '-j2 --stack-size=128 --warn=no-stack-size .',
|
212 | 220 | stdout=expected_stdout,
|
213 | 221 | stderr='')
|
214 | 222 | test.must_exist(['work1', 'f1.out'])
|
215 | 223 | test.must_exist(['work1', 'f2.out'])
|
216 | 224 |
|
217 |
| - test.run(chdir='work1', |
| 225 | + test.run(chdir='work1', |
218 | 226 | arguments = '-j2 --stack-size=128 --warn=no-stack-size -c .')
|
219 | 227 | test.must_not_exist(['work1', 'f1.out'])
|
220 | 228 | test.must_not_exist(['work1', 'f2.out'])
|
221 | 229 |
|
222 | 230 | #
|
223 | 231 | # Test with -j2 --stack-size=16 --warn=no-stack-size
|
224 | 232 | #
|
225 |
| - test.run(chdir='work1', |
| 233 | + test.run(chdir='work1', |
226 | 234 | arguments = '-j2 --stack-size=16 --warn=no-stack-size .',
|
227 | 235 | stdout=expected_stdout,
|
228 | 236 | stderr='')
|
229 | 237 | test.must_exist(['work1', 'f1.out'])
|
230 | 238 | test.must_exist(['work1', 'f2.out'])
|
231 | 239 |
|
232 |
| - test.run(chdir='work1', |
| 240 | + test.run(chdir='work1', |
233 | 241 | arguments = '-j2 --stack-size=16 --warn=no-stack-size -c .')
|
234 | 242 | test.must_not_exist(['work1', 'f1.out'])
|
235 | 243 | test.must_not_exist(['work1', 'f2.out'])
|
236 | 244 |
|
237 | 245 | #
|
238 |
| - # Test with -j2 --warn=no-stack-size SetOption('stack_size', 128) |
| 246 | + # Test with -j2 --warn=no-stack-size SetOption('stack_size', 128) |
239 | 247 | #
|
240 |
| - test.run(chdir='work2', |
| 248 | + test.run(chdir='work2', |
241 | 249 | arguments = '-j2 --warn=no-stack-size .',
|
242 | 250 | stdout=expected_stdout,
|
243 | 251 | stderr='')
|
244 | 252 | test.must_exist(['work2', 'f1.out'])
|
245 | 253 | test.must_exist(['work2', 'f2.out'])
|
246 | 254 |
|
247 |
| - test.run(chdir='work2', |
| 255 | + test.run(chdir='work2', |
248 | 256 | arguments = '-j2 --warn=no-stack-size -c .')
|
249 | 257 | test.must_not_exist(['work2', 'f1.out'])
|
250 | 258 | test.must_not_exist(['work2', 'f2.out'])
|
|
254 | 262 | #
|
255 | 263 | # Test with -j2 --stack-size=128
|
256 | 264 | #
|
257 |
| - test.run(chdir='work1', |
| 265 | + test.run(chdir='work1', |
258 | 266 | arguments = '-j2 --stack-size=128 .',
|
259 | 267 | match=TestSCons.match_re,
|
260 | 268 | stdout=re_expected_stdout,
|
261 | 269 | stderr=expect_unsupported)
|
262 | 270 | test.must_exist(['work1', 'f1.out'])
|
263 | 271 | test.must_exist(['work1', 'f2.out'])
|
264 | 272 |
|
265 |
| - test.run(chdir='work1', |
| 273 | + test.run(chdir='work1', |
266 | 274 | arguments = '-j2 --stack-size=128 -c .',
|
267 | 275 | match=TestSCons.match_re,
|
268 | 276 | stderr=expect_unsupported)
|
|
272 | 280 | #
|
273 | 281 | # Test with -j2 --stack-size=16
|
274 | 282 | #
|
275 |
| - test.run(chdir='work1', |
| 283 | + test.run(chdir='work1', |
276 | 284 | arguments = '-j2 --stack-size=16 .',
|
277 | 285 | match=TestSCons.match_re,
|
278 | 286 | stdout=re_expected_stdout,
|
279 | 287 | stderr=expect_unsupported)
|
280 | 288 | test.must_exist(['work1', 'f1.out'])
|
281 | 289 | test.must_exist(['work1', 'f2.out'])
|
282 | 290 |
|
283 |
| - test.run(chdir='work1', |
| 291 | + test.run(chdir='work1', |
284 | 292 | arguments = '-j2 --stack-size=16 -c .',
|
285 | 293 | match=TestSCons.match_re,
|
286 | 294 | stderr=expect_unsupported)
|
|
290 | 298 | #
|
291 | 299 | # Test with -j2 SetOption('stack_size', 128)
|
292 | 300 | #
|
293 |
| - test.run(chdir='work2', |
| 301 | + test.run(chdir='work2', |
294 | 302 | arguments = '-j2 .',
|
295 | 303 | match=TestSCons.match_re,
|
296 | 304 | stdout=re_expected_stdout,
|
297 | 305 | stderr=expect_unsupported)
|
298 | 306 | test.must_exist(['work2', 'f1.out'])
|
299 | 307 | test.must_exist(['work2', 'f2.out'])
|
300 | 308 |
|
301 |
| - test.run(chdir='work2', |
| 309 | + test.run(chdir='work2', |
302 | 310 | arguments = '-j2 -c .',
|
303 | 311 | match=TestSCons.match_re,
|
304 | 312 | stderr=expect_unsupported)
|
|
308 | 316 | #
|
309 | 317 | # Test with -j2 --stack-size=128 --warn=no-stack-size
|
310 | 318 | #
|
311 |
| - test.run(chdir='work1', |
| 319 | + test.run(chdir='work1', |
312 | 320 | arguments = '-j2 --stack-size=128 --warn=no-stack-size .',
|
313 | 321 | stdout=expected_stdout,
|
314 | 322 | stderr='')
|
315 | 323 | test.must_exist(['work1', 'f1.out'])
|
316 | 324 | test.must_exist(['work1', 'f2.out'])
|
317 | 325 |
|
318 |
| - test.run(chdir='work1', |
| 326 | + test.run(chdir='work1', |
319 | 327 | arguments = '-j2 --stack-size=128 --warn=no-stack-size -c .')
|
320 | 328 | test.must_not_exist(['work1', 'f1.out'])
|
321 | 329 | test.must_not_exist(['work1', 'f2.out'])
|
322 | 330 |
|
323 | 331 | #
|
324 | 332 | # Test with -j2 --stack-size=16 --warn=no-stack-size
|
325 | 333 | #
|
326 |
| - test.run(chdir='work1', |
| 334 | + test.run(chdir='work1', |
327 | 335 | arguments = '-j2 --stack-size=16 --warn=no-stack-size .',
|
328 | 336 | stdout=expected_stdout,
|
329 | 337 | stderr='')
|
330 | 338 | test.must_exist(['work1', 'f1.out'])
|
331 | 339 | test.must_exist(['work1', 'f2.out'])
|
332 | 340 |
|
333 |
| - test.run(chdir='work1', |
| 341 | + test.run(chdir='work1', |
334 | 342 | arguments = '-j2 --stack-size=16 --warn=no-stack-size -c .')
|
335 | 343 | test.must_not_exist(['work1', 'f1.out'])
|
336 | 344 | test.must_not_exist(['work1', 'f2.out'])
|
337 | 345 |
|
338 | 346 | #
|
339 |
| - # Test with -j2 --warn=no-stack-size SetOption('stack_size', 128) |
| 347 | + # Test with -j2 --warn=no-stack-size SetOption('stack_size', 128) |
340 | 348 | #
|
341 |
| - test.run(chdir='work2', |
| 349 | + test.run(chdir='work2', |
342 | 350 | arguments = '-j2 --warn=no-stack-size .',
|
343 | 351 | stdout=expected_stdout,
|
344 | 352 | stderr='')
|
345 | 353 | test.must_exist(['work2', 'f1.out'])
|
346 | 354 | test.must_exist(['work2', 'f2.out'])
|
347 | 355 |
|
348 |
| - test.run(chdir='work2', |
| 356 | + test.run(chdir='work2', |
349 | 357 | arguments = '-j2 --warn=no-stack-size -c .')
|
350 | 358 | test.must_not_exist(['work2', 'f1.out'])
|
351 | 359 | test.must_not_exist(['work2', 'f2.out'])
|
|
0 commit comments