mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Testing] NFC: Make BoxingCasts test concurrent
This test is the slowest test on my machine.
This commit is contained in:
14
validation-test/Casting/BoxingCasts-4.test
Normal file
14
validation-test/Casting/BoxingCasts-4.test
Normal file
@@ -0,0 +1,14 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
//
|
||||
// RUN: %gyb %S/Inputs/BoxingCasts.swift.gyb -o %t/BoxingCasts.swift
|
||||
//
|
||||
// RUN: %line-directive %t/BoxingCasts.swift -- %target-build-swift -g -O -module-name a -O -swift-version 4 %t/BoxingCasts.swift -o %t/a.swift4.O.out
|
||||
// RUN: %target-codesign %t/a.swift4.O.out
|
||||
// RUN: %line-directive %t/BoxingCasts.swift -- %target-run %t/a.swift4.O.out
|
||||
//
|
||||
// Note: The RUN directives above override the default test optimizations.
|
||||
// These tests are deliberately run both ways:
|
||||
// * optimized to verify compiler cast optimizations, and
|
||||
// * non-optimized to verify the runtime methods used for non-optimized casts.
|
||||
//
|
||||
// REQUIRES: executable_test
|
||||
14
validation-test/Casting/BoxingCasts-4none.test
Normal file
14
validation-test/Casting/BoxingCasts-4none.test
Normal file
@@ -0,0 +1,14 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
//
|
||||
// RUN: %gyb %S/Inputs/BoxingCasts.swift.gyb -o %t/BoxingCasts.swift
|
||||
//
|
||||
// RUN: %line-directive %t/BoxingCasts.swift -- %target-build-swift -g -module-name a -Onone -swift-version 4 %t/BoxingCasts.swift -o %t/a.swift4.Onone.out
|
||||
// RUN: %target-codesign %t/a.swift4.Onone.out
|
||||
// RUN: %line-directive %t/BoxingCasts.swift -- %target-run %t/a.swift4.Onone.out
|
||||
//
|
||||
// Note: The RUN directives above override the default test optimizations.
|
||||
// These tests are deliberately run both ways:
|
||||
// * optimized to verify compiler cast optimizations, and
|
||||
// * non-optimized to verify the runtime methods used for non-optimized casts.
|
||||
//
|
||||
// REQUIRES: executable_test
|
||||
14
validation-test/Casting/BoxingCasts-5.test
Normal file
14
validation-test/Casting/BoxingCasts-5.test
Normal file
@@ -0,0 +1,14 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
//
|
||||
// RUN: %gyb %S/Inputs/BoxingCasts.swift.gyb -o %t/BoxingCasts.swift
|
||||
//
|
||||
// RUN: %line-directive %t/BoxingCasts.swift -- %target-build-swift -g -O -module-name a -O -swift-version 5 %t/BoxingCasts.swift -o %t/a.swift5.O.out
|
||||
// RUN: %target-codesign %t/a.swift5.O.out
|
||||
// RUN: %line-directive %t/BoxingCasts.swift -- %target-run %t/a.swift5.O.out
|
||||
//
|
||||
// Note: The RUN directives above override the default test optimizations.
|
||||
// These tests are deliberately run both ways:
|
||||
// * optimized to verify compiler cast optimizations, and
|
||||
// * non-optimized to verify the runtime methods used for non-optimized casts.
|
||||
//
|
||||
// REQUIRES: executable_test
|
||||
14
validation-test/Casting/BoxingCasts-5none.test
Normal file
14
validation-test/Casting/BoxingCasts-5none.test
Normal file
@@ -0,0 +1,14 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
//
|
||||
// RUN: %gyb %S/Inputs/BoxingCasts.swift.gyb -o %t/BoxingCasts.swift
|
||||
//
|
||||
// RUN: %line-directive %t/BoxingCasts.swift -- %target-build-swift -g -module-name a -Onone -swift-version 5 %t/BoxingCasts.swift -o %t/a.swift5.Onone.out
|
||||
// RUN: %target-codesign %t/a.swift5.Onone.out
|
||||
// RUN: %line-directive %t/BoxingCasts.swift -- %target-run %t/a.swift5.Onone.out
|
||||
//
|
||||
// Note: The RUN directives above override the default test optimizations.
|
||||
// These tests are deliberately run both ways:
|
||||
// * optimized to verify compiler cast optimizations, and
|
||||
// * non-optimized to verify the runtime methods used for non-optimized casts.
|
||||
//
|
||||
// REQUIRES: executable_test
|
||||
@@ -13,32 +13,6 @@
|
||||
/// Contains tests for existential, optional, and other casts that box/unbox values.
|
||||
///
|
||||
// -----------------------------------------------------------------------------
|
||||
// RUN: %empty-directory(%t)
|
||||
//
|
||||
// RUN: %gyb %s -o %t/BoxingCasts.swift
|
||||
//
|
||||
// RUN: %line-directive %t/BoxingCasts.swift -- %target-build-swift -g -module-name a -Onone -swift-version 5 %t/BoxingCasts.swift -o %t/a.swift5.Onone.out
|
||||
// RUN: %target-codesign %t/a.swift5.Onone.out
|
||||
// RUN: %line-directive %t/BoxingCasts.swift -- %target-run %t/a.swift5.Onone.out
|
||||
//
|
||||
// RUN: %line-directive %t/BoxingCasts.swift -- %target-build-swift -g -O -module-name a -O -swift-version 5 %t/BoxingCasts.swift -o %t/a.swift5.O.out
|
||||
// RUN: %target-codesign %t/a.swift5.O.out
|
||||
// RUN: %line-directive %t/BoxingCasts.swift -- %target-run %t/a.swift5.O.out
|
||||
//
|
||||
// RUN: %line-directive %t/BoxingCasts.swift -- %target-build-swift -g -module-name a -Onone -swift-version 4 %t/BoxingCasts.swift -o %t/a.swift4.Onone.out
|
||||
// RUN: %target-codesign %t/a.swift4.Onone.out
|
||||
// RUN: %line-directive %t/BoxingCasts.swift -- %target-run %t/a.swift4.Onone.out
|
||||
//
|
||||
// RUN: %line-directive %t/BoxingCasts.swift -- %target-build-swift -g -O -module-name a -O -swift-version 4 %t/BoxingCasts.swift -o %t/a.swift4.O.out
|
||||
// RUN: %target-codesign %t/a.swift4.O.out
|
||||
// RUN: %line-directive %t/BoxingCasts.swift -- %target-run %t/a.swift4.O.out
|
||||
//
|
||||
// Note: The RUN directives above override the default test optimizations.
|
||||
// This test is deliberately run both ways:
|
||||
// * optimized to verify compiler cast optimizations, and
|
||||
// * non-optimized to verify the runtime methods used for non-optimized casts.
|
||||
//
|
||||
// REQUIRES: executable_test
|
||||
|
||||
import StdlibUnittest
|
||||
#if _runtime(_ObjC)
|
||||
Reference in New Issue
Block a user