Skip to content

[embedded] Centralize the OS/target requirements on (most) Embedded Swift tests #78748

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion test/embedded/array-builtins-exec.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
// REQUIRES: swift_in_compiler
// REQUIRES: executable_test
// REQUIRES: optimized_stdlib
// REQUIRES: OS=macosx || OS=linux-gnu
// REQUIRES: swift_feature_Embedded

import Builtin
Expand Down
1 change: 0 additions & 1 deletion test/embedded/array-zero-size-struct.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

// REQUIRES: swift_in_compiler
// REQUIRES: optimized_stdlib
// REQUIRES: OS=macosx || OS=linux-gnu
// REQUIRES: swift_feature_Embedded

public struct MyStruct {
Expand Down
1 change: 0 additions & 1 deletion test/embedded/arrays-enums.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// REQUIRES: swift_in_compiler
// REQUIRES: executable_test
// REQUIRES: optimized_stdlib
// REQUIRES: OS=macosx || OS=linux-gnu
// REQUIRES: swift_feature_Embedded

enum Node {
Expand Down
1 change: 0 additions & 1 deletion test/embedded/class-func.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// REQUIRES: swift_in_compiler
// REQUIRES: executable_test
// REQUIRES: optimized_stdlib
// REQUIRES: OS=macosx || OS=linux-gnu
// REQUIRES: swift_feature_Embedded

@main
Expand Down
1 change: 0 additions & 1 deletion test/embedded/classes-arrays.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
// REQUIRES: swift_in_compiler
// REQUIRES: executable_test
// REQUIRES: optimized_stdlib
// REQUIRES: OS=macosx || OS=linux-gnu
// REQUIRES: swift_feature_Embedded

class MyClass {
Expand Down
1 change: 0 additions & 1 deletion test/embedded/classes-indirect-return.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// RUN: %target-swift-emit-sil %s -enable-experimental-feature Embedded -wmo | %FileCheck %s

// REQUIRES: swift_in_compiler
// REQUIRES: OS=macosx || OS=linux-gnu
// REQUIRES: swift_feature_Embedded

// CHECK: sil @$e4main1XC3fooxyFSi_Tg5 : $@convention(method) (@guaranteed X<Int>) -> Int {
Expand Down
1 change: 0 additions & 1 deletion test/embedded/classes-optional.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
// REQUIRES: swift_in_compiler
// REQUIRES: executable_test
// REQUIRES: optimized_stdlib
// REQUIRES: OS=macosx || OS=linux-gnu
// REQUIRES: swift_feature_Embedded

class Foo {
Expand Down
1 change: 0 additions & 1 deletion test/embedded/classes-stack-promotion.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
// REQUIRES: swift_in_compiler
// REQUIRES: executable_test
// REQUIRES: optimized_stdlib
// REQUIRES: OS=macosx || OS=linux-gnu
// REQUIRES: swift_feature_Embedded

public class MyClass {
Expand Down
1 change: 0 additions & 1 deletion test/embedded/classes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
// REQUIRES: swift_in_compiler
// REQUIRES: executable_test
// REQUIRES: optimized_stdlib
// REQUIRES: OS=macosx || OS=linux-gnu
// REQUIRES: swift_feature_Embedded

class MyClass {
Expand Down
1 change: 0 additions & 1 deletion test/embedded/closures-heap.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
// REQUIRES: swift_in_compiler
// REQUIRES: executable_test
// REQUIRES: optimized_stdlib
// REQUIRES: OS=macosx || OS=linux-gnu
// REQUIRES: swift_feature_Embedded

public class MyClass {
Expand Down
1 change: 0 additions & 1 deletion test/embedded/custom-print.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

// REQUIRES: swift_in_compiler
// REQUIRES: executable_test
// REQUIRES: OS=macosx || OS=linux-gnu
// REQUIRES: swift_feature_Embedded
// REQUIRES: swift_feature_Extern

Expand Down
1 change: 0 additions & 1 deletion test/embedded/cxx-no-metadata.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// RUN: %target-swift-frontend -I %t %t/Main.swift -enable-experimental-feature Embedded -cxx-interoperability-mode=default -c -o %t/a.o -Rmodule-loading

// REQUIRES: swift_in_compiler
// REQUIRES: OS=macosx || OS=linux-gnu
// REQUIRES: swift_feature_Embedded

// BEGIN header.h
Expand Down
1 change: 0 additions & 1 deletion test/embedded/cxxshim.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// RUN: %target-swift-frontend -I %t %t/Main.swift -enable-experimental-feature Embedded -cxx-interoperability-mode=default -c -o %t/a.o -Rmodule-loading

// REQUIRES: swift_in_compiler
// REQUIRES: OS=macosx || OS=linux-gnu
// REQUIRES: swift_feature_Embedded

// BEGIN header.h
Expand Down
1 change: 0 additions & 1 deletion test/embedded/debuginfo-dwarf-types.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

// REQUIRES: swift_in_compiler
// REQUIRES: optimized_stdlib
// REQUIRES: OS=macosx || OS=linux-gnu
// REQUIRES: swift_feature_Embedded

public struct MyType {
Expand Down
1 change: 0 additions & 1 deletion test/embedded/debuginfo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

// REQUIRES: swift_in_compiler
// REQUIRES: optimized_stdlib
// REQUIRES: OS=macosx || OS=linux-gnu
// REQUIRES: swift_feature_Embedded

public func foo<T>(_ array: inout [T]) {
Expand Down
1 change: 0 additions & 1 deletion test/embedded/deinit-release.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

// REQUIRES: swift_in_compiler
// REQUIRES: executable_test
// REQUIRES: OS=macosx || OS=linux-gnu
// REQUIRES: swift_feature_Embedded

class C {}
Expand Down
1 change: 0 additions & 1 deletion test/embedded/deinit-release2.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

// REQUIRES: swift_in_compiler
// REQUIRES: executable_test
// REQUIRES: OS=macosx || OS=linux-gnu
// REQUIRES: swift_feature_Embedded

public var global_c: C? = nil
Expand Down
1 change: 0 additions & 1 deletion test/embedded/dependencies-random.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
// REQUIRES: swift_in_compiler
// REQUIRES: executable_test
// REQUIRES: optimized_stdlib
// REQUIRES: OS=macosx || OS=linux-gnu
// UNSUPPORTED: OS=linux-gnu && CPU=aarch64

// REQUIRES: rdar121923818
Expand Down
1 change: 0 additions & 1 deletion test/embedded/deserialize-vtables.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
// REQUIRES: swift_in_compiler
// REQUIRES: executable_test
// REQUIRES: optimized_stdlib
// REQUIRES: OS=macosx || OS=linux-gnu
// REQUIRES: swift_feature_Embedded
// REQUIRES: swift_feature_Extern

Expand Down
1 change: 0 additions & 1 deletion test/embedded/duration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// RUN: %target-swift-emit-ir -Osize %s -enable-experimental-feature Embedded -wmo

// REQUIRES: swift_in_compiler
// REQUIRES: OS=macosx || OS=linux-gnu
// REQUIRES: swift_feature_Embedded

@available(SwiftStdlib 5.7, *)
Expand Down
1 change: 0 additions & 1 deletion test/embedded/dynamic-self.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// RUN: %target-swift-emit-ir %s -enable-experimental-feature Embedded -parse-as-library -module-name main | %FileCheck %s

// REQUIRES: swift_in_compiler
// REQUIRES: OS=macosx || OS=linux-gnu
// REQUIRES: swift_feature_Embedded

class MyClass {
Expand Down
1 change: 0 additions & 1 deletion test/embedded/existential-class-bound1.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
// REQUIRES: swift_in_compiler
// REQUIRES: executable_test
// REQUIRES: optimized_stdlib
// REQUIRES: OS=macosx || OS=linux-gnu
// REQUIRES: swift_feature_Embedded

protocol ClassBound: AnyObject {
Expand Down
1 change: 0 additions & 1 deletion test/embedded/existential-class-bound2.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// REQUIRES: swift_in_compiler
// REQUIRES: executable_test
// REQUIRES: optimized_stdlib
// REQUIRES: OS=macosx || OS=linux-gnu
// REQUIRES: swift_feature_Embedded

protocol ClassBound: AnyObject {
Expand Down
1 change: 0 additions & 1 deletion test/embedded/existential-class-bound3.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// REQUIRES: swift_in_compiler
// REQUIRES: executable_test
// REQUIRES: optimized_stdlib
// REQUIRES: OS=macosx || OS=linux-gnu
// REQUIRES: swift_feature_Embedded

protocol ClassBound: AnyObject {
Expand Down
1 change: 0 additions & 1 deletion test/embedded/existential-class-bound5.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

// REQUIRES: swift_in_compiler
// REQUIRES: optimized_stdlib
// REQUIRES: OS=macosx || OS=linux-gnu
// REQUIRES: swift_feature_Embedded

protocol ClassBound: AnyObject {
Expand Down
1 change: 0 additions & 1 deletion test/embedded/existential-class-bound6.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
// REQUIRES: swift_in_compiler
// REQUIRES: executable_test
// REQUIRES: optimized_stdlib
// REQUIRES: OS=macosx || OS=linux-gnu
// REQUIRES: swift_feature_Embedded

public var global: AnyObject? = nil
Expand Down
1 change: 0 additions & 1 deletion test/embedded/existential-class-bound7.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

// REQUIRES: swift_in_compiler
// REQUIRES: optimized_stdlib
// REQUIRES: OS=macosx || OS=linux-gnu
// REQUIRES: swift_feature_Embedded

public protocol P: AnyObject {
Expand Down
1 change: 0 additions & 1 deletion test/embedded/existential-class-bound8.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
// RUN: %target-swift-frontend -c -I %t %t/Main.swift -enable-experimental-feature Embedded -o %t/a.o

// REQUIRES: swift_in_compiler
// REQUIRES: OS=macosx || OS=linux-gnu
// REQUIRES: swift_feature_Embedded

// BEGIN MyModule.swift
Expand Down
1 change: 0 additions & 1 deletion test/embedded/existential-class-bound9.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
// REQUIRES: swift_in_compiler
// REQUIRES: executable_test
// REQUIRES: optimized_stdlib
// REQUIRES: OS=macosx || OS=linux-gnu
// REQUIRES: swift_feature_Embedded

protocol ClassBound: AnyObject {
Expand Down
1 change: 0 additions & 1 deletion test/embedded/existential-composition.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// RUN: %target-swift-emit-ir -parse-as-library -module-name main -verify %s -enable-experimental-feature Embedded -wmo

// REQUIRES: OS=macosx || OS=linux-gnu
// REQUIRES: swift_feature_Embedded

protocol ClassBound: AnyObject {
Expand Down
1 change: 0 additions & 1 deletion test/embedded/failable-crash.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// RUN: %target-swift-emit-ir %s -module-name=main -enable-experimental-feature Embedded | %FileCheck %s

// REQUIRES: swift_in_compiler
// REQUIRES: OS=macosx || OS=linux-gnu
// REQUIRES: swift_feature_Embedded

public func test() {
Expand Down
1 change: 0 additions & 1 deletion test/embedded/float-abi-hard.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

// REQUIRES: swift_in_compiler
// REQUIRES: optimized_stdlib
// REQUIRES: OS=macosx || OS=linux-gnu
// REQUIRES: CODEGENERATOR=ARM
// REQUIRES: embedded_stdlib_cross_compiling
// REQUIRES: swift_feature_Embedded
Expand Down
1 change: 0 additions & 1 deletion test/embedded/fno-builtin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

// REQUIRES: swift_in_compiler
// REQUIRES: optimized_stdlib
// REQUIRES: OS=macosx || OS=linux-gnu
// REQUIRES: swift_feature_Embedded

public func foo() -> [Int] {
Expand Down
1 change: 0 additions & 1 deletion test/embedded/fragile-reference.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// RUN: %target-swift-frontend -target armv7-apple-none-macho -module-name main -parse-as-library -Xcc -D__MACH__ -emit-ir %s -enable-experimental-feature Embedded | %FileCheck %s
// RUN: %target-swift-frontend -target arm64-apple-none-macho -module-name main -parse-as-library -Xcc -D__MACH__ -Xcc -D__arm64__ -Xcc -D__APPLE__ -emit-ir %s -enable-experimental-feature Embedded | %FileCheck %s
// REQUIRES: swift_in_compiler
// REQUIRES: OS=macosx || OS=linux-gnu
// REQUIRES: CODEGENERATOR=ARM
// REQUIRES: embedded_stdlib_cross_compiling
// REQUIRES: swift_feature_Embedded
Expand Down
1 change: 0 additions & 1 deletion test/embedded/generic-class-multi-module.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// RUN: %target-swift-frontend -enable-experimental-feature Extern -emit-module -o %t/MyModule.swiftmodule %t/MyModule.swift -enable-experimental-feature Embedded -parse-as-library
// RUN: %target-swift-frontend -enable-experimental-feature Extern -c -I %t %t/Main.swift -enable-experimental-feature Embedded -o %t/a.o

// REQUIRES: OS=macosx || OS=linux-gnu
// REQUIRES: swift_feature_Embedded
// REQUIRES: swift_feature_Extern

Expand Down
1 change: 0 additions & 1 deletion test/embedded/generic-classes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// REQUIRES: swift_in_compiler
// REQUIRES: executable_test
// REQUIRES: optimized_stdlib
// REQUIRES: OS=macosx || OS=linux-gnu
// REQUIRES: swift_feature_Embedded

protocol Fooable {
Expand Down
1 change: 0 additions & 1 deletion test/embedded/generic-classes2.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// REQUIRES: swift_in_compiler
// REQUIRES: executable_test
// REQUIRES: optimized_stdlib
// REQUIRES: OS=macosx || OS=linux-gnu
// REQUIRES: swift_feature_Embedded

class B<T> {
Expand Down
1 change: 0 additions & 1 deletion test/embedded/generic-modules.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
// RUN: %target-swift-frontend -emit-module -o %t/MyModule.swiftmodule %t/MyModule.swift -enable-experimental-feature Embedded -parse-as-library
// RUN: %target-swift-frontend -c -o %t/Main.o -I %t %t/Main.swift -enable-experimental-feature Embedded -parse-as-library

// REQUIRES: OS=macosx || OS=linux-gnu
// REQUIRES: swift_feature_Embedded

// BEGIN MyModule.swift
Expand Down
1 change: 0 additions & 1 deletion test/embedded/init-failable-generic.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// REQUIRES: swift_in_compiler
// REQUIRES: executable_test
// REQUIRES: optimized_stdlib
// REQUIRES: OS=macosx || OS=linux-gnu
// REQUIRES: swift_feature_Embedded

public struct FooError: Error {}
Expand Down
1 change: 0 additions & 1 deletion test/embedded/init-failable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// REQUIRES: swift_in_compiler
// REQUIRES: executable_test
// REQUIRES: optimized_stdlib
// REQUIRES: OS=macosx || OS=linux-gnu
// REQUIRES: swift_feature_Embedded

public struct FooError: Error {}
Expand Down
1 change: 0 additions & 1 deletion test/embedded/init-throwing.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// REQUIRES: swift_in_compiler
// REQUIRES: executable_test
// REQUIRES: optimized_stdlib
// REQUIRES: OS=macosx || OS=linux-gnu
// REQUIRES: swift_feature_Embedded

public struct FooError: Error {}
Expand Down
1 change: 0 additions & 1 deletion test/embedded/keypath-crash.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// RUN: %target-swift-emit-ir %s -module-name=main -enable-experimental-feature Embedded | %FileCheck %s

// REQUIRES: swift_in_compiler
// REQUIRES: OS=macosx || OS=linux-gnu
// REQUIRES: swift_feature_Embedded

@propertyWrapper
Expand Down
1 change: 0 additions & 1 deletion test/embedded/keypaths.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// REQUIRES: swift_in_compiler
// REQUIRES: executable_test
// REQUIRES: optimized_stdlib
// REQUIRES: OS=macosx || OS=linux-gnu
// REQUIRES: swift_feature_Embedded

struct MyStruct {
Expand Down
1 change: 0 additions & 1 deletion test/embedded/keypaths2.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// REQUIRES: swift_in_compiler
// REQUIRES: executable_test
// REQUIRES: optimized_stdlib
// REQUIRES: OS=macosx || OS=linux-gnu
// REQUIRES: swift_feature_Embedded

@dynamicMemberLookup
Expand Down
1 change: 0 additions & 1 deletion test/embedded/keypaths3.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// REQUIRES: swift_in_compiler
// REQUIRES: executable_test
// REQUIRES: optimized_stdlib
// REQUIRES: OS=macosx || OS=linux-gnu
// REQUIRES: swift_feature_Embedded

@dynamicMemberLookup
Expand Down
1 change: 0 additions & 1 deletion test/embedded/keypaths4.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

// REQUIRES: swift_in_compiler
// REQUIRES: optimized_stdlib
// REQUIRES: OS=macosx || OS=linux-gnu
// REQUIRES: swift_feature_Embedded

public func foo() {
Expand Down
1 change: 0 additions & 1 deletion test/embedded/lazy-collections.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// REQUIRES: swift_in_compiler
// REQUIRES: executable_test
// REQUIRES: optimized_stdlib
// REQUIRES: OS=macosx || OS=linux-gnu
// REQUIRES: swift_feature_Embedded

@main
Expand Down
Loading