From 79390164f53f617583df9697324cedc74e7ca7fb Mon Sep 17 00:00:00 2001 From: Stephen Canon Date: Wed, 17 Nov 2021 21:49:31 -0500 Subject: [PATCH] CMake support for newer tests. --- Sources/_TestSupport/CMakeLists.txt | 1 + Tests/RealTests/CMakeLists.txt | 4 +++- Tests/WindowsMain.swift | 12 ++++++++++++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/Sources/_TestSupport/CMakeLists.txt b/Sources/_TestSupport/CMakeLists.txt index 48b85d1..96c3079 100644 --- a/Sources/_TestSupport/CMakeLists.txt +++ b/Sources/_TestSupport/CMakeLists.txt @@ -8,6 +8,7 @@ See https://swift.org/LICENSE.txt for license information #]] add_library(_TestSupport + BlackHole.swift DoubleWidth.swift Error.swift Interval.swift diff --git a/Tests/RealTests/CMakeLists.txt b/Tests/RealTests/CMakeLists.txt index e7ea4ff..a46c475 100644 --- a/Tests/RealTests/CMakeLists.txt +++ b/Tests/RealTests/CMakeLists.txt @@ -9,8 +9,10 @@ See https://swift.org/LICENSE.txt for license information add_library(RealTests ApproximateEqualityTests.swift + AugmentedArithmeticTests.swift ElementaryFunctionChecks.swift - IntegerExponentTests.swift) + IntegerExponentTests.swift + RelaxedArithmeticTests.swift) target_compile_options(RealTests PRIVATE -enable-testing) target_link_libraries(RealTests PUBLIC diff --git a/Tests/WindowsMain.swift b/Tests/WindowsMain.swift index 5ce400a..74a00d6 100644 --- a/Tests/WindowsMain.swift +++ b/Tests/WindowsMain.swift @@ -67,6 +67,18 @@ extension IntegerExponentTests { } #endif +extension RealTests.AugmentedArithmeticTests { + static var all = testCase([ + ("testTwoSum", RealTests.AugmentedArithmeticTests.testTwoSum), + ]) +} + +extension RealTests.RelaxedArithmeticTests { + static var all = testCase([ + ("testRelaxedArithmetic", RealTests.RelaxedArithmeticTests.testRelaxedArithmetic), + ]) +} + extension ArithmeticTests { static var all = testCase([ ("testPolar", ArithmeticTests.testPolar),