mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-07-10 18:01:52 +02:00
hdf5 definitions in test when not compiled with hdf5
This commit is contained in:
@ -24,11 +24,16 @@ target_sources(tests PRIVATE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/test-Module.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/test-Pattern.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/test-CtbConfig.cpp
|
||||
|
||||
|
||||
|
||||
)
|
||||
|
||||
# HDF5 file
|
||||
if (SLS_USE_HDF5)
|
||||
target_compile_definitions(tests
|
||||
PUBLIC
|
||||
-DHDF5C ${HDF5_DEFINITIONS}
|
||||
)
|
||||
endif (SLS_USE_HDF5)
|
||||
|
||||
target_include_directories(tests
|
||||
PUBLIC
|
||||
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../src>"
|
||||
|
@ -759,6 +759,7 @@ TEST_CASE("rx_roi", "[.cmdcall]") {
|
||||
std::string file_path = "/tmp/test_master_0.json";
|
||||
REQUIRE(std::filesystem::exists(file_path) == true);
|
||||
|
||||
#ifdef HDF5C
|
||||
det.setAcquisitionIndex(0);
|
||||
det.setFileFormat(defs::HDF5);
|
||||
REQUIRE_NOTHROW(caller.call("acquire", {}, -1, PUT));
|
||||
@ -766,6 +767,7 @@ TEST_CASE("rx_roi", "[.cmdcall]") {
|
||||
REQUIRE(std::filesystem::exists(file_path) == true);
|
||||
file_path = "/tmp/test_virtual_0.h5";
|
||||
REQUIRE(std::filesystem::exists(file_path) == true);
|
||||
#endif
|
||||
|
||||
det.setFileWrite(prev_write);
|
||||
if (!prev_path.empty())
|
||||
|
Reference in New Issue
Block a user