Skip to content

Commit

Permalink
[Testing] NFC: Make BoxingCasts test concurrent
Browse files Browse the repository at this point in the history
This test is the slowest test on my machine.
  • Loading branch information
davezarzycki committed Feb 1, 2021
1 parent ce587f0 commit 716e38c
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 26 deletions.
14 changes: 14 additions & 0 deletions validation-test/Casting/BoxingCasts-4.test
Original file line number Diff line number Diff line change
@@ -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 changes: 14 additions & 0 deletions validation-test/Casting/BoxingCasts-4none.test
Original file line number Diff line number Diff line change
@@ -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 changes: 14 additions & 0 deletions validation-test/Casting/BoxingCasts-5.test
Original file line number Diff line number Diff line change
@@ -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 changes: 14 additions & 0 deletions validation-test/Casting/BoxingCasts-5none.test
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 716e38c

Please sign in to comment.