|
25 | 25 | // RUN: %FileCheck -check-prefix=CHECK-NO-BUILD-REC %s < %t/output0
|
26 | 26 | // CHECK-NO-BUILD-REC: Incremental compilation could not read build record.
|
27 | 27 |
|
| 28 | + |
28 | 29 | // RUN: ls %t | %FileCheck -check-prefix=CHECK-NO-RANGE-OUTPUTS %s
|
29 | 30 | // CHECK-NO-RANGE-OUTPUTS-NOT: .swiftranges
|
30 | 31 | // CHECK-NO-RANGE-OUTPUTS-NOT: .compiledsource
|
|
58 | 59 | // RUN: %FileCheck -check-prefix=CHECK-HAS-NO-BATCHES %s < %t/output1
|
59 | 60 | // CHECK-HAS-NO-BATCHES-NOT: Batchable: {compile:
|
60 | 61 |
|
61 |
| -// RUN: %FileCheck -check-prefix=CHECK-COMPARE-MOOT-3 %s < %t/output1 |
62 |
| -// CHECK-COMPARE-MOOT-3: *** Comparing moot: would fall back and run 3, total: 3 *** |
| 62 | +// RUN: %FileCheck -check-prefix=CHECK-COMPARE-DISABLED %s < %t/output1 |
| 63 | +// CHECK-COMPARE-DISABLED: *** Comparing incremental strategies is moot: incremental compilation disabled *** |
63 | 64 |
|
64 | 65 | // RUN: %t/main | tee run1 | grep Any > /dev/null && rm %t/main
|
65 | 66 |
|
|
73 | 74 | // RUN: %FileCheck -check-prefix=CHECK-HAS-NO-BATCHES %s < %t/output2
|
74 | 75 |
|
75 | 76 | // RUN: %FileCheck -check-prefix=CHECK-COMPARE-DISABLED %s < %t/output2
|
76 |
| -// CHECK-COMPARE-DISABLED: *** Comparing moot; incremental compilation disabled |
77 | 77 |
|
78 | 78 | // RUN: %FileCheck -check-prefix=CHECK-TURN-ON-RANGES %s < %t/output2
|
79 | 79 |
|
|
228 | 228 | // RUN: %FileCheck -check-prefix=CHECK-INITIALLY-ABSENT-MAIN %s < %t/output6
|
229 | 229 |
|
230 | 230 | // RUN: %FileCheck -check-prefix=CHECK-COMPARE-MOOT-3 %s < %t/output6
|
231 |
| - |
| 231 | +// CHECK-COMPARE-MOOT-3: *** Comparing incremental strategies is moot: would fall back and run 3, total: 3 *** |
232 | 232 |
|
233 | 233 | // CHECK-INITIALLY-ABSENT-MAIN-NOT: Queueing{{.*}}<= main.swift
|
234 | 234 |
|
|
260 | 260 | // RUN: %FileCheck -check-prefix=CHECK-HAS-NO-BATCHES %s < %t/output7
|
261 | 261 |
|
262 | 262 | // RUN: %FileCheck -check-prefix=CHECK-COMPARE-MOOT-4-4 %s < %t/output7
|
263 |
| -// CHECK-COMPARE-MOOT-4-4: *** Comparing moot: would fall back and run 4, total: 4 *** |
| 263 | +// CHECK-COMPARE-MOOT-4-4: *** Comparing incremental strategies is moot: would fall back and run 4, total: 4 *** |
264 | 264 |
|
265 | 265 | // RUN: cmp fileB.swift fileB.compiledsource
|
266 | 266 |
|
|
312 | 312 | // RUN: cp %t/fileB5.swift %t/fileB.swift
|
313 | 313 | // RUN: cd %t && not %swiftc_driver -driver-compare-incremental-schemes -enable-source-range-dependencies -output-file-map %t/output.json -incremental -enable-batch-mode ./main.swift ./fileA.swift ./fileB.swift -module-name main -j2 -driver-show-job-lifecycle -driver-show-incremental >& %t/output9
|
314 | 314 |
|
| 315 | +// RUN: %FileCheck -check-prefix=CHECK-COMPARE-MOOT-3 %s < %t/output9 |
| 316 | +// RUN: %FileCheck -check-prefix=CHECK-HAS-NO-BATCHES %s < %t/output9 |
| 317 | + |
| 318 | + |
315 | 319 | // =============================================================================
|
316 | 320 | // And a fix:
|
317 | 321 | // =============================================================================
|
318 | 322 |
|
319 | 323 | // RUN: cp %t/fileB4.swift %t/fileB.swift
|
320 | 324 | // RUN: cd %t && %swiftc_driver -driver-compare-incremental-schemes -enable-source-range-dependencies -output-file-map %t/output.json -incremental -enable-batch-mode ./main.swift ./fileA.swift ./fileB.swift -module-name main -j2 -driver-show-job-lifecycle -driver-show-incremental >& %t/output10
|
321 | 325 |
|
322 |
| -// RUN: %t/main | tee run8 | grep SignedInteger > /dev/null && rm %t/main |
| 326 | +// RUN: %FileCheck -check-prefix=CHECK-COMPARE-MOOT-3 %s < %t/output10 |
| 327 | +// RUN: %FileCheck -check-prefix=CHECK-HAS-NO-BATCHES %s < %t/output10 |
| 328 | + |
| 329 | + |
| 330 | + |
| 331 | +// RUN: %t/main | tee run10 | grep SignedInteger > /dev/null && rm %t/main |
0 commit comments