diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2024-07-03 10:19:36 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2024-07-03 10:19:36 +0200 |
commit | b6bd52cd7330a90fc0e44dbe6022551a8dd768a1 (patch) | |
tree | 9804282102f8c40d27407b9c94119b35eeb5013c /app/bin/unittest/CMakeLists.txt | |
parent | c9d0740841fbe0539e42e66d3865672bfcd3ac02 (diff) | |
parent | a14a7a0ccc9de76aeab0b2e4bbf58f1a79deedc2 (diff) |
Update upstream source from tag 'upstream/5.3.0GA'
Update to upstream version '5.3.0GA'
with Debian dir dfd14d63b0238e276ade6f54dd9100325df5b2f9
Diffstat (limited to 'app/bin/unittest/CMakeLists.txt')
-rw-r--r-- | app/bin/unittest/CMakeLists.txt | 78 |
1 files changed, 54 insertions, 24 deletions
diff --git a/app/bin/unittest/CMakeLists.txt b/app/bin/unittest/CMakeLists.txt index d4e237f..ce5f2f4 100644 --- a/app/bin/unittest/CMakeLists.txt +++ b/app/bin/unittest/CMakeLists.txt @@ -1,4 +1,7 @@ # build unit tests for the xtrkcad library +# + +# dxf formatting add_executable(dxfformattest dxfformattest.c @@ -11,25 +14,33 @@ target_link_libraries(dxfformattest add_test(DXFOutputTest dxfformattest) +# path manipulation + add_executable( pathstest pathstest.c ) target_link_libraries(pathstest dynstring - ${LIBS}) + xtrkcad-wlib + ${LIBS}) add_test(PathsTest pathstest) +# handling of default settings + add_executable( defaultstest defaultstest.c ) target_link_libraries(defaultstest - ${LIBS}) + xtrkcad-wlib + ${LIBS}) add_test(DefaultsTest defaultstest) +# + add_executable(shortentest shortentest.c ../shortentext.c @@ -40,25 +51,44 @@ target_link_libraries(shortentest add_test(ShortenTest shortentest) -add_test(CatalogTest catalogtest) - -set (TESTXTP - "atl83ho.xtp" "atlasn.xtp" "HO-Peco-Code83.xtp" - ) - -foreach(testfile IN LISTS TESTXTP ) - configure_file ( ${CMAKE_CURRENT_SOURCE_DIR}/testfiles/${testfile} - ${CMAKE_CURRENT_BINARY_DIR} - COPYONLY ) -endforeach() - -add_executable(catalogtest - catalogtest.c - ../partcatalog.c - ../paths.c - ../stringxtc.c - ) - -target_link_libraries(catalogtest - dynstring - ${LIBS})
\ No newline at end of file +# parts catalog +# disabled because it pulls in too many dependencies + +# add_test(CatalogTest catalogtest) + +# # parameter files for test cases: +# # - two manufacturers +# # - two scales from same manufacturer + +# set (TESTXTP +# "atl83ho.xtp" "atlasn.xtp" "HO-Peco-Code83.xtp" +# ) + +# foreach(testfile IN LISTS TESTXTP ) +# configure_file ( ${CMAKE_CURRENT_SOURCE_DIR}/testfiles/${testfile} +# ${CMAKE_CURRENT_BINARY_DIR} +# COPYONLY ) +# endforeach() + +# add_executable(catalogtest +# catalogtest.c +# ../partcatalog.c +# ../paths.c +# ../stringxtc.c +# ../levenshtein.c +# ) + +# target_link_libraries(catalogtest +# dynstring +# ${CMOCKA_LIBRARIES} +# ) + + +set_target_properties( + dxfformattest +# catalogtest + shortentest + defaultstest + pathstest + PROPERTIES FOLDER UnitTests + )
\ No newline at end of file |