mirror of
https://github.com/allemangD/toddcox-visualize.git
synced 2025-11-10 12:02:47 -05:00
41 lines
1.5 KiB
CMake
41 lines
1.5 KiB
CMake
function(add_simple_test exec arg)
|
|
add_test(NAME "${exec}_${arg}" COMMAND ${exec} ${arg})
|
|
set_tests_properties("${exec}_${arg}" PROPERTIES TIMEOUT 5)
|
|
endfunction()
|
|
|
|
add_executable(test_pair_map test_pair_map.cpp)
|
|
target_link_libraries(test_pair_map PUBLIC tc)
|
|
add_simple_test(test_pair_map populate)
|
|
add_simple_test(test_pair_map symmetry)
|
|
add_simple_test(test_pair_map fill)
|
|
add_simple_test(test_pair_map copy)
|
|
add_simple_test(test_pair_map move)
|
|
add_simple_test(test_pair_map iterate)
|
|
add_simple_test(test_pair_map iterate_ref)
|
|
add_simple_test(test_pair_map view)
|
|
|
|
add_executable(test_solve test_solve.cpp)
|
|
target_link_libraries(test_solve PUBLIC tc)
|
|
add_simple_test(test_solve A)
|
|
add_simple_test(test_solve B)
|
|
add_simple_test(test_solve D)
|
|
add_simple_test(test_solve E)
|
|
add_simple_test(test_solve F)
|
|
add_simple_test(test_solve G)
|
|
add_simple_test(test_solve H)
|
|
add_simple_test(test_solve I)
|
|
add_simple_test(test_solve T)
|
|
add_simple_test(test_solve X)
|
|
|
|
set(MIN_DEBUG_CPS 300000)
|
|
set(MIN_RELEASE_CPS 700000)
|
|
add_executable(test_solve_speed test_solve_speed.cpp)
|
|
target_link_libraries(test_solve_speed PUBLIC tc)
|
|
target_compile_definitions(test_solve_speed PUBLIC MINIMUM_COS_PER_SEC=$<IF:$<CONFIG:Debug>,${MIN_DEBUG_CPS},${MIN_RELEASE_CPS}>)
|
|
add_simple_test(test_solve_speed B)
|
|
set_tests_properties(test_solve_speed_B PROPERTIES TIMEOUT 45)
|
|
add_simple_test(test_solve_speed E)
|
|
set_tests_properties(test_solve_speed_E PROPERTIES TIMEOUT 30)
|
|
add_simple_test(test_solve_speed T)
|
|
set_tests_properties(test_solve_speed_T PROPERTIES TIMEOUT 15)
|