Skip to content

Commit ba0dc90

Browse files
authored
Merge pull request #5128 from modocache/sr-2855-driver-show-incremental-tests
2 parents 19a504d + f2953de commit ba0dc90

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/// main <==> other
2+
3+
// RUN: rm -rf %t && cp -r %S/Inputs/mutual/ %t
4+
// RUN: touch -t 201401240005 %t/*
5+
6+
// RUN: cd %t && %swiftc_driver -c -driver-use-frontend-path %S/Inputs/update-dependencies.py -output-file-map %t/output.json -incremental -driver-always-rebuild-dependents ./main.swift ./other.swift -module-name main -j1 -v -driver-show-incremental 2>&1 | %FileCheck -check-prefix=CHECK-FIRST %s
7+
// CHECK-FIRST: Queuing main.swift (initial)
8+
9+
// RUN: cd %t && %swiftc_driver -c -driver-use-frontend-path %S/Inputs/update-dependencies.py -output-file-map %t/output.json -incremental -driver-always-rebuild-dependents ./main.swift ./other.swift -module-name main -j1 -v -driver-show-incremental 2>&1 | %FileCheck -check-prefix=CHECK-SECOND %s
10+
// CHECK-SECOND-NOT: Queuing
11+
12+
// RUN: touch -t 201401240006 %t/other.swift
13+
// RUN: cd %t && %swiftc_driver -c -driver-use-frontend-path %S/Inputs/update-dependencies.py -output-file-map %t/output.json -incremental -driver-always-rebuild-dependents ./main.swift ./other.swift -module-name main -j1 -v -driver-show-incremental 2>&1 | %FileCheck -check-prefix=CHECK-THIRD %s
14+
// CHECK-THIRD: Queuing other.swift (initial)
15+
// CHECK-THIRD: Queuing main.swift because of the initial set:
16+
// CHECK-THIRD-NEXT: other.swift provides top-level name 'a'
17+

0 commit comments

Comments
 (0)