[Testing] NFC: Make BoxingCasts test concurrent

This test is the slowest test on my machine.
This commit is contained in:
David Zarzycki
2021-02-01 08:11:50 -05:00
parent ce587f0a13
commit 716e38c572
5 changed files with 56 additions and 26 deletions

View 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

View 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

View 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

View 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

View File

@@ -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)