Skip to content
Snippets Groups Projects
Commit 1cf64773 authored by Pospelov, Gennady's avatar Pospelov, Gennady
Browse files

Move Core unit tests in C++ files

parent 6b9364b6
No related branches found
No related tags found
No related merge requests found
Showing
with 29 additions and 34 deletions
// To renew this file, run /G/ba/dev-tools/code-tools/update-gtestlist.py <directory>
#include "CustomBinAxisTest.h"
#include "DepthProbeConverterTest.h"
#include "Histogram1DTest.h"
#include "VariableBinAxisTest.h"
#include "Histogram2DTest.h"
#include "KVectorTest.h"
#include "ConstKBinAxisTest.h"
#include "FixedBinAxisTest.h"
#include "CVectorTest.h"
#include "UnitConverter1DTest.h"
#include "PointwiseAxisTest.h"
...@@ -3,18 +3,34 @@ ...@@ -3,18 +3,34 @@
############################################################################ ############################################################################
set(test UnitTestCore) set(test UnitTestCore)
set(libs BornAgainCore) if(POLICY CMP0020)
cmake_policy(SET CMP0020 NEW)
endif()
ADD_GTEST(${test} "Axes" ${libs} 0) if(POLICY CMP0043)
ADD_GTEST(${test} "Sample" ${libs} 0) cmake_policy(SET CMP0043 NEW)
ADD_GTEST(${test} "Fresnel" ${libs} 0) endif()
ADD_GTEST(${test} "Detector" ${libs} 0)
ADD_GTEST(${test} "ExportToPython" ${libs} 0)
ADD_GTEST(${test} "Parameters" ${libs} 0)
ADD_GTEST(${test} "DataStructure" ${libs} 0)
ADD_GTEST(${test} "Other" ${libs} 0)
ADD_GTEST(${test} "SimulationElement" ${libs} 0)
ADD_GTEST(${test} "Fitting" ${libs} 0)
ADD_GTEST(${test} "Numeric0" ${libs} 2)
ADD_GTEST(${test} "Numeric1" ${libs} 2)
#ADD_GTEST(${test} "Axes" ${libs} 0)
#ADD_GTEST(${test} "Sample" ${libs} 0)
#ADD_GTEST(${test} "Fresnel" ${libs} 0)
#ADD_GTEST(${test} "Detector" ${libs} 0)
#ADD_GTEST(${test} "ExportToPython" ${libs} 0)
#ADD_GTEST(${test} "Parameters" ${libs} 0)
#ADD_GTEST(${test} "DataStructure" ${libs} 0)
#ADD_GTEST(${test} "Other" ${libs} 0)
#ADD_GTEST(${test} "SimulationElement" ${libs} 0)
#ADD_GTEST(${test} "Fitting" ${libs} 0)
#ADD_GTEST(${test} "Numeric0" ${libs} 2)
#ADD_GTEST(${test} "Numeric1" ${libs} 2)
file(GLOB source_files "*/*.cpp")
file(GLOB include_files "*/*.h")
list(APPEND source_files "TestAll.cpp" "../utilities/FormFactorTest.cpp")
add_executable(${test} ${source_files} ${include_files})
target_link_libraries(${test} ${BornAgainCore_LIBRARY} gtest)
# add execution of TestCore just after compilation
add_custom_target(${test}_run ALL DEPENDS ${test} COMMAND ${test})
// To renew this file, run /G/ba/dev-tools/code-tools/update-gtestlist.py <directory>
#include "IntensityDataFunctionsTest.h"
#include "IOStrategyTest.h"
#include "OutputDataTest.h"
#include "OutputDataIteratorTest.h"
#include "LLDataTest.h"
#include "ArrayUtilsTest.h"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment