|
6 | 6 |
|
7 | 7 | // Initially compile all inputs, crash will fail.
|
8 | 8 |
|
9 |
| -// RUN: cd %t && not %swiftc_driver -c -driver-use-frontend-path "%{python.unquoted};%S/Inputs/update-dependencies-bad.py;%swift-dependency-tool" -output-file-map %t/output.json -incremental -driver-always-rebuild-dependents ./main.swift ./crash.swift ./other.swift -module-name main -j1 -v 2>&1 | %FileCheck %s |
| 9 | +// RUN: cd %t && not %swiftc_driver -c -disable-incremental-imports -driver-use-frontend-path "%{python.unquoted};%S/Inputs/update-dependencies-bad.py;%swift-dependency-tool" -output-file-map %t/output.json -incremental -driver-always-rebuild-dependents ./main.swift ./crash.swift ./other.swift -module-name main -j1 -v 2>&1 | %FileCheck %s |
10 | 10 | // CHECK-NOT: warning
|
11 | 11 | // CHECK: Handled main.swift
|
12 | 12 | // CHECK: Handled crash.swift
|
|
15 | 15 | // Put crash.swift first to assure it gets scheduled first.
|
16 | 16 | // The others get queued, but not dispatched because crash crashes.
|
17 | 17 |
|
18 |
| -// RUN: cd %t && not %swiftc_driver -c -driver-use-frontend-path "%{python.unquoted};%S/Inputs/update-dependencies-bad.py;%swift-dependency-tool" -output-file-map %t/output.json -incremental -driver-always-rebuild-dependents ./crash.swift ./main.swift ./other.swift -module-name main -j1 -v 2>&1 | %FileCheck -check-prefix=CHECK-BAD-ONLY %s |
| 18 | +// RUN: cd %t && not %swiftc_driver -c -disable-incremental-imports -driver-use-frontend-path "%{python.unquoted};%S/Inputs/update-dependencies-bad.py;%swift-dependency-tool" -output-file-map %t/output.json -incremental -driver-always-rebuild-dependents ./crash.swift ./main.swift ./other.swift -module-name main -j1 -v 2>&1 | %FileCheck -check-prefix=CHECK-BAD-ONLY %s |
19 | 19 |
|
20 | 20 | // CHECK-BAD-ONLY-NOT: warning
|
21 | 21 | // CHECK-BAD-ONLY-NOT: Handled
|
|
24 | 24 |
|
25 | 25 | // Make crash succeed and all get compiled, exactly once.
|
26 | 26 |
|
27 |
| -// RUN: cd %t && %swiftc_driver -c -driver-use-frontend-path "%{python.unquoted};%S/Inputs/update-dependencies.py;%swift-dependency-tool" -output-file-map %t/output.json -incremental -driver-always-rebuild-dependents ./main.swift ./crash.swift ./other.swift -module-name main -j1 -v 2>&1 | %FileCheck -check-prefix=CHECK-OKAY %s |
| 27 | +// RUN: cd %t && %swiftc_driver -c -disable-incremental-imports -driver-use-frontend-path "%{python.unquoted};%S/Inputs/update-dependencies.py;%swift-dependency-tool" -output-file-map %t/output.json -incremental -driver-always-rebuild-dependents ./main.swift ./crash.swift ./other.swift -module-name main -j1 -v 2>&1 | %FileCheck -check-prefix=CHECK-OKAY %s |
28 | 28 | // CHECK-OKAY: Handled main.swift
|
29 | 29 | // CHECK-OKAY: Handled crash.swift
|
30 | 30 | // CHECK-OKAY: Handled other.swift
|
|
34 | 34 |
|
35 | 35 | // RUN: touch -t 201401240006 %t/crash.swift
|
36 | 36 | // RUN: rm %t/crash.swiftdeps
|
37 |
| -// RUN: cd %t && not %swiftc_driver -c -driver-use-frontend-path "%{python.unquoted};%S/Inputs/update-dependencies-bad.py;%swift-dependency-tool" -output-file-map %t/output.json -incremental -driver-always-rebuild-dependents ./main.swift ./crash.swift ./other.swift -module-name main -j1 -v 2>&1 | %FileCheck %s |
| 37 | +// RUN: cd %t && not %swiftc_driver -c -disable-incremental-imports -driver-use-frontend-path "%{python.unquoted};%S/Inputs/update-dependencies-bad.py;%swift-dependency-tool" -output-file-map %t/output.json -incremental -driver-always-rebuild-dependents ./main.swift ./crash.swift ./other.swift -module-name main -j1 -v 2>&1 | %FileCheck %s |
38 | 38 |
|
39 | 39 | // And repair crash:
|
40 | 40 |
|
41 | 41 | // RUN: touch -t 201401240005 %t/*
|
42 |
| -// RUN: cd %t && %swiftc_driver -c -driver-use-frontend-path "%{python.unquoted};%S/Inputs/update-dependencies.py;%swift-dependency-tool" -output-file-map %t/output.json -incremental -driver-always-rebuild-dependents ./main.swift ./crash.swift ./other.swift -module-name main -j1 -v 2>&1 | %FileCheck -check-prefix=CHECK-OKAY-2 %s |
| 42 | +// RUN: cd %t && %swiftc_driver -c -disable-incremental-imports -driver-use-frontend-path "%{python.unquoted};%S/Inputs/update-dependencies.py;%swift-dependency-tool" -output-file-map %t/output.json -incremental -driver-always-rebuild-dependents ./main.swift ./crash.swift ./other.swift -module-name main -j1 -v 2>&1 | %FileCheck -check-prefix=CHECK-OKAY-2 %s |
43 | 43 |
|
44 | 44 | // CHECK-OKAY-2-DAG: Handled crash.swift
|
45 | 45 | // CHECK-OKAY-2-DAG: Handled other.swift
|
|
51 | 51 |
|
52 | 52 | // RUN: touch -t 201401240006 %t/main.swift
|
53 | 53 | // RUN: rm %t/main.swiftdeps
|
54 |
| -// RUN: cd %t && not %swiftc_driver -c -driver-use-frontend-path "%{python.unquoted};%S/Inputs/update-dependencies-bad.py;%swift-dependency-tool" -output-file-map %t/output.json -incremental -driver-always-rebuild-dependents ./main.swift ./crash.swift ./other.swift -module-name main -j1 -v 2>&1 | %FileCheck -check-prefix=CHECK-NO-MAIN-SWIFTDEPS %s |
| 54 | +// RUN: cd %t && not %swiftc_driver -c -disable-incremental-imports -driver-use-frontend-path "%{python.unquoted};%S/Inputs/update-dependencies-bad.py;%swift-dependency-tool" -output-file-map %t/output.json -incremental -driver-always-rebuild-dependents ./main.swift ./crash.swift ./other.swift -module-name main -j1 -v 2>&1 | %FileCheck -check-prefix=CHECK-NO-MAIN-SWIFTDEPS %s |
55 | 55 |
|
56 | 56 | // CHECK-NO-MAIN-SWIFTDEPS-NOT: warning
|
57 | 57 | // CHECK-NO-MAIN-SWIFTDEPS: Handled main.swift
|
|
62 | 62 | // Touch all files earlier than last compiled date in the build record.
|
63 | 63 |
|
64 | 64 | // RUN: touch -t 201401240005 %t/*
|
65 |
| -// RUN: cd %t && %swiftc_driver -c -driver-use-frontend-path "%{python.unquoted};%S/Inputs/update-dependencies.py;%swift-dependency-tool" -output-file-map %t/output.json -incremental -driver-always-rebuild-dependents ./main.swift ./crash.swift ./other.swift -module-name main -j1 -v 2>&1 -driver-show-incremental | %FileCheck -check-prefix=CHECK-CURRENT-WITH-CRASH %s |
| 65 | +// RUN: cd %t && %swiftc_driver -c -disable-incremental-imports -driver-use-frontend-path "%{python.unquoted};%S/Inputs/update-dependencies.py;%swift-dependency-tool" -output-file-map %t/output.json -incremental -driver-always-rebuild-dependents ./main.swift ./crash.swift ./other.swift -module-name main -j1 -v 2>&1 -driver-show-incremental | %FileCheck -check-prefix=CHECK-CURRENT-WITH-CRASH %s |
66 | 66 |
|
67 | 67 | // CHECK-CURRENT-WITH-CRASH: Handled main.swift
|
68 | 68 | // CHECK-CURRENT-WITH-CRASH: Handled crash.swift
|
|
73 | 73 |
|
74 | 74 | // RUN: touch -t 201401240006 %t/other.swift
|
75 | 75 | // RUN: rm %t/other.swiftdeps
|
76 |
| -// RUN: cd %t && not %swiftc_driver -c -driver-use-frontend-path "%{python.unquoted};%S/Inputs/update-dependencies-bad.py;%swift-dependency-tool" -output-file-map %t/output.json -incremental -driver-always-rebuild-dependents ./main.swift ./crash.swift ./other.swift -module-name main -j1 -v 2>&1 | %FileCheck %s |
| 76 | +// RUN: cd %t && not %swiftc_driver -c -disable-incremental-imports -driver-use-frontend-path "%{python.unquoted};%S/Inputs/update-dependencies-bad.py;%swift-dependency-tool" -output-file-map %t/output.json -incremental -driver-always-rebuild-dependents ./main.swift ./crash.swift ./other.swift -module-name main -j1 -v 2>&1 | %FileCheck %s |
0 commit comments