write unit tests

This commit is contained in:
RickyRister 2025-03-11 21:44:58 -07:00
parent f9c0e2078c
commit 26d8452492
3 changed files with 239 additions and 0 deletions

View file

@ -0,0 +1,19 @@
add_executable(
parse_cipt_test
../../oracle/src/parsehelpers.cpp
parse_cipt_test.cpp
)
if (NOT GTEST_FOUND)
add_dependencies(parse_cipt_test gtest)
endif ()
set(TEST_QT_MODULES
${COCKATRICE_QT_VERSION_NAME}::Widgets
)
target_link_libraries(
parse_cipt_test cockatrice_common Threads::Threads ${GTEST_BOTH_LIBRARIES} ${TEST_QT_MODULES}
)
add_test(NAME parse_cipt_test COMMAND parse_cipt_test)