|
22 | 22 |
|
23 | 23 | /// Check few working cases. |
24 | 24 | // RUN: %cache-tool -cas-path %t/cas -cache-tool-action print-base-key -- \ |
25 | | -// RUN: %target-swift-frontend -cache-compile-job %t/a.swift -c @%t/MyApp.cmd > %t1.casid |
| 25 | +// RUN: %target-swift-frontend-plain -cache-compile-job %t/a.swift -c @%t/MyApp.cmd > %t1.casid |
26 | 26 | /// A different CAS doesn't affect base key. |
27 | 27 | // RUN: %cache-tool -cas-path %t/cas -cache-tool-action print-base-key -- \ |
28 | | -// RUN: %target-swift-frontend -cache-compile-job %t/a.swift -c @%t/MyApp.cmd -cas-path %t > %t2.casid |
| 28 | +// RUN: %target-swift-frontend-plain -cache-compile-job %t/a.swift -c @%t/MyApp.cmd -cas-path %t > %t2.casid |
29 | 29 | /// Output path doesn't affect base key. |
30 | 30 | // RUN: %cache-tool -cas-path %t/cas -cache-tool-action print-base-key -- \ |
31 | | -// RUN: %target-swift-frontend -cache-compile-job %t/a.swift -c @%t/MyApp.cmd -o %t/test.o > %t3.casid |
| 31 | +// RUN: %target-swift-frontend-plain -cache-compile-job %t/a.swift -c @%t/MyApp.cmd -o %t/test.o > %t3.casid |
32 | 32 | /// Add -D will change. |
33 | 33 | // RUN: %cache-tool -cas-path %t/cas -cache-tool-action print-base-key -- \ |
34 | | -// RUN: %target-swift-frontend -cache-compile-job %t/a.swift -c @%t/MyApp.cmd -DTEST > %t4.casid |
| 34 | +// RUN: %target-swift-frontend-plain -cache-compile-job %t/a.swift -c @%t/MyApp.cmd -DTEST > %t4.casid |
35 | 35 |
|
36 | 36 | // RUN: diff %t1.casid %t2.casid |
37 | 37 | // RUN: diff %t1.casid %t3.casid |
|
42 | 42 | // RUN: echo "%t/a.swift" > %t/filelist-2 |
43 | 43 | // RUN: echo "%t/b.swift" > %t/filelist-3 |
44 | 44 | // RUN: %cache-tool -cas-path %t/cas -cache-tool-action print-base-key -- \ |
45 | | -// RUN: %target-swift-frontend -cache-compile-job -filelist %t/filelist-1 -c @%t/MyApp.cmd > %t5.casid |
| 45 | +// RUN: %target-swift-frontend-plain -cache-compile-job -filelist %t/filelist-1 -c @%t/MyApp.cmd > %t5.casid |
46 | 46 | // RUN: %cache-tool -cas-path %t/cas -cache-tool-action print-base-key -- \ |
47 | | -// RUN: %target-swift-frontend -cache-compile-job -filelist %t/filelist-2 -c @%t/MyApp.cmd > %t6.casid |
| 47 | +// RUN: %target-swift-frontend-plain -cache-compile-job -filelist %t/filelist-2 -c @%t/MyApp.cmd > %t6.casid |
48 | 48 | // RUN: %cache-tool -cas-path %t/cas -cache-tool-action print-base-key -- \ |
49 | | -// RUN: %target-swift-frontend -cache-compile-job -filelist %t/filelist-3 -c @%t/MyApp.cmd > %t7.casid |
| 49 | +// RUN: %target-swift-frontend-plain -cache-compile-job -filelist %t/filelist-3 -c @%t/MyApp.cmd > %t7.casid |
50 | 50 | // RUN: diff %t5.casid %t6.casid |
51 | 51 | // RUN: not diff %t5.casid %t7.casid |
52 | 52 |
|
53 | 53 | /// Test output keys. |
54 | 54 | // RUN: %cache-tool -cas-path %t/cas -cache-tool-action print-output-keys -- \ |
55 | | -// RUN: %target-swift-frontend -cache-compile-job %t/a.swift -emit-module -c -emit-dependencies \ |
| 55 | +// RUN: %target-swift-frontend-plain -cache-compile-job %t/a.swift -emit-module -c -emit-dependencies \ |
56 | 56 | // RUN: -emit-tbd -emit-tbd-path %t/test.tbd -o %t/test.o @%t/MyApp.cmd | %FileCheck %s |
57 | 57 |
|
58 | 58 | /// Test plugin CAS. |
59 | | -// RUN: %target-swift-frontend -scan-dependencies -module-name Test -O \ |
| 59 | +// RUN: %target-swift-frontend-plain -scan-dependencies -module-name Test -O \ |
60 | 60 | // RUN: -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-import -parse-stdlib \ |
61 | 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- |
|
67 | 67 | // RUN: %{python} %S/Inputs/BuildCommandExtractor.py %t/plugin_deps.json Test > %t/plugin_MyApp.cmd |
68 | 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 | | -// RUN: %target-swift-frontend -cache-compile-job %t/a.swift -emit-module -c -emit-dependencies \ |
| 70 | +// RUN: %target-swift-frontend-plain -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 \ |
72 | 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 |
73 | 73 |
|
|
78 | 78 |
|
79 | 79 | /// Check switching CAS plugin path. |
80 | 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 |
| 81 | +// RUN: %target-swift-frontend-plain -cache-compile-job %t/a.swift -c @%t/MyApp-plugin.cmd -cas-path %t/cas-plugin -cas-plugin-path %plugin(CASPluginTest) > %t8.casid |
82 | 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 | | -// 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 |
| 84 | +// RUN: %target-swift-frontend-plain -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 |
86 | 86 |
|
87 | 87 |
|
|
0 commit comments