|
12 | 12 | // RUN: cp %S/Inputs/type-fingerprint/{main,a}.swift %t
|
13 | 13 | // RUN: cp %S/Inputs/type-fingerprint/ofm.json %t
|
14 | 14 | // RUN: cp %S/Inputs/type-fingerprint/b0.swift %t/b.swift
|
| 15 | + |
| 16 | +// Seeing weird failure on CI, so set the mod times |
| 17 | +// RUN: touch -t 200101010101 %t/*.swift |
| 18 | + |
15 | 19 | // RUN: cd %t && %swiftc_driver -disable-type-fingerprints -enable-batch-mode -j2 -incremental -driver-show-incremental ./main.swift ./a.swift ./b.swift -module-name main -output-file-map ofm.json >&output1
|
16 | 20 |
|
17 |
| -// RUN: cp %t/b.swiftdeps %t/b1.swiftdeps |
| 21 | +// only-run-for-debugging: cp %t/b.swiftdeps %t/b1.swiftdeps |
18 | 22 |
|
19 | 23 | // Change one type, but uses of all types get recompiled
|
20 | 24 |
|
21 | 25 | // RUN: cp %S/Inputs/type-fingerprint/b1.swift %t/b.swift
|
| 26 | + |
| 27 | +// Seeing weird failure on CI, so ensure that b.swift is newer |
| 28 | +// RUN: touch -t 200201010101 %t/* |
| 29 | +// RUN: touch -t 200101010101 %t/*.swift |
| 30 | +// RUN: touch -t 200301010101 %t/b.swift |
| 31 | + |
22 | 32 | // RUN: cd %t && %swiftc_driver -disable-type-fingerprints -enable-batch-mode -j2 -incremental -driver-show-incremental ./main.swift ./a.swift ./b.swift -module-name main -output-file-map ofm.json >&output2
|
23 | 33 |
|
24 |
| -// RUN: cp %t/b.swiftdeps %t/b2.swiftdeps |
| 34 | +// Save for debugging: |
| 35 | +// only-run-for-debugging: cp %t/b.swiftdeps %t/b2.swiftdeps |
25 | 36 |
|
26 | 37 | // RUN: %FileCheck -check-prefix=CHECK-MAINAB-RECOMPILED %s < %t/output2
|
27 | 38 |
|
|
40 | 51 | // RUN: cp %S/Inputs/type-fingerprint/{main,a}.swift %t
|
41 | 52 | // RUN: cp %S/Inputs/type-fingerprint/ofm.json %t
|
42 | 53 | // RUN: cp %S/Inputs/type-fingerprint/b0.swift %t/b.swift
|
| 54 | + |
| 55 | +// Seeing weird failure on CI, so set the mod times |
| 56 | +// RUN: touch -t 200101010101 %t/*.swift |
| 57 | + |
43 | 58 | // RUN: cd %t && %swiftc_driver -enable-batch-mode -j2 -incremental -driver-show-incremental ./main.swift ./a.swift ./b.swift -module-name main -output-file-map ofm.json >&output3
|
44 | 59 |
|
45 |
| -// RUN: cp %t/b.swiftdeps %t/b3.swiftdeps |
| 60 | +// only-run-for-debugging: cp %t/b.swiftdeps %t/b3.swiftdeps |
46 | 61 |
|
47 | 62 | // Change one type, only uses of that type get recompiled
|
48 | 63 |
|
49 | 64 | // RUN: cp %S/Inputs/type-fingerprint/b1.swift %t/b.swift
|
| 65 | + |
| 66 | +// Seeing weird failure on CI, so ensure that b.swift is newer |
| 67 | +// RUN: touch -t 200201010101 %t/* |
| 68 | +// RUN: touch -t 200101010101 %t/*.swift |
| 69 | +// RUN: touch -t 200301010101 %t/b.swift |
| 70 | + |
50 | 71 | // RUN: cd %t && %swiftc_driver -enable-batch-mode -j2 -incremental -driver-show-incremental ./main.swift ./a.swift ./b.swift -module-name main -output-file-map ofm.json >&output4
|
51 | 72 |
|
52 |
| -// RUN: cp %t/b.swiftdeps %t/b4.swiftdeps |
| 73 | +// only-run-for-debugging: cp %t/b.swiftdeps %t/b4.swiftdeps |
53 | 74 |
|
54 | 75 | // RUN: %FileCheck -check-prefix=CHECK-MAINB-RECOMPILED %s < %t/output4
|
55 | 76 |
|
|
0 commit comments