|
50 | 50 | // RUN: diff %t5.casid %t6.casid
|
51 | 51 | // RUN: not diff %t5.casid %t7.casid
|
52 | 52 |
|
53 |
| -/// Check switching CAS plugin path. |
54 |
| -// RUN: %cache-tool -cas-path %t/cas -cas-plugin-path %llvm_libs_dir/libCASPluginTest%llvm_plugin_ext -cache-tool-action print-base-key -- \ |
55 |
| -// RUN: %target-swift-frontend -cache-compile-job %t/a.swift -c @%t/MyApp.cmd -cas-path %t/cas -cas-plugin-path %llvm_libs_dir/libCASPluginTest%llvm_plugin_ext > %t8.casid |
56 |
| -// RUN: ln -s %llvm_libs_dir/libCASPluginTest%llvm_plugin_ext %t/libCASPluginTest%llvm_plugin_ext |
57 |
| -// RUN: %cache-tool -cas-path %t/cas -cas-plugin-path %t/libCASPluginTest%llvm_plugin_ext -cache-tool-action print-base-key -- \ |
58 |
| -// RUN: %target-swift-frontend -cache-compile-job %t/a.swift -c @%t/MyApp.cmd -cas-path %t/cas -cas-plugin-path %t/libCASPluginTest%llvm_plugin_ext > %t9.casid |
59 |
| -// RUN: diff %t8.casid %t9.casid |
60 |
| - |
61 | 53 | /// Test output keys.
|
62 | 54 | // RUN: %cache-tool -cas-path %t/cas -cache-tool-action print-output-keys -- \
|
63 | 55 | // RUN: %target-swift-frontend -cache-compile-job %t/a.swift -emit-module -c -emit-dependencies \
|
|
66 | 58 | /// Test plugin CAS.
|
67 | 59 | // RUN: %target-swift-frontend -scan-dependencies -module-name Test -O \
|
68 | 60 | // RUN: -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-import -parse-stdlib \
|
69 |
| -// RUN: %t/a.swift -o %t/plugin_deps.json -cache-compile-job -cas-path %t/cas -cas-plugin-path %llvm_libs_dir/libCASPluginTest%llvm_plugin_ext \ |
| 61 | +// RUN: %t/a.swift -o %t/plugin_deps.json -cache-compile-job -cas-path %t/cas-plugin -cas-plugin-path %llvm_libs_dir/libCASPluginTest%llvm_plugin_ext \ |
70 | 62 | // RUN: -cas-plugin-option first-prefix=myfirst-
|
71 | 63 |
|
72 | 64 | // RUN: %{python} %S/Inputs/GenerateExplicitModuleMap.py %t/plugin_deps.json > %t/plugin_map.json
|
73 | 65 | // RUN: llvm-cas --cas %t/cas --make-blob --data %t/plugin_map.json > %t/map.casid
|
74 | 66 |
|
75 | 67 | // RUN: %{python} %S/Inputs/BuildCommandExtractor.py %t/plugin_deps.json Test > %t/plugin_MyApp.cmd
|
76 |
| -// RUN: %cache-tool -cas-path %t/cas -cas-plugin-path %llvm_libs_dir/libCASPluginTest%llvm_plugin_ext \ |
| 68 | +// RUN: %cache-tool -cas-path %t/cas-plugin -cas-plugin-path %llvm_libs_dir/libCASPluginTest%llvm_plugin_ext \ |
77 | 69 | // RUN: -cas-plugin-option first-prefix=myfirst- -cache-tool-action print-output-keys -- \
|
78 | 70 | // RUN: %target-swift-frontend -cache-compile-job %t/a.swift -emit-module -c -emit-dependencies \
|
79 | 71 | // RUN: -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-import -parse-stdlib \
|
80 | 72 | // RUN: -emit-tbd -emit-tbd-path %t/test.tbd -o %t/test.o @%t/plugin_MyApp.cmd | %FileCheck %s --check-prefix=CHECK --check-prefix=PLUGIN
|
81 | 73 |
|
| 74 | +// RUN: %{python} %S/Inputs/BuildCommandExtractor.py %t/plugin_deps.json Test > %t/MyApp-plugin.cmd |
| 75 | +// RUN: echo "\"-disable-implicit-string-processing-module-import\"" >> %t/MyApp-plugin.cmd |
| 76 | +// RUN: echo "\"-disable-implicit-concurrency-module-import\"" >> %t/MyApp-plugin.cmd |
| 77 | +// RUN: echo "\"-parse-stdlib\"" >> %t/MyApp-plugin.cmd |
| 78 | + |
| 79 | +/// Check switching CAS plugin path. |
| 80 | +// RUN: %cache-tool -cas-path %t/cas-plugin -cas-plugin-path %llvm_libs_dir/libCASPluginTest%llvm_plugin_ext -cas-plugin-option first-prefix=myfirst- -cache-tool-action print-base-key -- \ |
| 81 | +// RUN: %target-swift-frontend -cache-compile-job %t/a.swift -c @%t/MyApp-plugin.cmd -cas-path %t/cas-plugin -cas-plugin-path %llvm_libs_dir/libCASPluginTest%llvm_plugin_ext > %t8.casid |
| 82 | +// RUN: ln -s %llvm_libs_dir/libCASPluginTest%llvm_plugin_ext %t/libCASPluginTest%llvm_plugin_ext |
| 83 | +// RUN: %cache-tool -cas-path %t/cas-plugin -cas-plugin-path %t/libCASPluginTest%llvm_plugin_ext -cas-plugin-option first-prefix=myfirst- -cache-tool-action print-base-key -- \ |
| 84 | +// RUN: %target-swift-frontend -cache-compile-job %t/a.swift -c @%t/MyApp-plugin.cmd -cas-path %t/cas-plugin -cas-plugin-path %t/libCASPluginTest%llvm_plugin_ext > %t9.casid |
| 85 | +// RUN: diff %t8.casid %t9.casid |
| 86 | + |
| 87 | + |
82 | 88 | // CHECK: "Input": "{{.*}}{{/|\\}}a.swift"
|
83 | 89 | // CHECK-NEXT: "CacheKey"
|
84 | 90 | // PLUGIN-SAME: myfirst-llvmcas://
|
|
0 commit comments