File tree Expand file tree Collapse file tree 4 files changed +14
-14
lines changed
test/ModuleInterface/swift_build_sdk_interfaces Expand file tree Collapse file tree 4 files changed +14
-14
lines changed Original file line number Diff line number Diff line change 1
- RUN: not %swift_build_sdk_interfaces 2>&1 | %FileCheck -check-prefix NO-OUTPUT %s
1
+ RUN: env SWIFT_EXEC=%swiftc_driver_plain not %{python} %utils/ swift_build_sdk_interfaces.py %mcp_opt 2>&1 | %FileCheck -check-prefix NO-OUTPUT %s
2
2
NO-OUTPUT: argument -o is required
3
3
4
- RUN: not env -u SDKROOT % swift_build_sdk_interfaces -o %t 2>&1 | %FileCheck -check-prefix NO-SDK %s
4
+ RUN: env -u SDKROOT SWIFT_EXEC=%swiftc_driver_plain not %{python} %utils/ swift_build_sdk_interfaces.py %mcp_opt -o %t 2>&1 | %FileCheck -check-prefix NO-SDK %s
5
5
NO-SDK: SDKROOT must be set
6
6
7
- RUN: not %swift_build_sdk_interfaces -o %t -sdk %S/nonexistent 2>&1 | %FileCheck -check-prefix BAD-SDK %s
7
+ RUN: env SWIFT_EXEC=%swiftc_driver_plain not %{python} %utils/ swift_build_sdk_interfaces.py %mcp_opt -o %t -sdk %S/nonexistent 2>&1 | %FileCheck -check-prefix BAD-SDK %s
8
8
BAD-SDK: invalid SDK: {{.+[/\\]nonexistent$}}
Original file line number Diff line number Diff line change 1
- RUN: not %swift_build_sdk_interfaces -sdk %S/Inputs/xfails-sdk/ -v -o %t/output | %FileCheck %s
1
+ RUN: env SWIFT_EXEC=%swiftc_driver_plain not %{python} %utils/ swift_build_sdk_interfaces.py %mcp_opt -sdk %S/Inputs/xfails-sdk/ -v -o %t/output | %FileCheck %s
2
2
3
3
CHECK-DAG: # (FAIL) {{.+}}{{\\|/}}Bad.swiftinterface
4
4
CHECK-DAG: # (PASS) {{.+}}{{\\|/}}Good.swiftinterface
@@ -8,11 +8,11 @@ RUN: %swift_build_sdk_interfaces -sdk %S/Inputs/xfails-sdk/ -v -o %t/output -ign
8
8
CHECK-IGNORING-FAILURES-DAG: # (XFAIL) {{.+}}{{\\|/}}Bad.swiftinterface
9
9
CHECK-IGNORING-FAILURES-DAG: # (UPASS) {{.+}}{{\\|/}}Good.swiftinterface
10
10
11
- RUN: not %swift_build_sdk_interfaces -sdk %S/Inputs/broken-stdlib-sdk/ -v -o %t/output | %FileCheck -check-prefix CHECK-BROKEN-STDLIB %s
12
- RUN: not %swift_build_sdk_interfaces -sdk %S/Inputs/broken-stdlib-sdk/ -v -o %t/output -ignore-non-stdlib-failures | %FileCheck -check-prefix CHECK-BROKEN-STDLIB %s
11
+ RUN: env SWIFT_EXEC=%swiftc_driver_plain not %{python} %utils/ swift_build_sdk_interfaces.py %mcp_opt -sdk %S/Inputs/broken-stdlib-sdk/ -v -o %t/output | %FileCheck -check-prefix CHECK-BROKEN-STDLIB %s
12
+ RUN: env SWIFT_EXEC=%swiftc_driver_plain not %{python} %utils/ swift_build_sdk_interfaces.py %mcp_opt -sdk %S/Inputs/broken-stdlib-sdk/ -v -o %t/output -ignore-non-stdlib-failures | %FileCheck -check-prefix CHECK-BROKEN-STDLIB %s
13
13
14
14
CHECK-BROKEN-STDLIB: # (FAIL) {{.+}}{{\\|/}}Swift.swiftinterface
15
15
CHECK-BROKEN-STDLIB-NOT: {{^}}#
16
16
17
- RUN: not %swift_build_sdk_interfaces -sdk %S/Inputs/broken-stdlib-sdk/ -v -o %t/output -skip-stdlib | %FileCheck %s
17
+ RUN: env SWIFT_EXEC=%swiftc_driver_plain not %{python} %utils/ swift_build_sdk_interfaces.py %mcp_opt -sdk %S/Inputs/broken-stdlib-sdk/ -v -o %t/output -skip-stdlib | %FileCheck %s
18
18
RUN: %swift_build_sdk_interfaces -sdk %S/Inputs/broken-stdlib-sdk/ -v -o %t/output -skip-stdlib -ignore-non-stdlib-failures | %FileCheck -check-prefix=CHECK-IGNORING-FAILURES %s
Original file line number Diff line number Diff line change 1
1
RUN: %empty-directory(%t)
2
- RUN: not %swift_build_sdk_interfaces -sdk %S/Inputs/xfails-sdk/ -o %t/output -log-path %t/logs | %FileCheck %s
2
+ RUN: env SWIFT_EXEC=%swiftc_driver_plain not %{python} %utils/ swift_build_sdk_interfaces.py %mcp_opt -sdk %S/Inputs/xfails-sdk/ -o %t/output -log-path %t/logs | %FileCheck %s
3
3
RUN: %FileCheck -check-prefix PRINTS-ERROR %s < %t/logs/Bad-Bad-err.txt
4
4
5
5
CHECK: # (FAIL) {{.+}}{{\\|/}}Bad.swiftinterface
@@ -8,7 +8,7 @@ PRINTS-ERROR: unresolved identifier 'garbage'
8
8
9
9
RUN: %empty-directory(%t)
10
10
RUN: echo '["Good"]' > %t/xfails-good.json
11
- RUN: not %swift_build_sdk_interfaces -sdk %S/Inputs/xfails-sdk/ -o %t/output -log-path %t/logs -xfails %t/xfails-good.json | %FileCheck -check-prefix=CHECK-XFAIL-GOOD %s
11
+ RUN: env SWIFT_EXEC=%swiftc_driver_plain not %{python} %utils/ swift_build_sdk_interfaces.py %mcp_opt -sdk %S/Inputs/xfails-sdk/ -o %t/output -log-path %t/logs -xfails %t/xfails-good.json | %FileCheck -check-prefix=CHECK-XFAIL-GOOD %s
12
12
RUN: %FileCheck -check-prefix PRINTS-ERROR %s < %t/logs/Bad-Bad-err.txt
13
13
14
14
CHECK-XFAIL-GOOD-DAG: # (FAIL) {{.+}}{{\\|/}}Bad.swiftinterface
@@ -30,7 +30,7 @@ RUN: %FileCheck -check-prefix PRINTS-ERROR %s < %t/logs/Bad-Bad-err.txt
30
30
CHECK-XFAIL-BAD: # (XFAIL) {{.+}}{{\\|/}}Bad.swiftinterface
31
31
32
32
RUN: %empty-directory(%t)
33
- RUN: not %swift_build_sdk_interfaces -sdk %t -o %t/output -log-path %t/logs %S/Inputs/xfail-logs-framework/ | %FileCheck -check-prefix=CHECK-FRAMEWORK %s
33
+ RUN: env SWIFT_EXEC=%swiftc_driver_plain not %{python} %utils/ swift_build_sdk_interfaces.py %mcp_opt -sdk %t -o %t/output -log-path %t/logs %S/Inputs/xfail-logs-framework/ | %FileCheck -check-prefix=CHECK-FRAMEWORK %s
34
34
RUN: %FileCheck -check-prefix PRINTS-ERROR %s < %t/logs/BadFMWK-x86_64-apple-macos-err.txt
35
35
36
36
CHECK-FRAMEWORK: # (FAIL) {{.+}}{{\\|/}}BadFMWK.swiftmodule{{\\|/}}x86_64-apple-macos.swiftinterface
Original file line number Diff line number Diff line change 1
1
RUN: %empty-directory(%t)
2
- RUN: not %swift_build_sdk_interfaces -sdk %S/Inputs/xfails-sdk/ -o %t/output 2> %t/stderr.txt | %FileCheck %s
2
+ RUN: env SWIFT_EXEC=%swiftc_driver_plain not %{python} %utils/ swift_build_sdk_interfaces.py %mcp_opt -sdk %S/Inputs/xfails-sdk/ -o %t/output 2> %t/stderr.txt | %FileCheck %s
3
3
RUN: %FileCheck -check-prefix PRINTS-ERROR %s < %t/stderr.txt
4
- RUN: not %swift_build_sdk_interfaces -sdk %S/Inputs/xfails-sdk/ -v -o %t/output 2> %t/stderr.txt | %FileCheck -check-prefix CHECK-VERBOSE %s
4
+ RUN: env SWIFT_EXEC=%swiftc_driver_plain not %{python} %utils/ swift_build_sdk_interfaces.py %mcp_opt -sdk %S/Inputs/xfails-sdk/ -v -o %t/output 2> %t/stderr.txt | %FileCheck -check-prefix CHECK-VERBOSE %s
5
5
RUN: %FileCheck -check-prefix PRINTS-ERROR %s < %t/stderr.txt
6
6
7
7
CHECK: # (FAIL) {{.+}}{{\\|/}}Bad.swiftinterface
@@ -13,9 +13,9 @@ HIDES-ERROR-NOT: unresolved identifier 'garbage'
13
13
14
14
RUN: %empty-directory(%t)
15
15
RUN: echo '["Good"]' > %t/xfails-good.json
16
- RUN: not %swift_build_sdk_interfaces -sdk %S/Inputs/xfails-sdk/ -o %t/output -xfails %t/xfails-good.json 2> %t/stderr.txt | %FileCheck -check-prefix=CHECK-XFAIL-GOOD %s
16
+ RUN: env SWIFT_EXEC=%swiftc_driver_plain not %{python} %utils/ swift_build_sdk_interfaces.py %mcp_opt -sdk %S/Inputs/xfails-sdk/ -o %t/output -xfails %t/xfails-good.json 2> %t/stderr.txt | %FileCheck -check-prefix=CHECK-XFAIL-GOOD %s
17
17
RUN: %FileCheck -check-prefix PRINTS-ERROR %s < %t/stderr.txt
18
- RUN: not %swift_build_sdk_interfaces -sdk %S/Inputs/xfails-sdk/ -v -o %t/output -xfails %t/xfails-good.json 2> %t/stderr.txt | %FileCheck -check-prefix=CHECK-XFAIL-GOOD %s
18
+ RUN: env SWIFT_EXEC=%swiftc_driver_plain not %{python} %utils/ swift_build_sdk_interfaces.py %mcp_opt -sdk %S/Inputs/xfails-sdk/ -v -o %t/output -xfails %t/xfails-good.json 2> %t/stderr.txt | %FileCheck -check-prefix=CHECK-XFAIL-GOOD %s
19
19
RUN: %FileCheck -check-prefix PRINTS-ERROR %s < %t/stderr.txt
20
20
21
21
CHECK-XFAIL-GOOD-DAG: # (FAIL) {{.+}}{{\\|/}}Bad.swiftinterface
You can’t perform that action at this time.
0 commit comments