This commit is contained in:
2025-06-15 13:15:32 +03:00
parent a43b6587b6
commit 98d5fa007f
4 changed files with 132 additions and 44 deletions

View File

@@ -154,4 +154,17 @@ if (WITH_TESTS)
set(FSM_TEST_APP fsm_test)
add_executable(${FSM_TEST_APP} tests/fsm_test.cpp)
# set(TESTS_SRC tests/configfile_test.cpp tests/astrom_test.cpp tests/fitpack_test.cpp tests/fsm_test.cpp)
set(TESTS_SRC tests/coord.cpp)
create_test_sourcelist(Tests common_tests.cpp ${TESTS_SRC})
add_executable(common_tests ${Tests})
# target_include_directories(common_tests PRIVATE ${FITPACK_INCLUDE_DIR})
foreach (test ${TESTS_SRC})
get_filename_component (TName ${test} NAME_WE)
add_test (NAME ${TName} COMMAND common_tests tests/${TName})
endforeach ()
enable_testing()
endif()