|
58 | 58 | /// Test plugin CAS. |
59 | 59 | // RUN: %target-swift-frontend -scan-dependencies -module-name Test -O \ |
60 | 60 | // RUN: -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-import -parse-stdlib \ |
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 \ |
| 61 | +// RUN: %t/a.swift -o %t/plugin_deps.json -cache-compile-job -cas-path %t/cas-plugin -cas-plugin-path %plugin(CASPluginTest) \ |
62 | 62 | // RUN: -cas-plugin-option first-prefix=myfirst- |
63 | 63 |
|
64 | 64 | // RUN: %{python} %S/Inputs/GenerateExplicitModuleMap.py %t/plugin_deps.json > %t/plugin_map.json |
65 | 65 | // RUN: llvm-cas --cas %t/cas --make-blob --data %t/plugin_map.json > %t/map.casid |
66 | 66 |
|
67 | 67 | // RUN: %{python} %S/Inputs/BuildCommandExtractor.py %t/plugin_deps.json Test > %t/plugin_MyApp.cmd |
68 | | -// RUN: %cache-tool -cas-path %t/cas-plugin -cas-plugin-path %llvm_libs_dir/libCASPluginTest%llvm_plugin_ext \ |
| 68 | +// RUN: %cache-tool -cas-path %t/cas-plugin -cas-plugin-path %plugin(CASPluginTest) \ |
69 | 69 | // RUN: -cas-plugin-option first-prefix=myfirst- -cache-tool-action print-output-keys -- \ |
70 | 70 | // RUN: %target-swift-frontend -cache-compile-job %t/a.swift -emit-module -c -emit-dependencies \ |
71 | 71 | // RUN: -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-import -parse-stdlib \ |
|
77 | 77 | // RUN: echo "\"-parse-stdlib\"" >> %t/MyApp-plugin.cmd |
78 | 78 |
|
79 | 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 |
| 80 | +// RUN: %cache-tool -cas-path %t/cas-plugin -cas-plugin-path %plugin(CASPluginTest) -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 %plugin(CASPluginTest) > %t8.casid |
| 82 | +// RUN: cp %plugin(CASPluginTest) %t/libCASPluginTest%llvm_plugin_ext |
83 | 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 | 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 | 85 | // RUN: diff %t8.casid %t9.casid |
|
0 commit comments