Commit 5856dc23 authored by Pierre Aubert's avatar Pierre Aubert
Browse files

Add test to improve coverage

parent 6f874b73
Pipeline #130517 passed with stages
in 7 minutes and 38 seconds
......@@ -11,6 +11,7 @@ pull_extra_module("StringUtils" "https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS/S
pull_extra_module("OptionParser" "https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS/OptionParser.git")
pull_extra_module("FileParser" "https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS/FileParser.git")
include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR})
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src)
......@@ -22,6 +23,7 @@ add_subdirectory(src)
set(PHOENIX_HDF5_EXECUTABLE "${CMAKE_CURRENT_BINARY_DIR}/src/phoenix_hdf5" CACHE STRING " executable phoenix_hdf5")
if(SELF_TESTS_MODE)
pull_extra_module("PhoenixUnitTest" "https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS/PhoenixUnitTest.git")
include(CTest)
add_subdirectory(TESTS)
endif(SELF_TESTS_MODE)
......
......@@ -8,6 +8,8 @@ message(STATUS "HDF5_CXX_LIBRARIES = ${HDF5_CXX_LIBRARIES}")
include(callGenerator.cmake)
add_subdirectory(TEST_BASE_CONFIG)
add_subdirectory(TEST_BASE_CONFIG_PARSER)
add_subdirectory(TEST_TYPE)
add_subdirectory(TEST_TYPE_T)
add_subdirectory(TEST_TABLE_CONFIG)
......
......@@ -12,13 +12,3 @@ add_test(NAME TestBaseConfig
add_test(NAME TestBaseUnexistingConfig
COMMAND ${PHOENIX_HDF5_EXECUTABLE} -i unexistingConfigFile.ph5
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
set_tests_properties(TestBaseUnexistingConfig PROPERTIES WILL_FAIL true)
add_test(NAME TestBaseUnexistingOutputDir
COMMAND ${PHOENIX_HDF5_EXECUTABLE} -i ${CMAKE_CURRENT_SOURCE_DIR}/baseConfig.ph5 -o "UnexistingOutputDir/"
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
set_tests_properties(TestBaseUnexistingOutputDir PROPERTIES WILL_FAIL true)
add_test(NAME TestHDF5BaseConfigParser
COMMAND ${PHOENIXUNITTEST_PHOENIX_DRIPFILE_EXECUTABLE} -i ${CMAKE_CURRENT_SOURCE_DIR}/baseConfig.ph5 -x -c "${PHOENIX_HDF5_EXECUTABLE} -i FILENAME"
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
# set_tests_properties(TestHDF5BaseConfigParser PROPERTIES WILL_FAIL true)
///Table of parameter
TableParameters{
///Position on the x axis
float x;
///Position on the y axis
float y;
///Table of value
Tensor(float, nbCol) tabValue;
///Matrix of value
Tensor(float, nbRow, nbCol) matValue;
///Tensor of value
Tensor(float, nbSlice, nbRow, nbCol) tensorValue;
}
///Table of parameter
TableParametersRename[newName]{
///Position on the x axis
float x;
///Position on the y axis
float y[otherName];
///Table of value
Tensor(float, nbCol) tabValue;
///Matrix of value
Tensor(float, nbRow, nbCol) matValue;
///Tensor of value
Tensor(float, nbSlice, nbRow, nbCol) tensorValue;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment