From 2760aa4ba47a68a962edd80cec3122725b185c66 Mon Sep 17 00:00:00 2001 From: Stephen Canon Date: Tue, 12 Nov 2019 14:45:59 -0500 Subject: [PATCH] Replace LinuxMain.swift with a fatalError Direct users to run with --enable-test-discovery until it becomes the default. --- .gitignore | 1 - Tests/LinuxMain.swift | 35 +++++++++++------------------------ 2 files changed, 11 insertions(+), 25 deletions(-) diff --git a/.gitignore b/.gitignore index c9d30dd3..a8d82425 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ .DS_Store /*XCTestManifests.swift -/Test/LinuxMain.swift /.build /Packages /*.xcodeproj diff --git a/Tests/LinuxMain.swift b/Tests/LinuxMain.swift index a87d6f14..17f43127 100644 --- a/Tests/LinuxMain.swift +++ b/Tests/LinuxMain.swift @@ -1,25 +1,12 @@ -import XCTest +//===--- LinuxMain.swift --------------------------------------*- swift -*-===// +// +// This source file is part of the Swift Numerics open source project +// +// Copyright (c) 2019 Apple Inc. and the Swift Numerics project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// +//===----------------------------------------------------------------------===// -@testable import ComplexTests -@testable import RealTests - -XCTMain([ - testCase(ArithmeticBenchmarkTests.testDivisionByConstant), - testCase(ArithmeticBenchmarkTests.testReciprocal), - testCase(ArithmeticBenchmarkTests.testDivisionByConstantC), - testCase(ArithmeticBenchmarkTests.testMultiplication), - testCase(ArithmeticBenchmarkTests.testMultiplicationC), - testCase(ArithmeticBenchmarkTests.testDivision), - testCase(ArithmeticBenchmarkTests.testDivisionC), - testCase(ArithmeticBenchmarkTests.testDivisionPoorScaling), - testCase(ArithmeticBenchmarkTests.testDivisionPoorScalingC), - testCase(ArithmeticBenchmarkTests.testMultiplicationPoorScaling), - testCase(ArithmeticBenchmarkTests.testMultiplicationPoorScalingC), - testCase(PropertyTests.testProperties), - testCase(PropertyTests.testEquatableHashable), - testCase(ArithmeticTests.testPolar), - testCase(ArithmeticTests.testBaudinSmith), - testCase(RealTests.testFloat), - testCase(RealTests.testDouble), - testCase(RealTests.testFloat80) -]) +fatalError("Use --enable-test-discovery to run Swift Numerics tests on Linux.")