|
2 | 2 |
|
3 | 3 | /// Run the command first time, expect cache miss.
|
4 | 4 | /// FIXME: This command doesn't use `-cas-fs` so it is not a good cache entry. It is currently allowed so it is easier to write tests.
|
5 |
| -// RUN: %target-swift-frontend -cache-compile-job -cache-remarks %s -emit-module -emit-module-path %t/Test.swiftmodule -c -emit-dependencies \ |
| 5 | +// RUN: %target-swift-frontend -cache-compile-job -Rcache-compile-job %s -emit-module -emit-module-path %t/Test.swiftmodule -c -emit-dependencies \ |
6 | 6 | // RUN: -module-name Test -o %t/test.o -cas-path %t/cas -allow-unstable-cache-key-for-testing 2>&1 | %FileCheck --check-prefix=CACHE-MISS %s
|
7 | 7 |
|
8 | 8 | /// Expect cache hit for second time.
|
9 |
| -// RUN: %target-swift-frontend -cache-compile-job -cache-remarks %s -emit-module -emit-module-path %t/Test.swiftmodule -c -emit-dependencies \ |
| 9 | +// RUN: %target-swift-frontend -cache-compile-job -Rcache-compile-job %s -emit-module -emit-module-path %t/Test.swiftmodule -c -emit-dependencies \ |
10 | 10 | // RUN: -module-name Test -o %t/test.o -cas-path %t/cas -allow-unstable-cache-key-for-testing 2>&1 | %FileCheck --check-prefix=CACHE-HIT %s
|
11 | 11 |
|
12 | 12 | /// Expect cache hit a subset of outputs.
|
13 |
| -// RUN: %target-swift-frontend -cache-compile-job -cache-remarks %s -emit-module -emit-module-path %t/Test.swiftmodule -c \ |
| 13 | +// RUN: %target-swift-frontend -cache-compile-job -Rcache-compile-job %s -emit-module -emit-module-path %t/Test.swiftmodule -c \ |
14 | 14 | // RUN: -module-name Test -o %t/test.o -cas-path %t/cas -allow-unstable-cache-key-for-testing 2>&1 | %FileCheck --check-prefix=CACHE-HIT %s
|
15 | 15 |
|
16 | 16 | /// Skip cache
|
17 |
| -// RUN: %target-swift-frontend -cache-compile-job -cache-remarks -cache-disable-replay %s -emit-module -emit-module-path %t/Test.swiftmodule -c \ |
| 17 | +// RUN: %target-swift-frontend -cache-compile-job -Rcache-compile-job -cache-disable-replay %s -emit-module -emit-module-path %t/Test.swiftmodule -c \ |
18 | 18 | // RUN: -module-name Test -o %t/test.o -cas-path %t/cas -allow-unstable-cache-key-for-testing 2>&1 | %FileCheck --allow-empty --check-prefix=SKIP-CACHE %s
|
19 | 19 |
|
20 | 20 | // CACHE-MISS: remark: cache miss output file
|
21 |
| -// CACHE-HIT: remark: replay output file |
| 21 | +// CACHE-HIT: remark: replay output file '<cached-diagnostics>': key 'llvmcas://{{.*}}' |
| 22 | +// CACHE-HIT: remark: replay output file '{{.*}}{{/|\\}}test.o': key 'llvmcas://{{.*}}' |
| 23 | +// CACHE-HIT: remark: replay output file '{{.*}}{{/|\\}}Test.swiftmodule': key 'llvmcas://{{.*}}' |
22 | 24 | // SKIP-CACHE-NOT: remark:
|
23 | 25 |
|
24 | 26 | func testFunc() {}
|
0 commit comments