1
0
mirror of https://git.code.sf.net/p/zint/code synced 2026-01-02 09:47:21 +00:00

CLI: add ZINT_TEST-only "--test" option (currently just ensures

the barcode name table is sorted so binary chop works), adding
  `ZINT_HAVE_GS1SE` define to "zint_add_test.cmake" - allows
  `test_barcode_symbology()` in "test_args.c" to be a lot less
  verbose; `const`-up various variables;
manual: use better MAILMAKE_4S example data and mention special
  fixed string international destination
This commit is contained in:
gitlost
2025-12-26 18:22:48 +00:00
parent e8d9b7195a
commit a3f6c75bc0
8 changed files with 231 additions and 336 deletions

View File

@@ -11,6 +11,9 @@ macro(zint_add_test test_name test_command)
if(NOT (ZINT_USE_PNG AND PNG_FOUND))
target_compile_definitions(${test_command} PRIVATE ZINT_NO_PNG)
endif()
if(ZINT_USE_GS1SE AND GS1SE)
target_compile_definitions(${test_command} PRIVATE ZINT_HAVE_GS1SE)
endif()
add_test(${test_name} ${test_command})
if(MSVC)
@@ -28,6 +31,9 @@ macro(zint_add_test test_name test_command)
if(NOT (ZINT_USE_PNG AND PNG_FOUND))
target_compile_definitions(${test_command}-static PRIVATE ZINT_NO_PNG)
endif()
if(ZINT_USE_GS1SE AND GS1SE)
target_compile_definitions(${test_command}-static PRIVATE ZINT_HAVE_GS1SE)
endif()
add_test(${test_name}-static ${test_command}-static)
if(MSVC)
string(REPLACE ";" "\\;" env_path "$ENV{PATH}")