File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,10 @@ function(get_test_dependencies SDK result_var_name)
47
47
list (APPEND deps sdk-overlay )
48
48
endif ()
49
49
50
+ if (SWIFT_BUILD_REMOTE_MIRROR )
51
+ list (APPEND deps swiftRemoteInspection )
52
+ endif ()
53
+
50
54
set (deps_binaries )
51
55
52
56
if (SWIFT_INCLUDE_TOOLS )
@@ -215,6 +219,7 @@ normalize_boolean_spelling(SWIFT_STDLIB_ENABLE_OBJC_INTEROP)
215
219
normalize_boolean_spelling (SWIFT_ENABLE_BACKTRACING )
216
220
normalize_boolean_spelling (SWIFT_BUILD_SWIFT_SYNTAX )
217
221
normalize_boolean_spelling (SWIFT_ENABLE_SYNCHRONIZATION )
222
+ normalize_boolean_spelling (SWIFT_BUILD_REMOTE_MIRROR )
218
223
is_build_type_optimized ("${SWIFT_STDLIB_BUILD_TYPE} " SWIFT_OPTIMIZED )
219
224
220
225
# Get 'SWIFT_HOST_SDKROOT' for lit.site.cfg.in
@@ -432,6 +437,10 @@ foreach(SDK ${SWIFT_SDKS})
432
437
list (APPEND LIT_ARGS "--param" "synchronization" )
433
438
endif ()
434
439
440
+ if (SWIFT_BUILD_REMOTE_MIRROR )
441
+ list (APPEND LIT_ARGS "--param" "remote_mirror" )
442
+ endif ()
443
+
435
444
list (APPEND LIT_ARGS "--param" "threading=${SWIFT_SDK_${SDK} _THREADING_PACKAGE}" )
436
445
437
446
# Enable on-crash backtracing if supported
Original file line number Diff line number Diff line change 6
6
// RUN: echo "func runAllTests() throws {" >> %t/all-tests.swift
7
7
// RUN: for module in %S/Inputs/testcases/*.swift; do modname=$(basename $module .swift); %target-build-swift -g -static -emit-module-path %t/$modname.swiftmodule -emit-module -emit-library -module-name $modname -o %t/%target-static-library-name($modname) -I%t -L%t $module -lRoundTrip; echo " print(\"--- $modname\")" >> %t/all-tests.swift; echo " $modname.test()" >> %t/all-tests.swift; echo " print(\"\")" >> %t/all-tests.swift; echo "-l$modname" >> %t/link.txt; done
8
8
// RUN: echo "}" >> %t/all-tests.swift
9
- // RUN: %target-build-swift -g -I%t -o %t/round-trip %s %t/all-tests.swift -L%t %target-cxx-lib $(cat %t/link.txt) -lm -lRoundTrip -lswiftRemoteInspection
9
+ // RUN: %target-build-swift -g -I%t -o %t/round-trip %s %t/all-tests.swift -L%t %target-cxx-lib $(cat %t/link.txt) -lm -lRoundTrip -L%swift-lib-dir/swift/%target-sdk-name/%target-arch - lswiftRemoteInspection
10
10
// RUN: %target-codesign %t/round-trip
11
11
// RUN: %target-run %t/round-trip | %FileCheck %s
12
12
13
13
// REQUIRES: executable_test
14
14
// REQUIRES: shell
15
+ // REQUIRES: remote_mirror
15
16
// UNSUPPORTED: use_os_stdlib
16
17
// UNSUPPORTED: back_deployment_runtime
17
18
Original file line number Diff line number Diff line change @@ -537,6 +537,10 @@ synchronization = lit_config.params.get('synchronization', None)
537
537
if synchronization is not None :
538
538
config .available_features .add ('synchronization' )
539
539
540
+ remote_mirror = lit_config .params .get ('remote_mirror' , None )
541
+ if remote_mirror is not None :
542
+ config .available_features .add ('remote_mirror' )
543
+
540
544
test_options = os .environ .get ('SWIFT_TEST_OPTIONS' )
541
545
if test_options :
542
546
config .swift_test_options += ' '
You can’t perform that action at this time.
0 commit comments