34 lines
1.0 KiB
CMake
34 lines
1.0 KiB
CMake
add_executable(unit_tests main.cpp
|
|
# unit tests
|
|
unit_dag.cpp
|
|
unit_dagrunner.cpp
|
|
unit_dagrun_loggers.cpp
|
|
unit_executor_forkingexecutor.cpp
|
|
unit_executor_slurmexecutor.cpp
|
|
unit_serialization.cpp
|
|
unit_server.cpp
|
|
unit_threadpool.cpp
|
|
unit_utilities.cpp
|
|
# integration tests
|
|
int_basic.cpp
|
|
# Performance checks
|
|
perf_dag.cpp
|
|
)
|
|
target_link_libraries(unit_tests libdaggy stdc++fs Catch2::Catch2 curl)
|
|
|
|
add_executable(integration_tests main.cpp
|
|
# unit tests
|
|
int_basic.cpp
|
|
)
|
|
target_link_libraries(integration_tests libdaggy stdc++fs Catch2::Catch2 curl)
|
|
|
|
add_executable(perf_tests main.cpp
|
|
# Performance checks
|
|
perf_dag.cpp
|
|
)
|
|
target_link_libraries(perf_tests libdaggy stdc++fs Catch2::Catch2 curl)
|
|
|
|
add_test(UNIT_TESTS ${CMAKE_BINARY_DIR}/tests/unit_tests)
|
|
add_test(INT_TESTS ${CMAKE_BINARY_DIR}/tests/integration_tests)
|
|
add_test(PERF_TESTS ${CMAKE_BINARY_DIR}/tests/perf_tests)
|