From 1f6bb06f2cddb715df0d3f59068f16fe7f9a8caa Mon Sep 17 00:00:00 2001 From: JosJuice Date: Sun, 2 May 2021 18:03:29 +0200 Subject: [PATCH] UnitTests: Move some unit tests to where they should be Two unit tests were in the root UnitTests folder and were not being built when using CMake. --- Source/UnitTests/Common/CMakeLists.txt | 1 + Source/UnitTests/{FileUtil.cpp => Common/FileUtilTest.cpp} | 0 Source/UnitTests/Core/CMakeLists.txt | 6 ++++++ Source/UnitTests/{ => Core/PowerPC}/DivUtilsTest.cpp | 0 Source/UnitTests/UnitTests.vcxproj | 4 ++-- 5 files changed, 9 insertions(+), 2 deletions(-) rename Source/UnitTests/{FileUtil.cpp => Common/FileUtilTest.cpp} (100%) rename Source/UnitTests/{ => Core/PowerPC}/DivUtilsTest.cpp (100%) diff --git a/Source/UnitTests/Common/CMakeLists.txt b/Source/UnitTests/Common/CMakeLists.txt index 86d9dedfcf..2d30517614 100644 --- a/Source/UnitTests/Common/CMakeLists.txt +++ b/Source/UnitTests/Common/CMakeLists.txt @@ -7,6 +7,7 @@ add_dolphin_test(CommonFuncsTest CommonFuncsTest.cpp) add_dolphin_test(CryptoEcTest Crypto/EcTest.cpp) add_dolphin_test(EnumFormatterTest EnumFormatterTest.cpp) add_dolphin_test(EventTest EventTest.cpp) +add_dolphin_test(FileUtilTest FileUtilTest.cpp) add_dolphin_test(FixedSizeQueueTest FixedSizeQueueTest.cpp) add_dolphin_test(FlagTest FlagTest.cpp) add_dolphin_test(FloatUtilsTest FloatUtilsTest.cpp) diff --git a/Source/UnitTests/FileUtil.cpp b/Source/UnitTests/Common/FileUtilTest.cpp similarity index 100% rename from Source/UnitTests/FileUtil.cpp rename to Source/UnitTests/Common/FileUtilTest.cpp diff --git a/Source/UnitTests/Core/CMakeLists.txt b/Source/UnitTests/Core/CMakeLists.txt index 1ea9bee6fb..c834ef82c3 100644 --- a/Source/UnitTests/Core/CMakeLists.txt +++ b/Source/UnitTests/Core/CMakeLists.txt @@ -16,12 +16,18 @@ add_dolphin_test(FileSystemTest IOS/FS/FileSystemTest.cpp) if(_M_X86) add_dolphin_test(PowerPCTest + PowerPC/DivUtilsTest.cpp PowerPC/Jit64Common/ConvertDoubleToSingle.cpp PowerPC/Jit64Common/Frsqrte.cpp ) elseif(_M_ARM_64) add_dolphin_test(PowerPCTest + PowerPC/DivUtilsTest.cpp PowerPC/JitArm64/ConvertSingleDouble.cpp PowerPC/JitArm64/MovI2R.cpp ) +else() + add_dolphin_test(PowerPCTest + PowerPC/DivUtilsTest.cpp + ) endif() diff --git a/Source/UnitTests/DivUtilsTest.cpp b/Source/UnitTests/Core/PowerPC/DivUtilsTest.cpp similarity index 100% rename from Source/UnitTests/DivUtilsTest.cpp rename to Source/UnitTests/Core/PowerPC/DivUtilsTest.cpp diff --git a/Source/UnitTests/UnitTests.vcxproj b/Source/UnitTests/UnitTests.vcxproj index 697625be2a..6c2ee826a3 100644 --- a/Source/UnitTests/UnitTests.vcxproj +++ b/Source/UnitTests/UnitTests.vcxproj @@ -51,6 +51,7 @@ + @@ -69,8 +70,7 @@ - - +