-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
107 changed files
with
3,716 additions
and
2,059 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,35 @@ | ||
# disable clang tidy for test files | ||
set(CMAKE_CXX_CLANG_TIDY "") | ||
|
||
add_executable(micmDriver example.cpp) | ||
target_link_libraries(micmDriver PUBLIC musica::micm ) | ||
if(MICM_ENABLE_EXAMPLES) | ||
add_executable(micmDriver example.cpp) | ||
target_link_libraries(micmDriver PUBLIC musica::micm) | ||
set_target_properties(micmDriver PROPERTIES OUTPUT_NAME "micm") | ||
|
||
set_target_properties(micmDriver PROPERTIES OUTPUT_NAME "micm") | ||
################################################################################ | ||
# Run each example configuration as a test | ||
|
||
################################################################################ | ||
# Run each example configuration as a test | ||
add_test(NAME carbon_bond_5_example | ||
COMMAND micm ${CMAKE_BINARY_DIR}/examples/configs/carbon_bond_5 ${CMAKE_BINARY_DIR}/examples/configs/carbon_bond_5/initial_conditions.csv | ||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}) | ||
add_test(NAME chapman_example | ||
COMMAND micm ${CMAKE_BINARY_DIR}/examples/configs/chapman ${CMAKE_BINARY_DIR}/examples/configs/chapman/initial_conditions.csv | ||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}) | ||
add_test(NAME robertson_example | ||
COMMAND micm ${CMAKE_BINARY_DIR}/examples/configs/robertson ${CMAKE_BINARY_DIR}/examples/configs/robertson/initial_conditions.csv | ||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}) | ||
add_test(NAME ts1_example | ||
COMMAND micm ${CMAKE_BINARY_DIR}/examples/configs/TS1 ${CMAKE_BINARY_DIR}/examples/configs/TS1/initial_conditions.csv | ||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}) | ||
endif() | ||
|
||
add_test(NAME carbon_bond_5_example | ||
COMMAND micm ${CMAKE_BINARY_DIR}/examples/configs/carbon_bond_5 ${CMAKE_BINARY_DIR}/examples/configs/carbon_bond_5/initial_conditions.csv | ||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}) | ||
add_test(NAME chapman_example | ||
COMMAND micm ${CMAKE_BINARY_DIR}/examples/configs/chapman ${CMAKE_BINARY_DIR}/examples/configs/chapman/initial_conditions.csv | ||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}) | ||
add_test(NAME robertson_example | ||
COMMAND micm ${CMAKE_BINARY_DIR}/examples/configs/robertson ${CMAKE_BINARY_DIR}/examples/configs/robertson/initial_conditions.csv | ||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}) | ||
add_test(NAME ts1_example | ||
COMMAND micm ${CMAKE_BINARY_DIR}/examples/configs/TS1 ${CMAKE_BINARY_DIR}/examples/configs/TS1/initial_conditions.csv | ||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}) | ||
if(MICM_ENABLE_PROFILE) | ||
add_executable(micmprofiler profile_example.cpp) | ||
target_link_libraries(micmprofiler PUBLIC musica::micm) | ||
set_target_properties(micmprofiler PROPERTIES OUTPUT_NAME "profile") | ||
|
||
# Run TS1 configuration as a test | ||
add_test(NAME profile_ts1 | ||
COMMAND profile ${CMAKE_BINARY_DIR}/examples/configs/TS1 ${CMAKE_BINARY_DIR}/examples/configs/TS1/initial_conditions.csv | ||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}) | ||
endif() |
Oops, something went wrong.