File tree Expand file tree Collapse file tree 33 files changed +47
-1
lines changed
validation-test/Reflection Expand file tree Collapse file tree 33 files changed +47
-1
lines changed Original file line number Diff line number Diff line change @@ -2209,6 +2209,21 @@ function(add_swift_target_executable name)
2209
2209
${SWIFTEXE_TARGET_EXCLUDE_FROM_ALL_FLAG_CURRENT}
2210
2210
${SWIFTEXE_TARGET_DONT_STRIP_NON_MAIN_SYMBOLS_FLAG}
2211
2211
${SWIFTEXE_DISABLE_ASLR_FLAG} )
2212
+
2213
+ is_darwin_based_sdk ("${sdk} " IS_DARWIN )
2214
+ if (IS_DARWIN )
2215
+ add_custom_command_target (unused_var2
2216
+ COMMAND "codesign" "-f" "-s" "-" "${SWIFT_RUNTIME_OUTPUT_INTDIR} /${VARIANT_NAME} "
2217
+ CUSTOM_TARGET_NAME "${VARIANT_NAME} _signed"
2218
+ OUTPUT "${SWIFT_RUNTIME_OUTPUT_INTDIR} /${VARIANT_NAME} _signed"
2219
+ DEPENDS ${VARIANT_NAME} )
2220
+ else ()
2221
+ # No code signing on other platforms.
2222
+ add_custom_command_target (unused_var2
2223
+ CUSTOM_TARGET_NAME "${VARIANT_NAME} _signed"
2224
+ OUTPUT "${SWIFT_RUNTIME_OUTPUT_INTDIR} /${VARIANT_NAME} _signed"
2225
+ DEPENDS ${VARIANT_NAME} )
2226
+ endif ()
2212
2227
endforeach ()
2213
2228
endforeach ()
2214
2229
endfunction ()
Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ foreach(SDK ${SWIFT_SDKS})
196
196
197
197
if (SWIFT_BUILD_STDLIB AND SWIFT_INCLUDE_TESTS )
198
198
list (APPEND test_dependencies
199
- "swift-reflection-test${VARIANT_SUFFIX} " )
199
+ "swift-reflection-test${VARIANT_SUFFIX} _signed " )
200
200
endif ()
201
201
202
202
if (NOT "${COVERAGE_DB} " STREQUAL "" )
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
// RUN: %target-build-swift -lswiftSwiftReflectionTest %s -o %t/existentials
3
+ // RUN: %target-codesign %t/existentials
3
4
// RUN: %target-run %target-swift-reflection-test %t/existentials | %FileCheck %s --check-prefix=CHECK-%target-ptrsize
4
5
// REQUIRES: objc_interop
5
6
// REQUIRES: executable_test
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
// RUN: %target-build-swift -lswiftSwiftReflectionTest %s -o %t/functions
3
+ // RUN: %target-codesign %t/functions
3
4
// RUN: %target-run %target-swift-reflection-test %t/functions | %FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-%target-ptrsize
4
5
5
6
// FIXME: Should not require objc_interop -- please put Objective-C-specific
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
// RUN: %target-build-swift -lswiftSwiftReflectionTest %s -o %t/functions
3
+ // RUN: %target-codesign %t/functions
3
4
// RUN: %target-run %target-swift-reflection-test %t/functions | %FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-%target-ptrsize
4
5
// REQUIRES: objc_interop
5
6
// REQUIRES: executable_test
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
// RUN: %target-build-swift -lswiftSwiftReflectionTest %s -o %t/inherits_NSObject
3
+ // RUN: %target-codesign %t/inherits_NSObject
3
4
// RUN: %target-run %target-swift-reflection-test %t/inherits_NSObject | %FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-%target-ptrsize
4
5
5
6
// REQUIRES: objc_interop
Original file line number Diff line number Diff line change 2
2
3
3
// RUN: %clang %target-cc-options -isysroot %sdk -fobjc-arc %S/Inputs/ObjCClasses/ObjCClasses.m -c -o %t/ObjCClasses.o
4
4
// RUN: %target-build-swift -I %S/Inputs/ObjCClasses/ -lswiftSwiftReflectionTest %t/ObjCClasses.o %s -o %t/inherits_ObjCClasses
5
+ // RUN: %target-codesign %t/inherits_ObjCClasses
5
6
// RUN: %target-run %target-swift-reflection-test %t/inherits_ObjCClasses | %FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-%target-ptrsize
6
7
7
8
// REQUIRES: objc_interop
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
// RUN: %target-build-swift -lswiftSwiftReflectionTest %s -o %t/inherits_Swift
3
+ // RUN: %target-codesign %t/inherits_Swift
3
4
// RUN: %target-run %target-swift-reflection-test %t/inherits_Swift | %FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-%target-ptrsize
4
5
5
6
// REQUIRES: objc_interop
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
// RUN: %target-build-swift -lswiftSwiftReflectionTest %s -o %t/reflect_Array
3
+ // RUN: %target-codesign %t/reflect_Array
3
4
// RUN: %target-run %target-swift-reflection-test %t/reflect_Array 2>&1 | %FileCheck %s --check-prefix=CHECK-%target-ptrsize
4
5
// REQUIRES: objc_interop
5
6
// REQUIRES: executable_test
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
// RUN: %target-build-swift -lswiftSwiftReflectionTest %s -o %t/reflect_Bool
3
+ // RUN: %target-codesign %t/reflect_Bool
3
4
// RUN: %target-run %target-swift-reflection-test %t/reflect_Bool 2>&1 | %FileCheck %s --check-prefix=CHECK-%target-ptrsize
4
5
// REQUIRES: objc_interop
5
6
// REQUIRES: executable_test
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
// RUN: %target-build-swift -lswiftSwiftReflectionTest %s -o %t/reflect_Character
3
+ // RUN: %target-codesign %t/reflect_Character
3
4
// RUN: %target-run %target-swift-reflection-test %t/reflect_Character 2>&1 | %FileCheck %s --check-prefix=CHECK-%target-ptrsize
4
5
// REQUIRES: objc_interop
5
6
// REQUIRES: executable_test
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
// RUN: %target-build-swift -lswiftSwiftReflectionTest %s -o %t/reflect_Dictionary
3
+ // RUN: %target-codesign %t/reflect_Dictionary
3
4
// RUN: %target-run %target-swift-reflection-test %t/reflect_Dictionary 2>&1 | %FileCheck %s --check-prefix=CHECK-%target-ptrsize
4
5
// REQUIRES: objc_interop
5
6
// REQUIRES: executable_test
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
// RUN: %target-build-swift -lswiftSwiftReflectionTest %s -o %t/reflect_Double
3
+ // RUN: %target-codesign %t/reflect_Double
3
4
// RUN: %target-run %target-swift-reflection-test %t/reflect_Double 2>&1 | %FileCheck %s --check-prefix=CHECK-%target-ptrsize
4
5
// REQUIRES: objc_interop
5
6
// REQUIRES: executable_test
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
// RUN: %target-build-swift -lswiftSwiftReflectionTest %s -o %t/reflect_Float
3
+ // RUN: %target-codesign %t/reflect_Float
3
4
// RUN: %target-run %target-swift-reflection-test %t/reflect_Float 2>&1 | %FileCheck %s --check-prefix=CHECK-%target-ptrsize
4
5
// REQUIRES: objc_interop
5
6
// REQUIRES: executable_test
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
// RUN: %target-build-swift -lswiftSwiftReflectionTest %s -o %t/reflect_Int
3
+ // RUN: %target-codesign %t/reflect_Int
3
4
// RUN: %target-run %target-swift-reflection-test %t/reflect_Int 2>&1 | %FileCheck %s --check-prefix=CHECK-%target-ptrsize
4
5
// REQUIRES: objc_interop
5
6
// REQUIRES: executable_test
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
// RUN: %target-build-swift -lswiftSwiftReflectionTest %s -o %t/reflect_Int16
3
+ // RUN: %target-codesign %t/reflect_Int16
3
4
// RUN: %target-run %target-swift-reflection-test %t/reflect_Int16 2>&1 | %FileCheck %s --check-prefix=CHECK-%target-ptrsize
4
5
// REQUIRES: objc_interop
5
6
// REQUIRES: executable_test
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
// RUN: %target-build-swift -lswiftSwiftReflectionTest %s -o %t/reflect_Int32
3
+ // RUN: %target-codesign %t/reflect_Int32
3
4
// RUN: %target-run %target-swift-reflection-test %t/reflect_Int32 2>&1 | %FileCheck %s --check-prefix=CHECK-%target-ptrsize
4
5
// REQUIRES: objc_interop
5
6
// REQUIRES: executable_test
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
// RUN: %target-build-swift -lswiftSwiftReflectionTest %s -o %t/reflect_Int64
3
+ // RUN: %target-codesign %t/reflect_Int64
3
4
// RUN: %target-run %target-swift-reflection-test %t/reflect_Int64 2>&1 | %FileCheck %s --check-prefix=CHECK-%target-ptrsize
4
5
// REQUIRES: objc_interop
5
6
// REQUIRES: executable_test
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
// RUN: %target-build-swift -lswiftSwiftReflectionTest %s -o %t/reflect_Int8
3
+ // RUN: %target-codesign %t/reflect_Int8
3
4
// RUN: %target-run %target-swift-reflection-test %t/reflect_Int8 2>&1 | %FileCheck %s --check-prefix=CHECK-%target-ptrsize
4
5
// REQUIRES: objc_interop
5
6
// REQUIRES: executable_test
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
// RUN: %target-build-swift -lswiftSwiftReflectionTest %s -o %t/reflect_NSArray
3
+ // RUN: %target-codesign %t/reflect_NSArray
3
4
// RUN: %target-run %target-swift-reflection-test %t/reflect_NSArray 2>&1 | %FileCheck %s --check-prefix=CHECK-%target-ptrsize
4
5
// REQUIRES: objc_interop
5
6
// REQUIRES: executable_test
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
// RUN: %target-build-swift -lswiftSwiftReflectionTest %s -o %t/reflect_NSNumber
3
+ // RUN: %target-codesign %t/reflect_NSNumber
3
4
// RUN: %target-run %target-swift-reflection-test %t/reflect_NSNumber 2>&1 | %FileCheck %s --check-prefix=CHECK-%target-ptrsize
4
5
// REQUIRES: objc_interop
5
6
// REQUIRES: executable_test
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
// RUN: %target-build-swift -lswiftSwiftReflectionTest %s -o %t/reflect_NSSet
3
+ // RUN: %target-codesign %t/reflect_NSSet
3
4
// RUN: %target-run %target-swift-reflection-test %t/reflect_NSSet 2>&1 | %FileCheck %s --check-prefix=CHECK-%target-ptrsize
4
5
// REQUIRES: objc_interop
5
6
// REQUIRES: executable_test
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
// RUN: %target-build-swift -lswiftSwiftReflectionTest %s -o %t/reflect_NSString
3
+ // RUN: %target-codesign %t/reflect_NSString
3
4
// RUN: %target-run %target-swift-reflection-test %t/reflect_NSString 2>&1 | %FileCheck %s --check-prefix=CHECK-%target-ptrsize
4
5
// REQUIRES: objc_interop
5
6
// REQUIRES: executable_test
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
// RUN: %target-build-swift -lswiftSwiftReflectionTest %s -o %t/reflect_Set
3
+ // RUN: %target-codesign %t/reflect_Set
3
4
// RUN: %target-run %target-swift-reflection-test %t/reflect_Set 2>&1 | %FileCheck %s --check-prefix=CHECK-%target-ptrsize
4
5
// REQUIRES: objc_interop
5
6
// REQUIRES: executable_test
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
// RUN: %target-build-swift -lswiftSwiftReflectionTest %s -o %t/reflect_String
3
+ // RUN: %target-codesign %t/reflect_String
3
4
// RUN: %target-run %target-swift-reflection-test %t/reflect_String 2>&1 | %FileCheck %s --check-prefix=CHECK-%target-ptrsize
4
5
// REQUIRES: objc_interop
5
6
// REQUIRES: executable_test
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
// RUN: %target-build-swift -lswiftSwiftReflectionTest %s -o %t/reflect_UInt
3
+ // RUN: %target-codesign %t/reflect_UInt
3
4
// RUN: %target-run %target-swift-reflection-test %t/reflect_UInt 2>&1 | %FileCheck %s --check-prefix=CHECK-%target-ptrsize
4
5
// REQUIRES: objc_interop
5
6
// REQUIRES: executable_test
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
// RUN: %target-build-swift -lswiftSwiftReflectionTest %s -o %t/reflect_UInt16
3
+ // RUN: %target-codesign %t/reflect_UInt16
3
4
// RUN: %target-run %target-swift-reflection-test %t/reflect_UInt16 2>&1 | %FileCheck %s --check-prefix=CHECK-%target-ptrsize
4
5
// REQUIRES: objc_interop
5
6
// REQUIRES: executable_test
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
// RUN: %target-build-swift -lswiftSwiftReflectionTest %s -o %t/reflect_UInt32
3
+ // RUN: %target-codesign %t/reflect_UInt32
3
4
// RUN: %target-run %target-swift-reflection-test %t/reflect_UInt32 2>&1 | %FileCheck %s --check-prefix=CHECK-%target-ptrsize
4
5
// REQUIRES: objc_interop
5
6
// REQUIRES: executable_test
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
// RUN: %target-build-swift -lswiftSwiftReflectionTest %s -o %t/reflect_UInt64
3
+ // RUN: %target-codesign %t/reflect_UInt64
3
4
// RUN: %target-run %target-swift-reflection-test %t/reflect_UInt64 2>&1 | %FileCheck %s --check-prefix=CHECK-%target-ptrsize
4
5
// REQUIRES: objc_interop
5
6
// REQUIRES: executable_test
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
// RUN: %target-build-swift -lswiftSwiftReflectionTest %s -o %t/reflect_UInt8
3
+ // RUN: %target-codesign %t/reflect_UInt8
3
4
// RUN: %target-run %target-swift-reflection-test %t/reflect_UInt8 2>&1 | %FileCheck %s --check-prefix=CHECK-%target-ptrsize
4
5
// REQUIRES: objc_interop
5
6
// REQUIRES: executable_test
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
// RUN: %target-build-swift -lswiftSwiftReflectionTest %s -o %t/reflect_empty_class
3
+ // RUN: %target-codesign %t/reflect_empty_class
3
4
// RUN: %target-run %target-swift-reflection-test %t/reflect_empty_class 2>&1 | %FileCheck %s --check-prefix=CHECK-%target-ptrsize
4
5
// REQUIRES: objc_interop
5
6
// REQUIRES: executable_test
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
// RUN: %target-build-swift -lswiftSwiftReflectionTest %s -o %t/reflect_existential
3
+ // RUN: %target-codesign %t/reflect_existential
3
4
// RUN: %target-run %target-swift-reflection-test %t/reflect_existential 2>&1 | %FileCheck %s --check-prefix=CHECK-%target-ptrsize
4
5
// REQUIRES: objc_interop
5
6
// REQUIRES: executable_test
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
// RUN: %target-build-swift -lswiftSwiftReflectionTest %s -o %t/reflect_multiple_types
3
+ // RUN: %target-codesign %t/reflect_multiple_types
3
4
// RUN: %target-run %target-swift-reflection-test %t/reflect_multiple_types 2>&1 | %FileCheck %s --check-prefix=CHECK-%target-ptrsize
4
5
// REQUIRES: objc_interop
5
6
// REQUIRES: executable_test
You can’t perform that action at this time.
0 commit comments