Skip to content

Commit 7e4ce9a

Browse files
committed
Codesign more tests
1 parent e68e087 commit 7e4ce9a

File tree

9 files changed

+9
-0
lines changed

9 files changed

+9
-0
lines changed

test/Interpreter/testability.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// 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
33

44
// RUN: %target-build-swift %s -I %t -Xlinker %t/testability_helper.o -o %t/main
5+
// RUN: %target-codesign %t/main
56
// RUN: %target-run %t/main | %FileCheck %s
67
// REQUIRES: executable_test
78

validation-test/StdlibUnittest/CommandLine.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: %empty-directory(%t)
22
// RUN: %target-build-swift %s -o %t/main.out
3+
// RUN: %target-codesign %t/main.out
34
// RUN: %target-run %t/main.out | %FileCheck -check-prefix=CHECK-EMPTY %s
45
// RUN: %target-run %t/main.out --abc | %FileCheck -check-prefix=CHECK-1 %s
56
// RUN: %target-run %t/main.out --abc def | %FileCheck -check-prefix=CHECK-2 %s

validation-test/StdlibUnittest/Failure.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %target-build-swift -module-name a %s -o %t.out
2+
// RUN: %target-codesign %t.out
23
// RUN: %target-run %t.out
34
// REQUIRES: executable_test
45
// XFAIL: *

validation-test/StdlibUnittest/Filter.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %target-build-swift %s -o %t.out
2+
// RUN: %target-codesign %t.out
23
// RUN: %target-run %t.out --stdlib-unittest-filter abc | %FileCheck --check-prefix=CHECK-ABC %s
34
// RUN: %target-run %t.out --stdlib-unittest-filter xyz | %FileCheck --check-prefix=CHECK-XYZ %s
45

validation-test/execution/testability.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@
1111
// 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
1212

1313
// RUN: %target-build-swift -O %S/../../test/Interpreter/testability.swift -I %t -Xlinker %t/testability_helper.o -o %t/main
14+
// RUN: %target-codesign %t/main
1415
// RUN: %target-run %t/main | %FileCheck %S/../../test/Interpreter/testability.swift
1516
// REQUIRES: executable_test

validation-test/stdlib/CommandLine.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
// 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
55
// RUN: %clang -arch %target-cpu -c -o %t/CommandLineStressTest.o -x c %S/Inputs/CommandLineStressTest/CommandLineStressTest.c
66
// RUN: %target-build-swift %t/CommandLineStressTest.o %t/CommandLineStressTestSwift.o -o %t/CommandLineStressTest
7+
// RUN: %target-codesign %t/CommandLineStressTest
78
// RUN: %target-run %t/CommandLineStressTest foo bar baz qux quux corge grault garply waldo fred plugh xyzzy and thud
89
// REQUIRES: executable_test
910
// REQUIRES: stress_test

validation-test/stdlib/HashingRandomization.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: %empty-directory(%t)
22
// RUN: %target-build-swift -Xfrontend -disable-access-control -module-name main %s -o %t/hash
3+
// RUN: %target-codesign %t/hash
34
// RUN: (export -n %env-SWIFT_DETERMINISTIC_HASHING; %target-run %t/hash && %target-run %t/hash) | %FileCheck --check-prefixes=RANDOM %s
45
// RUN: (export %env-SWIFT_DETERMINISTIC_HASHING=1; %target-run %t/hash && %target-run %t/hash) | %FileCheck --check-prefixes=STABLE %s
56

validation-test/test-runner/AbortIsFailure.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %target-build-swift -module-name a %s -o %t.out
2+
// RUN: %target-codesign %t.out
23
// RUN: %target-run %t.out
34
// REQUIRES: executable_test
45

validation-test/test-runner/NonZeroExitCodeIsFailure.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %target-build-swift -module-name a %s -o %t.out
2+
// RUN: %target-codesign %t.out
23
// RUN: %target-run %t.out
34
// REQUIRES: executable_test
45

0 commit comments

Comments
 (0)