Skip to content

Commit

Permalink
Replace LinuxMain.swift with a fatalError
Browse files Browse the repository at this point in the history
Direct users to run with --enable-test-discovery until it becomes the default.
  • Loading branch information
stephentyrone committed Nov 12, 2019
1 parent a27ffc7 commit 2760aa4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 25 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.DS_Store
/*XCTestManifests.swift
/Test/LinuxMain.swift
/.build
/Packages
/*.xcodeproj
Expand Down
35 changes: 11 additions & 24 deletions Tests/LinuxMain.swift
Original file line number Diff line number Diff line change
@@ -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.")

0 comments on commit 2760aa4

Please sign in to comment.