|
12 | 12 | /// FAIL: %target-swift-frontend -module-name test -emit-reference-dependencies-path %t/test.swiftdeps -c -o %t/test.o -primary-file %s -enable-deterministic-check -always-compile-output-files
|
13 | 13 |
|
14 | 14 | /// Explicit module build. Check building swiftmodule from interface file.
|
15 |
| -// RUN: %target-swift-frontend -scan-dependencies -module-name test -o %t/test.json %s -enable-deterministic-check 2>&1 | %FileCheck %s --check-prefix=DEPSCAN_OUTPUT |
| 15 | +// RUN: %target-swift-frontend -scan-dependencies -module-name test -o %t/test.json %s -enable-deterministic-check -load-dependency-scan-cache -dependency-scan-cache-path %t/deps-cache -serialize-dependency-scan-cache 2>&1 | %FileCheck %s --check-prefix=DEPSCAN_OUTPUT --check-prefix=DEPSCAN_CACHE_OUTPUT |
16 | 16 | /// TODO: Implicit module build use a different compiler instance so it doesn't support checking yet.
|
17 | 17 | // RUN: %target-swift-frontend -typecheck -emit-module-interface-path %t/test.swiftinterface %s -O -enable-deterministic-check 2>&1 | %FileCheck %s --check-prefix=INTERFACE_OUTPUT
|
18 | 18 | /// Hit cache and not emit the second time.
|
|
21 | 21 | /// Force swiftmodule generation.
|
22 | 22 | // RUN: %target-swift-frontend -compile-module-from-interface %t/test.swiftinterface -explicit-interface-module-build -o %t/test.swiftmodule -enable-deterministic-check -always-compile-output-files 2>&1 | %FileCheck --check-prefix=MODULE_OUTPUT %s
|
23 | 23 |
|
24 |
| -// RUN: %target-swift-frontend -scan-dependencies -module-name test %s -o %t/test.deps.json -enable-deterministic-check 2>&1 | %FileCheck %s --check-prefix=DEPS_JSON_OUTPUT |
25 |
| - |
26 | 24 | // RUN: %target-swift-frontend -emit-pcm -module-name UserClangModule -o %t/test.pcm %S/Inputs/dependencies/module.modulemap -enable-deterministic-check 2>&1 | %FileCheck %s --check-prefix=PCM_OUTPUT
|
27 | 25 |
|
28 | 26 | // DOCC_OUTPUT: remark: produced matching output file '{{.*}}{{/|\\}}test.docc'
|
|
33 | 31 | // DEPS_OUTPUT: remark: produced matching output file '{{.*}}{{/|\\}}test.d'
|
34 | 32 | // OBJECT_OUTPUT: remark: produced matching output file '{{.*}}{{/|\\}}test.o'
|
35 | 33 | // OBJECT_MISMATCH: error: output file '{{.*}}{{/|\\}}test.o' is missing from second compilation for deterministic check
|
| 34 | +// DEPSCAN_CACHE_OUTPUT: remark: produced matching output file '{{.*}}{{/|\\}}deps-cache' |
36 | 35 | // DEPSCAN_OUTPUT: remark: produced matching output file '{{.*}}{{/|\\}}test.json'
|
37 | 36 | // INTERFACE_OUTPUT: remark: produced matching output file '{{.*}}{{/|\\}}test.swiftinterface'
|
38 | 37 | // MODULE_MISMATCH: error: output file '{{.*}}{{/|\\}}test.swiftmodule' is missing from second compilation for deterministic check
|
39 |
| -// DEPS_JSON_OUTPUT: remark: produced matching output file '{{.*}}{{/|\\}}test.deps.json' |
40 | 38 | // PCM_OUTPUT: remark: produced matching output file '{{.*}}{{/|\\}}test.pcm'
|
41 | 39 |
|
42 | 40 | public var x = 1
|
|
0 commit comments