Skip to content

Commit

Permalink
Merge pull request #30 from NCAR/fix-thread-problem
Browse files Browse the repository at this point in the history
Address failure running tests on threads
  • Loading branch information
K20shores authored Jan 12, 2024
2 parents 08d83b4 + 4fc6067 commit 2d9db9c
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,17 @@ endif()
################################################################################
# Run examples as tests

add_test(NAME TUV_5_4 COMMAND tuv-x examples/tuv_5_4.json
WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
add_test(NAME TS1_TSMLT COMMAND tuv-x examples/ts1_tsmlt.json
WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
add_custom_target(make-tuv54-example-dir ALL COMMAND ${CMAKE_COMMAND}
-E make_directory ${CMAKE_BINARY_DIR}/example_tuv_5_4)
add_custom_target(link-tuv54-example-data ALL COMMAND ${CMAKE_COMMAND}
-E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/../data ${CMAKE_BINARY_DIR}/example_tuv_5_4/data)
add_test(NAME TUV_5_4 COMMAND tuv-x ../examples/tuv_5_4.json
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/example_tuv_5_4)
add_custom_target(make-ts1-tsmlt-example-dir ALL COMMAND ${CMAKE_COMMAND}
-E make_directory ${CMAKE_BINARY_DIR}/example_ts1_tsmlt)
add_custom_target(link-ts1-tsmlt-example-data ALL COMMAND ${CMAKE_COMMAND}
-E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/../data ${CMAKE_BINARY_DIR}/example_ts1_tsmlt/data)
add_test(NAME TS1_TSMLT COMMAND tuv-x ../examples/ts1_tsmlt.json
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/example_ts1_tsmlt)

################################################################################

0 comments on commit 2d9db9c

Please sign in to comment.