mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Tests] Codesign the binary before executing the test
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %gyb %s -o %t/differential_operators.swift
|
||||
// RUN: %target-build-swift %t/differential_operators.swift -o %t/differential_operators
|
||||
// RUN: %target-codesign %t/differential_operators
|
||||
// RUN: %target-run %t/differential_operators
|
||||
// REQUIRES: executable_test
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-clang %S/Inputs/enum-error.m -c -o %t/enum-error.o
|
||||
// RUN: %target-build-swift -import-objc-header %S/Inputs/enum-error.h -Xlinker %t/enum-error.o %s -o %t/a.out
|
||||
// RUN: %target-codesign %t/a.out
|
||||
// RUN: %target-run %t/a.out | %FileCheck %s
|
||||
|
||||
// REQUIRES: executable_test
|
||||
|
||||
@@ -51,4 +51,5 @@
|
||||
// RUN: %FileCheck -match-full-lines -check-prefix=CHECK-COMPARE-DISABLED-NO-BUILD-RECORD %s < %t/output1
|
||||
// CHECK-COMPARE-DISABLED-NO-BUILD-RECORD: *** Incremental build disabled because could not read build record, cannot compare ***
|
||||
|
||||
// RUN: %target-codesign %t/main
|
||||
// RUN: %target-run %t/main | tee run1 | grep Any > /dev/null && rm %t/main
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-build-swift %s -import-objc-header %S/Inputs/objc_block_consumed.h -o %t/main
|
||||
// RUN: %target-codesign %t/main
|
||||
// RUN: %target-run %t/main
|
||||
|
||||
// REQUIRES: executable_test
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-build-swift -module-name FactoryTest %s -o %t/a.out
|
||||
// RUN: %target-codesign %t/a.out
|
||||
// RUN: %target-run %t/a.out | %FileCheck %s
|
||||
// REQUIRES: executable_test
|
||||
// REQUIRES: OS=macosx
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-build-swift -swift-version 4 -Xfrontend -enable-swift3-objc-inference %s -o %t/a.out
|
||||
// RUN: %target-codesign %t/a.out
|
||||
// RUN: %target-run %t/a.out 2>&1 | %FileCheck %s -check-prefix=CHECK_WARNINGS
|
||||
// RUN: env %env-SWIFT_DEBUG_IMPLICIT_OBJC_ENTRYPOINT=0 %target-run %t/a.out 2>&1 | %FileCheck %s -check-prefix=CHECK_NOTHING
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
// RUN: %empty-directory(%t/Test.app/Contents/MacOS)
|
||||
// RUN: cp -r %S/Inputs/object_literals-Resources %t/Test.app/Contents/Resources
|
||||
// RUN: %target-build-swift %s -o %t/Test.app/Contents/MacOS/main
|
||||
// RUN: %target-codesign %t/Test.app/Contents/MacOS/main
|
||||
// RUN: %target-run %t/Test.app/Contents/MacOS/main %t/Test.app/Contents/Resources/*
|
||||
|
||||
// REQUIRES: executable_test
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
// RUN: %target-build-swift-dylib(%t/%target-library-name(WithAssoc)) %S/../Inputs/conditional_conformance_with_assoc.swift -module-name WithAssoc -emit-module -emit-module-path %t/WithAssoc.swiftmodule
|
||||
// RUN: %target-build-swift-dylib(%t/%target-library-name(Subclass)) %S/../Inputs/conditional_conformance_subclass.swift -module-name Subclass -emit-module -emit-module-path %t/Subclass.swiftmodule
|
||||
// RUN: %target-build-swift -I%t -L%t -lBasic -lWithAssoc -lSubclass %s -o %t/conditional_conformances_modules %target-rpath(%t)
|
||||
// RUN: %target-codesign %t/conditional_conformances_modules
|
||||
// RUN: %target-run %t/conditional_conformances_modules %t/%target-library-name(Basic) %t/%target-library-name(WithAssoc) %t/%target-library-name(Subclass)
|
||||
|
||||
// REQUIRES: executable_test
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-build-swift -Onone %s -o %t/a.out
|
||||
// RUN: %target-build-swift -O %s -o %t/a.out.optimized
|
||||
// RUN: %target-codesign %t/a.out
|
||||
// RUN: %target-codesign %t/a.out.optimized
|
||||
//
|
||||
// RUN: %target-run %t/a.out | %FileCheck --check-prefix CHECK %s
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-build-swift -Onone %s -o %t/a.out
|
||||
// RUN: %target-codesign %t/a.out
|
||||
// RUN: %target-run %t/a.out | %FileCheck --check-prefix CHECK --check-prefix CHECK-ONONE %s
|
||||
// RUN: %target-build-swift -O %s -o %t/a.out.optimized
|
||||
// RUN: %target-codesign %t/a.out.optimized
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
|
||||
// RUN: %target-build-swift -parse-stdlib -Xfrontend -verify-type-layout -Xfrontend SpareBitExtraInhabitants -Xfrontend -verify-type-layout -Xfrontend SpareBitSingleExtraInhabitant -Xfrontend -verify-type-layout -Xfrontend SpareBitNoExtraInhabitant -Xfrontend -verify-type-layout -Xfrontend SpareBitNoExtraInhabitant2 -Xfrontend -verify-type-layout -Xfrontend TwoTagExtraInhabitants -Xfrontend -verify-type-layout -Xfrontend ThreeTagExtraInhabitants -Xfrontend -verify-type-layout -Xfrontend NoTagExtraInhabitants -Xfrontend -verify-type-layout -Xfrontend DynamicExtraInhabitantsNever -Xfrontend -verify-type-layout -Xfrontend DynamicExtraInhabitantsZeroBytes -Xfrontend -verify-type-layout -Xfrontend DynamicExtraInhabitantsOneByte -Xfrontend -verify-type-layout -Xfrontend DynamicExtraInhabitantsTwoBytes -Xfrontend -verify-type-layout -Xfrontend MoreSpareBitsThanTagsExtraInhabitants -Xfrontend -verify-type-layout -Xfrontend OptOptMoreSpareBitsThanTagsExtraInhabitants -O -o %t/a.out %s
|
||||
// RUN: %target-codesign %t/a.out
|
||||
// RUN: %target-run %t/a.out 2>&1
|
||||
|
||||
// Type layout verifier is only compiled into the runtime in asserts builds.
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
// RUN: %clang -arch %target-cpu -mmacosx-version-min=10.11 -isysroot %sdk -fobjc-arc %S/Inputs/ObjCClasses/ObjCClasses.m -c -o %t/ObjCClasses.o
|
||||
|
||||
// RUN: %swiftc_driver -target $(echo '%target-triple' | sed -E -e 's/macosx10.(9|10).*/macosx10.11/') -sdk %sdk -I %S/Inputs/ObjCClasses/ %t/ObjCClasses.o %s -o %t/a.out
|
||||
// RUN: %target-codesign %t/a.out
|
||||
// RUN: %target-run %t/a.out
|
||||
|
||||
// REQUIRES: OS=macosx
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
|
||||
// -- run tests
|
||||
// RUN: %target-build-swift -parse-stdlib -Xfrontend -verify-type-layout -Xfrontend PairWithPointerFirst -Xfrontend -verify-type-layout -Xfrontend PairWithPointerSecond -Xfrontend -verify-type-layout -Xfrontend PairWithPointerSecondAndPhantomParam_Int -Xfrontend -verify-type-layout -Xfrontend GenericPairWithPointerFirst_Int -Xfrontend -verify-type-layout -Xfrontend GenericPairWithPointerFirst_AnyObject -Xfrontend -verify-type-layout -Xfrontend GenericPairWithPointerSecond_Int -Xfrontend -verify-type-layout -Xfrontend GenericPairWithPointerSecond_AnyObject -Xfrontend -verify-type-layout -Xfrontend StringAlike32 -Xfrontend -verify-type-layout -Xfrontend StringAlike64 -I %t -o %t/a.out.tests %s %t/ExtraInhabitantResilientTypes.o
|
||||
// RUN: %target-codesign %t/a.out.tests
|
||||
// RUN: %target-run %t/a.out.tests 2>&1
|
||||
|
||||
// Type layout verifier is only compiled into the runtime in asserts builds.
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-build-swift -whole-module-optimization -c -o %t/Module.o -enable-testing -parse-as-library -emit-module -emit-module-path %t/Module.swiftmodule -module-name Module %S/Inputs/testable_key_path_2.swift
|
||||
// RUN: %target-build-swift -o %t/a.out -I %t %s %t/Module.o
|
||||
// RUN: %target-codesign %t/a.out
|
||||
// RUN: %target-run %t/a.out | %FileCheck %s
|
||||
|
||||
// REQUIRES: executable_test
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-build-swift -swift-version 4.2 %s -o %t/main
|
||||
// RUN: %target-codesign %t/main
|
||||
// RUN: %target-run %t/main | %FileCheck %s
|
||||
|
||||
// REQUIRES: executable_test
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
// This unusual use of 'sh' allows the path of the profraw file to be
|
||||
// substituted by %target-run.
|
||||
// RUN: %target-codesign %t/main
|
||||
// RUN: %target-run sh -c 'env LLVM_PROFILE_FILE=$1 $2' -- %t/default.profraw %t/main
|
||||
|
||||
// RUN: %llvm-profdata merge %t/default.profraw -o %t/default.profdata
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
// This unusual use of 'sh' allows the path of the profraw file to be
|
||||
// substituted by %target-run.
|
||||
// RUN: %target-codesign %t/main
|
||||
// RUN: %target-run sh -c 'env LLVM_PROFILE_FILE=$1 $2' -- %t/default.profraw %t/main
|
||||
|
||||
// RUN: %llvm-profdata merge %t/default.profraw -o %t/default.profdata
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
// This unusual use of 'sh' allows the path of the profraw file to be
|
||||
// substituted by %target-run.
|
||||
// RUN: %target-codesign %t/main
|
||||
// RUN: %target-run sh -c 'env LLVM_PROFILE_FILE=$1 $2' -- %t/default.profraw %t/main
|
||||
|
||||
// RUN: %llvm-profdata merge %t/default.profraw -o %t/default.profdata
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
// This unusual use of 'sh' allows the path of the profraw file to be
|
||||
// substituted by %target-run.
|
||||
// RUN: %target-codesign %t/main
|
||||
// RUN: %target-run sh -c 'env LLVM_PROFILE_FILE=$1 $2' -- %t/default.profraw %t/main
|
||||
|
||||
// RUN: %llvm-profdata merge %t/default.profraw -o %t/default.profdata
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
// This unusual use of 'sh' allows the path of the profraw file to be
|
||||
// substituted by %target-run.
|
||||
// RUN: %target-codesign %t/main
|
||||
// RUN: %target-run sh -c 'env LLVM_PROFILE_FILE=$1 $2' -- %t/default.profraw %t/main
|
||||
|
||||
// RUN: %llvm-profdata merge %t/default.profraw -o %t/default.profdata
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
// This unusual use of 'sh' allows the path of the profraw file to be
|
||||
// substituted by %target-run.
|
||||
// RUN: %target-codesign %t/main
|
||||
// RUN: %target-run sh -c 'env LLVM_PROFILE_FILE=$1 $2' -- %t/default.profraw %t/main
|
||||
|
||||
// RUN: %llvm-profdata merge %t/default.profraw -o %t/default.profdata
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
// This unusual use of 'sh' allows the path of the profraw file to be
|
||||
// substituted by %target-run.
|
||||
// RUN: %target-codesign %t/main
|
||||
// RUN: %target-run sh -c 'env LLVM_PROFILE_FILE=$1 $2' -- %t/default.profraw %t/main
|
||||
|
||||
// RUN: %llvm-profdata merge %t/default.profraw -o %t/default.profdata
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
// This unusual use of 'sh' allows the path of the profraw file to be
|
||||
// substituted by %target-run.
|
||||
// RUN: %target-codesign %t/main
|
||||
// RUN: %target-run sh -c 'env LLVM_PROFILE_FILE=$1 $2' -- %t/default.profraw %t/main
|
||||
|
||||
// RUN: %llvm-profdata merge %t/default.profraw -o %t/default.profdata
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
// -- Deployment target is set to pre-10.14.4 so that we use the "old"
|
||||
// Swift runtime bit in compiler-emitted classes
|
||||
// RUN: %target-build-swift -target %target-cpu-apple-macosx10.9 %s -module-name main -o %t/a.out
|
||||
// RUN: %target-codesign %t/a.out
|
||||
// RUN: %target-run %t/a.out | %FileCheck %s
|
||||
|
||||
// REQUIRES: executable_test
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-build-swift %s -o %t/a.out
|
||||
// RUN: %target-codesign %t/a.out
|
||||
// RUN: %target-run %t/a.out | %FileCheck %s
|
||||
|
||||
// REQUIRES: executable_test
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-build-swift -O %s -o %t/a.out
|
||||
// RUN: %target-codesign %t/a.out
|
||||
// RUN: %target-run %t/a.out | %FileCheck %s
|
||||
|
||||
// REQUIRES: executable_test
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-build-swift -O %s -o %t/a.out
|
||||
// RUN: %target-codesign %t/a.out
|
||||
// RUN: %target-run %t/a.out | %FileCheck %s
|
||||
|
||||
// REQUIRES: executable_test
|
||||
|
||||
@@ -4,12 +4,14 @@
|
||||
// RUN: %target-build-swift -O -wmo -parse-as-library -cross-module-optimization -emit-module -emit-module-path=%t/Test.swiftmodule -module-name=Test -I%t %S/Inputs/cross-module-objc.swift -c -o %t/test.o
|
||||
// RUN: %target-build-swift -O -wmo -module-name=Main -I%t %s -c -o %t/main.o
|
||||
// RUN: %target-swiftc_driver %t/main.o %t/test.o -o %t/a.out
|
||||
// RUN: %target-codesign %t/a.out
|
||||
// RUN: %target-run %t/a.out | %FileCheck %s -check-prefix=CHECK-OUTPUT
|
||||
|
||||
// Check if it also works if the main module is compiled with -Onone:
|
||||
|
||||
// RUN: %target-build-swift -Onone -wmo -module-name=Main -I%t %s -c -o %t/main-onone.o
|
||||
// RUN: %target-swiftc_driver %t/main-onone.o %t/test.o -o %t/a.out
|
||||
// RUN: %target-codesign %t/a.out
|
||||
// RUN: %target-run %t/a.out | %FileCheck %s -check-prefix=CHECK-OUTPUT
|
||||
|
||||
// REQUIRES: executable_test
|
||||
|
||||
@@ -5,12 +5,14 @@
|
||||
// RUN: %target-build-swift -O -wmo -parse-as-library -cross-module-optimization -emit-module -emit-module-path=%t/Test.swiftmodule -module-name=Test -I%t %S/Inputs/cross-module.swift -c -o %t/test.o
|
||||
// RUN: %target-build-swift -O -wmo -module-name=Main -I%t %s -c -o %t/main.o
|
||||
// RUN: %target-swiftc_driver %t/main.o %t/test.o %t/submodule.o -o %t/a.out
|
||||
// RUN: %target-codesign %t/a.out
|
||||
// RUN: %target-run %t/a.out | %FileCheck %s -check-prefix=CHECK-OUTPUT
|
||||
|
||||
// Check if it also works if the main module is compiled with -Onone:
|
||||
|
||||
// RUN: %target-build-swift -Onone -wmo -module-name=Main -I%t %s -c -o %t/main-onone.o
|
||||
// RUN: %target-swiftc_driver %t/main-onone.o %t/test.o %t/submodule.o -o %t/a.out
|
||||
// RUN: %target-codesign %t/a.out
|
||||
// RUN: %target-run %t/a.out | %FileCheck %s -check-prefix=CHECK-OUTPUT
|
||||
|
||||
// REQUIRES: executable_test
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-build-swift -O -module-name=test %s -o %t/a.out
|
||||
// RUN: %target-codesign %t/a.out
|
||||
// RUN: %target-run %t/a.out | %FileCheck %s
|
||||
// REQUIRES: executable_test
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-build-swift %s -o %t/a.out
|
||||
// RUN: %target-codesign %t/a.out
|
||||
// RUN: %target-run %t/a.out | %FileCheck %s
|
||||
|
||||
// REQUIRES: executable_test
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-build-swift -O %s -import-objc-header %S/Inputs/dse_with_union.h -o %t/a.out
|
||||
// RUN: %target-codesign %t/a.out
|
||||
// RUN: %target-run %t/a.out | %FileCheck %s
|
||||
|
||||
// REQUIRES: executable_test
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-build-swift -O -wmo -module-name=test %s -o %t/a.out
|
||||
// RUN: %target-codesign %t/a.out
|
||||
// RUN: %target-run %t/a.out
|
||||
|
||||
// REQUIRES: executable_test
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-build-swift -O %s -o %t/a.out
|
||||
// RUN: %target-codesign %t/a.out
|
||||
// RUN: %target-run %t/a.out | %FileCheck %s
|
||||
|
||||
// REQUIRES: executable_test
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
// Also do an end-to-end test to check if the generated code is correct.
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-build-swift -O -Xllvm -module-name=test %s -o %t/a.out
|
||||
// RUN: %target-codesign %t/a.out
|
||||
// RUN: %target-run %t/a.out | %FileCheck %s -check-prefix=CHECK-OUTPUT
|
||||
// REQUIRES: executable_test
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-build-swift %S/Inputs/licm_and_global_addr/test.swift -parse-as-library -wmo -enable-library-evolution -module-name=Test -emit-module -emit-module-path=%t/Test.swiftmodule -c -o %t/test.o
|
||||
// RUN: %target-build-swift -O %S/Inputs/licm_and_global_addr/main.swift %s -I%t %t/test.o -o %t/a.out
|
||||
// RUN: %target-codesign %t/a.out
|
||||
// RUN: %target-run %t/a.out | %FileCheck %s
|
||||
|
||||
// REQUIRES: executable_test
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
// This unusual use of 'sh' allows the path of the profraw file to be
|
||||
// substituted by %target-run.
|
||||
// RUN: %target-codesign %t/main
|
||||
// RUN: %target-run sh -c 'env LLVM_PROFILE_FILE=$1 $2' -- %t/default.profraw %t/main
|
||||
|
||||
// RUN: %llvm-profdata merge %t/default.profraw -o %t/default.profdata
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
// This unusual use of 'sh' allows the path of the profraw file to be
|
||||
// substituted by %target-run.
|
||||
// RUN: %target-codesign %t/main
|
||||
// RUN: %target-run sh -c 'env LLVM_PROFILE_FILE=$1 $2' -- %t/default.profraw %t/main
|
||||
|
||||
// RUN: %llvm-profdata merge %t/default.profraw -o %t/default.profdata
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-build-swift %s -module-name=a -o %t/a.out
|
||||
// RUN: %target-codesign %t/a.out
|
||||
// RUN: %target-run %t/a.out | %FileCheck %s
|
||||
|
||||
// REQUIRES: executable_test
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-build-swift -O %s -o %t/a.out
|
||||
// RUN: %target-codesign %t/a.out
|
||||
// RUN: %target-run %t/a.out | %FileCheck %s
|
||||
|
||||
// REQUIRES: executable_test
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-build-swift -O -module-name=a %s -o %t/a.out
|
||||
// RUN: %target-codesign %t/a.out
|
||||
// RUN: %target-run %t/a.out | %FileCheck %s
|
||||
|
||||
// REQUIRES: executable_test
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-build-swift -O %s -o %t/a.out
|
||||
// RUN: %target-codesign %t/a.out
|
||||
// RUN: %target-run %t/a.out | %FileCheck %s
|
||||
|
||||
// REQUIRES: executable_test
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-build-swift -O %s -o %t/a.out
|
||||
// RUN: %target-codesign %t/a.out
|
||||
// RUN: %target-run %t/a.out | %FileCheck %s
|
||||
|
||||
// REQUIRES: executable_test
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
// RUN: %target-rpath(@executable_path/SDK/Frameworks)
|
||||
|
||||
// --- Run the executable
|
||||
// RUN: %target-codesign %t/HighlevelRunner
|
||||
// RUN: %target-run %t/HighlevelRunner %t/SDK/Frameworks/HighLevel.framework/HighLevel | %FileCheck %s -check-prefix=BEFORE_MOVE
|
||||
|
||||
// --- Build low level framework.
|
||||
@@ -39,6 +40,7 @@
|
||||
// RUN: %S/Inputs/SymbolMove/HighLevel.swift -F %t/SDK/Frameworks -Xlinker -reexport_framework -Xlinker LowLevel -enable-library-evolution
|
||||
|
||||
// --- Run the executable
|
||||
// RUN: %target-codesign %t/HighlevelRunner
|
||||
// RUN: %target-run %t/HighlevelRunner %t/SDK/Frameworks/HighLevel.framework/HighLevel %t/SDK/Frameworks/LowLevel.framework/LowLevel | %FileCheck %s -check-prefix=AFTER_MOVE
|
||||
|
||||
import HighLevel
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-clang %s -all_load %test-resource-dir/%target-sdk-name/libswiftCompatibility50.a %test-resource-dir/%target-sdk-name/libswiftCompatibility51.a -lobjc -o %t/main
|
||||
// RUN: %target-codesign %t/main
|
||||
// RUN: %target-run %t/main
|
||||
// REQUIRES: objc_interop
|
||||
// REQUIRES: executable_test
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-build-swift -o %t/Error -DPTR_SIZE_%target-ptrsize -module-name main %/s
|
||||
// RUN: %target-codesign %t/Error
|
||||
// RUN: %target-run %t/Error
|
||||
// REQUIRES: executable_test
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-build-swift -o %t/ErrorBridged -DPTR_SIZE_%target-ptrsize -module-name main %s
|
||||
// RUN: %target-codesign %t/ErrorBridged
|
||||
// RUN: %target-run %t/ErrorBridged
|
||||
// REQUIRES: executable_test
|
||||
// REQUIRES: objc_interop
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %gyb -DWORD_BITS=%target-ptrsize %s -o %t/Integers.swift
|
||||
// RUN: %line-directive %t/Integers.swift -- %target-build-swift %t/Integers.swift -swift-version 4 -Onone -o %t/a.out
|
||||
// RUN: %line-directive %t/Integers.swift -- %target-codesign %t/a.out
|
||||
// RUN: %line-directive %t/Integers.swift -- %target-run %t/a.out
|
||||
// REQUIRES: executable_test
|
||||
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-build-swift %s -swift-version 5 -DPTR_SIZE_%target-ptrsize -o %t/OSLogExecutionTest
|
||||
// RUN: %target-codesign %t/OSLogExecutionTest
|
||||
// RUN: %target-run %t/OSLogExecutionTest
|
||||
//
|
||||
// RUN: %target-build-swift %s -O -swift-version 5 -DPTR_SIZE_%target-ptrsize -o %t/OSLogExecutionTest
|
||||
// RUN: %target-codesign %t/OSLogExecutionTest
|
||||
// RUN: %target-run %t/OSLogExecutionTest
|
||||
// REQUIRES: executable_test
|
||||
//
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: cp %s %t/main.swift
|
||||
// RUN: %target-build-swift -Xfrontend -disable-access-control -module-name a %t/main.swift %S/../Inputs/SmallStringTestUtilities.swift -o %t.out -O
|
||||
// RUN: %target-codesign %t.out
|
||||
// RUN: %target-run %t.out
|
||||
|
||||
// REQUIRES: executable_test
|
||||
|
||||
@@ -11,6 +11,8 @@
|
||||
// RUN: %target-clang %S/Inputs/FoundationBridge/FoundationBridge.m -c -o %t/FoundationBridgeObjC.o -g
|
||||
// RUN: %target-build-swift %s -I %S/Inputs/FoundationBridge/ -Xlinker %t/FoundationBridgeObjC.o -o %t/TestCalendar
|
||||
|
||||
// RUN: %target-codesign %t/TestCalendar
|
||||
|
||||
// RUN: %target-run %t/TestCalendar > %t.txt
|
||||
// REQUIRES: executable_test
|
||||
// REQUIRES: objc_interop
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-build-swift -emit-library -o %t/dlopen_race.dylib %S/Inputs/dlopen_race_dylib.swift
|
||||
// RUN: %target-build-swift -o %t/dlopen_race %s
|
||||
// RUN: %target-codesign %t/dlopen_race %t/dlopen_race.dylib
|
||||
// RUN: %target-run %t/dlopen_race %t/dlopen_race.dylib
|
||||
// REQUIRES: executable_test
|
||||
// REQUIRES: objc_interop
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-build-swift -lswiftSwiftReflectionTest %s -o %t/reflect_nested
|
||||
// RUN: %target-codesign %t/reflect_nested
|
||||
// RUN: %target-run %target-swift-reflection-test %t/reflect_nested 2>&1 | %FileCheck %s --check-prefix=CHECK-%target-ptrsize
|
||||
// REQUIRES: reflection_test_support
|
||||
// REQUIRES: executable_test
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
// RUN: %target-clang -x objective-c -c %S/Inputs/arc_36509461.m -o %t/arc_36509461.m.o
|
||||
// RUN: %target-swift-frontend -c -O -import-objc-header %S/Inputs/arc_36509461.h -sanitize=address %s -o %t/arc_36509461.swift.o
|
||||
// RUN: %target-build-swift %t/arc_36509461.m.o %t/arc_36509461.swift.o -sanitize=address -o %t/arc_36509461
|
||||
// RUN: %target-codesign %t/arc_36509461
|
||||
// RUN: %target-run %t/arc_36509461
|
||||
|
||||
// REQUIRES: executable_test
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %gyb %s -o %t/NewArray.swift
|
||||
// RUN: %line-directive %t/NewArray.swift -- %target-build-swift %t/NewArray.swift -o %t/a.out -Xfrontend -disable-access-control
|
||||
// RUN: %target-codesign %t/a.out
|
||||
// RUN: %target-run %t/a.out 2>&1 | %line-directive %t/NewArray.swift -- %FileCheck %t/NewArray.swift --check-prefix=CHECK --check-prefix=CHECK-%target-runtime
|
||||
// REQUIRES: executable_test
|
||||
|
||||
|
||||
Reference in New Issue
Block a user