Skip to content

Commit d4e265d

Browse files
author
David Ungar
committed
Test works, checks comparo
1 parent 0a0d22a commit d4e265d

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

test/Driver/Dependencies/range-lifecycle.swift

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
// RUN: %FileCheck -check-prefix=CHECK-NO-BUILD-REC %s < %t/output0
2626
// CHECK-NO-BUILD-REC: Incremental compilation could not read build record.
2727

28+
2829
// RUN: ls %t | %FileCheck -check-prefix=CHECK-NO-RANGE-OUTPUTS %s
2930
// CHECK-NO-RANGE-OUTPUTS-NOT: .swiftranges
3031
// CHECK-NO-RANGE-OUTPUTS-NOT: .compiledsource
@@ -58,8 +59,8 @@
5859
// RUN: %FileCheck -check-prefix=CHECK-HAS-NO-BATCHES %s < %t/output1
5960
// CHECK-HAS-NO-BATCHES-NOT: Batchable: {compile:
6061

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 ***
6364

6465
// RUN: %t/main | tee run1 | grep Any > /dev/null && rm %t/main
6566

@@ -73,7 +74,6 @@
7374
// RUN: %FileCheck -check-prefix=CHECK-HAS-NO-BATCHES %s < %t/output2
7475

7576
// RUN: %FileCheck -check-prefix=CHECK-COMPARE-DISABLED %s < %t/output2
76-
// CHECK-COMPARE-DISABLED: *** Comparing moot; incremental compilation disabled
7777

7878
// RUN: %FileCheck -check-prefix=CHECK-TURN-ON-RANGES %s < %t/output2
7979

@@ -228,7 +228,7 @@
228228
// RUN: %FileCheck -check-prefix=CHECK-INITIALLY-ABSENT-MAIN %s < %t/output6
229229

230230
// 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 ***
232232

233233
// CHECK-INITIALLY-ABSENT-MAIN-NOT: Queueing{{.*}}<= main.swift
234234

@@ -260,7 +260,7 @@
260260
// RUN: %FileCheck -check-prefix=CHECK-HAS-NO-BATCHES %s < %t/output7
261261

262262
// 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 ***
264264

265265
// RUN: cmp fileB.swift fileB.compiledsource
266266

@@ -312,11 +312,20 @@
312312
// RUN: cp %t/fileB5.swift %t/fileB.swift
313313
// 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
314314

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+
315319
// =============================================================================
316320
// And a fix:
317321
// =============================================================================
318322

319323
// RUN: cp %t/fileB4.swift %t/fileB.swift
320324
// 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
321325

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

Comments
 (0)