Skip to content

Commit d471f2a

Browse files
Merge pull request #13825 from aschwaighofer/mark_some_executable_tests_as_such
check-swift-only_executable: Mark executable tests as such
2 parents 840166c + de66079 commit d471f2a

File tree

5 files changed

+12
-3
lines changed

5 files changed

+12
-3
lines changed

test/Generics/conditional_conformances_execute_smoke.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// RUN: %target-run-simple-swift | %FileCheck %s
22

3+
// REQUIRES: executable_test
4+
35
// Smoke test to see that various conditional conformances correctly execute
46

57
protocol P1 {

test/Interpreter/SDK/interpret_with_options.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
// RUN: %swift_driver -sdk %sdk -l%S/Inputs/libTestLoad.dylib %s | %FileCheck -check-prefix=WITH-LIB %s
55
// RUN: cd %S && %swift_driver -sdk %sdk -lInputs/libTestLoad.dylib %s | %FileCheck -check-prefix=WITH-LIB %s
66
// REQUIRES: OS=macosx
7+
// REQUIRES: executable_test
78

89
import ObjectiveC
910

test/lit.cfg

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -535,10 +535,12 @@ if config.variant_sdk != "":
535535
if platform.system() == 'Darwin' and (run_os == 'macosx' or run_os == 'darwin'):
536536
# Disable REPL tests if SDK overlay is not in the resource dir.
537537
# <rdar://problem/16678410> Adding more libraries with -lfoo to REPL is broken
538-
config.available_features.add('swift_repl')
539-
config.available_features.add('swift_interpreter')
538+
if swift_test_mode != 'only_non_executable':
539+
config.available_features.add('swift_repl')
540+
config.available_features.add('swift_interpreter')
540541
elif platform.system() == 'Linux':
541-
config.available_features.add('swift_interpreter')
542+
if swift_test_mode != 'only_non_executable':
543+
config.available_features.add('swift_interpreter')
542544

543545
# swift-remoteast-test requires the ability to compile and run code
544546
# for the system we compiled the swift-remoteast-test executable on.

test/stdlib/Metal.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
// REQUIRES: objc_interop
44
// UNSUPPORTED: OS=watchos
55

6+
// REQUIRES: executable_test
7+
68
import StdlibUnittest
79

810
import Metal

test/stdlib/MetalKit.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
// REQUIRES: objc_interop
44
// UNSUPPORTED: OS=watchos
55

6+
// REQUIRES: executable_test
7+
68
import StdlibUnittest
79

810
import Metal

0 commit comments

Comments
 (0)