Skip to content

Commit

Permalink
function test is cranky about linking
Browse files Browse the repository at this point in the history
  • Loading branch information
PDoakORNL committed Mar 27, 2024
1 parent 0950a47 commit a5acdef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
9 changes: 8 additions & 1 deletion test/unit/math/function_transform/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
# unit/math/function_transform

set(gtest_main_flag GTEST_MAIN)
if(DCA_HAVE_ADIOS2)
set(gtest_main_flag GTEST_MPI_MAIN)
endif(DCA_HAVE_ADIOS2)

dca_add_gtest(function_transform_test
${gtest_main_flag}
INCLUDE_DIRS ${DCA_INCLUDES};${PROJECT_SOURCE_DIR};${FFTW_INCLUDE_DIR}
LIBS FFTW::Double parallel_no_concurrency ${DCA_LIBS} )
LIBS FFTW::Double parallel_no_concurrency dca_math dca_io dca_domains enumerations function )

dca_add_gtest(space_transform_2D_test
INCLUDE_DIRS ${DCA_INCLUDES};${PROJECT_SOURCE_DIR};${FFTW_INCLUDE_DIR}
Expand Down
13 changes: 0 additions & 13 deletions test/unit/math/function_transform/function_transform_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,16 +148,3 @@ TEST(FunctionTransformTest, SpaceToMomentumCmplx) {
TEST(FunctionTransformTest, MomentumToSpaceCmplx) {
spTestImplementation<KDmn, RDmn>(false);
}

int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);

// ::testing::TestEventListeners& listeners = ::testing::UnitTest::GetInstance()->listeners();
// delete listeners.Release(listeners.default_result_printer());
// listeners.Append(new dca::testing::MinimalistPrinter);

initialize();

int result = RUN_ALL_TESTS();
return result;
}

0 comments on commit a5acdef

Please sign in to comment.