mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Codesign more tests
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
// RUN: %target-build-swift -emit-library -c %S/Inputs/testability_helper.swift -enable-testing -force-single-frontend-invocation -o %t/testability_helper.o -emit-module
|
||||
|
||||
// RUN: %target-build-swift %s -I %t -Xlinker %t/testability_helper.o -o %t/main
|
||||
// RUN: %target-codesign %t/main
|
||||
// RUN: %target-run %t/main | %FileCheck %s
|
||||
// REQUIRES: executable_test
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-build-swift %s -o %t/main.out
|
||||
// RUN: %target-codesign %t/main.out
|
||||
// RUN: %target-run %t/main.out | %FileCheck -check-prefix=CHECK-EMPTY %s
|
||||
// RUN: %target-run %t/main.out --abc | %FileCheck -check-prefix=CHECK-1 %s
|
||||
// RUN: %target-run %t/main.out --abc def | %FileCheck -check-prefix=CHECK-2 %s
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// RUN: %target-build-swift -module-name a %s -o %t.out
|
||||
// RUN: %target-codesign %t.out
|
||||
// RUN: %target-run %t.out
|
||||
// REQUIRES: executable_test
|
||||
// XFAIL: *
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// RUN: %target-build-swift %s -o %t.out
|
||||
// RUN: %target-codesign %t.out
|
||||
// RUN: %target-run %t.out --stdlib-unittest-filter abc | %FileCheck --check-prefix=CHECK-ABC %s
|
||||
// RUN: %target-run %t.out --stdlib-unittest-filter xyz | %FileCheck --check-prefix=CHECK-XYZ %s
|
||||
|
||||
|
||||
@@ -11,5 +11,6 @@
|
||||
// RUN: %target-build-swift -O -emit-library -c %S/../../test/Interpreter/Inputs/testability_helper.swift -enable-testing -force-single-frontend-invocation -o %t/testability_helper.o -emit-module
|
||||
|
||||
// RUN: %target-build-swift -O %S/../../test/Interpreter/testability.swift -I %t -Xlinker %t/testability_helper.o -o %t/main
|
||||
// RUN: %target-codesign %t/main
|
||||
// RUN: %target-run %t/main | %FileCheck %S/../../test/Interpreter/testability.swift
|
||||
// REQUIRES: executable_test
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
// RUN: %target-build-swift %S/Inputs/CommandLineStressTest/CommandLineStressTest.swift -parse-as-library -force-single-frontend-invocation -module-name CommandLineStressTestSwift -emit-object -o %t/CommandLineStressTestSwift.o
|
||||
// RUN: %clang -arch %target-cpu -c -o %t/CommandLineStressTest.o -x c %S/Inputs/CommandLineStressTest/CommandLineStressTest.c
|
||||
// RUN: %target-build-swift %t/CommandLineStressTest.o %t/CommandLineStressTestSwift.o -o %t/CommandLineStressTest
|
||||
// RUN: %target-codesign %t/CommandLineStressTest
|
||||
// RUN: %target-run %t/CommandLineStressTest foo bar baz qux quux corge grault garply waldo fred plugh xyzzy and thud
|
||||
// REQUIRES: executable_test
|
||||
// REQUIRES: stress_test
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-build-swift -Xfrontend -disable-access-control -module-name main %s -o %t/hash
|
||||
// RUN: %target-codesign %t/hash
|
||||
// RUN: (export -n %env-SWIFT_DETERMINISTIC_HASHING; %target-run %t/hash && %target-run %t/hash) | %FileCheck --check-prefixes=RANDOM %s
|
||||
// RUN: (export %env-SWIFT_DETERMINISTIC_HASHING=1; %target-run %t/hash && %target-run %t/hash) | %FileCheck --check-prefixes=STABLE %s
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// RUN: %target-build-swift -module-name a %s -o %t.out
|
||||
// RUN: %target-codesign %t.out
|
||||
// RUN: %target-run %t.out
|
||||
// REQUIRES: executable_test
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// RUN: %target-build-swift -module-name a %s -o %t.out
|
||||
// RUN: %target-codesign %t.out
|
||||
// RUN: %target-run %t.out
|
||||
// REQUIRES: executable_test
|
||||
|
||||
|
||||
Reference in New Issue
Block a user