From 8d16bf071a09db7ebeca8d083961f27c8a15ca89 Mon Sep 17 00:00:00 2001 From: Loren Schwiebert Date: Thu, 21 Sep 2023 10:48:02 -0400 Subject: [PATCH] Remove Endian Tests since Endian.h is no longer used in GOMC --- test/BuildCPUTests.cmake | 4 ---- test/FileList.cmake | 2 -- test/src/EndianTest.cpp | 19 ------------------- 3 files changed, 25 deletions(-) delete mode 100644 test/src/EndianTest.cpp diff --git a/test/BuildCPUTests.cmake b/test/BuildCPUTests.cmake index babf4dad8..1e9da8db7 100644 --- a/test/BuildCPUTests.cmake +++ b/test/BuildCPUTests.cmake @@ -11,7 +11,6 @@ function(add_NVT_test name) #add_test(NAME CircuitTester_NVT COMMAND DialaTest) add_test(NAME MolLookupTest_NVT COMMAND CheckConsensusBeta) #add_test(NAME PSFParserTest_NVT COMMAND CheckProtAndWaterTest) - add_test(NAME EndianTest_NVT COMMAND TestBitSwap) endfunction(add_NVT_test) function(add_NPT_test name) @@ -25,7 +24,6 @@ function(add_NPT_test name) #add_test(NAME CircuitTester_NPT COMMAND DialaTest) add_test(NAME MolLookupTest_NPT COMMAND CheckConsensusBeta) #add_test(NAME PSFParserTest_NPT COMMAND CheckProtAndWaterTest) - add_test(NAME EndianTest_NPT COMMAND TestBitSwap) endfunction(add_NPT_test) function(add_GCMC_test name) @@ -41,7 +39,6 @@ function(add_GCMC_test name) #add_test(NAME PSFParserTest_GCMC COMMAND CheckProtAndWaterTest) add_test(NAME ConsistentTrajectoryTest_GCMC COMMAND CheckPDBTrajCoordinates) #add_test(NAME CheckpointTest_GCMC COMMAND CheckMollookup) - add_test(NAME EndianTest_GCMC COMMAND TestBitSwap) endfunction(add_GCMC_test) function(add_GEMC_test name) @@ -57,7 +54,6 @@ function(add_GEMC_test name) #add_test(NAME PSFParserTest_GEMC COMMAND CheckProtAndWaterTest) add_test(NAME ConsistentTrajectoryTest_GEMC COMMAND CheckPDBTrajCoordinates) #add_test(NAME CheckpointTest_GEMC COMMAND CheckMollookup) - add_test(NAME EndianTest_GEMC COMMAND TestBitSwap) endfunction(add_GEMC_test) add_NVT_test(GOMC_NVT_Test) diff --git a/test/FileList.cmake b/test/FileList.cmake index b16a7652e..472c0aae3 100644 --- a/test/FileList.cmake +++ b/test/FileList.cmake @@ -1,7 +1,6 @@ set(TestSources test/src/BasicTypesTest.cpp test/src/BitLibTest.cpp - test/src/EndianTest.cpp test/src/MolLookupTest.cpp #test/src/CircuitTester.cpp #test/src/PSFParserTest.cpp @@ -206,7 +205,6 @@ set(libHeaders lib/AlphaNum.h lib/BasicTypes.h lib/BitLib.h - lib/Endian.h lib/GeomLib.h lib/Lambda.h lib/NumLib.h diff --git a/test/src/EndianTest.cpp b/test/src/EndianTest.cpp deleted file mode 100644 index 1c060234b..000000000 --- a/test/src/EndianTest.cpp +++ /dev/null @@ -1,19 +0,0 @@ -#include "Endian.h" -#include - -TEST(EndianTest, TestBitSwap) { - uint64_t x = 0x0123456789abcdefull; - uint64_t rev_x = 0xefcdab8967452301ull; - EXPECT_EQ(rev_x, bswap_64(x)); - - uint32_t y = 0x01234567; - uint32_t rev_y = 0x67452301; - EXPECT_EQ(rev_y, bswap_32(y)); - - uint16_t z = 0x0123; - uint16_t rev_z = 0x2301; - EXPECT_EQ(rev_z, bswap_16(z)); - - uint64_t w = 0x0123456789abcdefull; - EXPECT_EQ(w, bswap_64(bswap_64(w))); -} \ No newline at end of file