From 5bd8aeb22c098bfccd04d107e17e914f2f2ed7de Mon Sep 17 00:00:00 2001 From: Alan Liddell Date: Tue, 14 Nov 2023 18:07:36 -0500 Subject: [PATCH] wip --- tests/CMakeLists.txt | 74 ++++++++++++++++++++++---------------------- 1 file changed, 37 insertions(+), 37 deletions(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 8c06715f..939600b4 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,6 +1,6 @@ -if(${NOTEST}) +if (${NOTEST}) message(STATUS "Skipping test targets") -else() +else () set(NOTEST "TRUE") aq_require(acquire-driver-common) aq_require(acquire-video-runtime) @@ -15,62 +15,62 @@ else() # Tests # set(tests - list-devices -# get-meta # FIXME -# unit-tests -# multiscale-with-trivial-tile-size -# no-set-chunking -# write-zarr-compressed-multiscale -# write-zarr-compressed-with-chunking -# write-zarr-compressed-with-chunking-and-rollover -# write-zarr-raw-multiscale -# write-zarr-raw-with-chunking - write-zarr-raw-with-chunking-and-rollover -# write-zarr-raw-with-ragged-tiling -# write-zarr-v3-compressed -# write-zarr-v3-raw -# write-zarr-with-defaults -# write-zarr-with-lz4-compression -# write-zarr-with-zstd-compression + list-devices + get-meta + unit-tests + multiscale-with-trivial-tile-size + no-set-chunking + write-zarr-compressed-multiscale + write-zarr-compressed-with-chunking + write-zarr-compressed-with-chunking-and-rollover + write-zarr-raw-multiscale + write-zarr-raw-with-chunking + write-zarr-raw-with-chunking-and-rollover + write-zarr-raw-with-ragged-tiling + write-zarr-v3-compressed + write-zarr-v3-raw + write-zarr-with-defaults + write-zarr-with-lz4-compression + write-zarr-with-zstd-compression ) - foreach(name ${tests}) + foreach (name ${tests}) set(tgt "${project}-${name}") add_executable(${tgt} ${name}.cpp) target_compile_definitions(${tgt} PUBLIC "TEST=\"${tgt}\"") set_target_properties(${tgt} PROPERTIES - MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>" + MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>" ) target_include_directories(${tgt} PRIVATE "${CMAKE_CURRENT_LIST_DIR}/../") target_link_libraries(${tgt} - acquire-core-logger - acquire-core-platform - acquire-video-runtime + acquire-core-logger + acquire-core-platform + acquire-video-runtime ) add_test(NAME test-${tgt} COMMAND ${tgt}) set_tests_properties(test-${tgt} PROPERTIES LABELS "anyplatform;acquire-driver-zarr") - endforeach() + endforeach () # # Copy driver to tests # list(POP_FRONT tests onename) - foreach(driver - acquire-driver-common - acquire-driver-zarr + foreach (driver + acquire-driver-common + acquire-driver-zarr ) add_custom_target(${project}-copy-${driver}-for-tests - COMMAND ${CMAKE_COMMAND} -E copy - $ - $ - DEPENDS ${driver} - COMMENT "Copying ${driver} to $" + COMMAND ${CMAKE_COMMAND} -E copy + $ + $ + DEPENDS ${driver} + COMMENT "Copying ${driver} to $" ) - foreach(name ${tests}) + foreach (name ${tests}) add_dependencies(${tgt} ${project}-copy-${driver}-for-tests) - endforeach() - endforeach() -endif() + endforeach () + endforeach () +endif ()