Skip to content

Commit cb0fb1e

Browse files
Merge pull request #71262 from cachemeifyoucan/eng/PR-fix-test-cas-swift-scan-response-file
Fix test/CAS/swift-scan-response-file.swift
2 parents 643fa6c + bf8d001 commit cb0fb1e

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

test/CAS/swift-scan-response-file.swift

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
11
// RUN: %empty-directory(%t)
2+
3+
// RUN: %target-swift-frontend -scan-dependencies -module-name Test -O \
4+
// RUN: -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-import -parse-stdlib \
5+
// RUN: %s -o %t/deps.json -swift-version 5 -cache-compile-job -cas-path %t/cas
6+
7+
// RUN: %{python} %S/Inputs/BuildCommandExtractor.py %t/deps.json Test > %t/MyApp.cmd
8+
// RUN: echo "\"-disable-implicit-string-processing-module-import\"" >> %t/MyApp.cmd
9+
// RUN: echo "\"-disable-implicit-concurrency-module-import\"" >> %t/MyApp.cmd
10+
// RUN: echo "\"-parse-stdlib\"" >> %t/MyApp.cmd
11+
212
// RUN: %{python} %S/Inputs/PrintResponseFile.py %target-swift-frontend -cache-compile-job -Rcache-compile-job %s \
313
// RUN: -emit-module -emit-module-path %t/Test.swiftmodule -c -emit-dependencies -module-name Test -o %t/test.o -cas-path %t/cas \
4-
// RUN: -allow-unstable-cache-key-for-testing > %t/cmd.resp
14+
// RUN: @%t/MyApp.cmd > %t/cmd.resp
515

616
// RUN: %swift-scan-test -action compute_cache_key -cas-path %t/cas -input %s -- %swift_frontend_plain @%t/cmd.resp > %t/key.casid
717

@@ -17,7 +27,7 @@
1727

1828
// RUN: %{python} %S/Inputs/PrintResponseFile.py %target-swift-frontend -cache-compile-job -Rcache-compile-job %s \
1929
// RUN: -emit-module -emit-module-path %t/Test2.swiftmodule -c -emit-dependencies -module-name Test -o %t/test.o -cas-path %t/cas \
20-
// RUN: -allow-unstable-cache-key-for-testing > %t/cmd2.resp
30+
// RUN: @%t/MyApp.cmd > %t/cmd2.resp
2131
// RUN: %swift-scan-test -action replay_result -cas-path %t/cas -id @%t/key.casid -- %swift_frontend_plain @%t/cmd2.resp
2232

2333
// RUN: diff %t/Test.swiftmodule %t/Test2.swiftmodule

0 commit comments

Comments
 (0)