mirror of
https://github.com/woo-j/zint.git
synced 2024-12-25 09:33:56 +03:00
.. | ||
cmake/Modules | ||
data | ||
tools | ||
CMakeLists.txt | ||
README | ||
test_2of5.c | ||
test_auspost.c | ||
test_aztec.c | ||
test_bmp.c | ||
test_channel.c | ||
test_codablock.c | ||
test_code1.c | ||
test_code16k.c | ||
test_code49.c | ||
test_code128.c | ||
test_code.c | ||
test_common.c | ||
test_composite.c | ||
test_dmatrix.c | ||
test_dotcode.c | ||
test_eci.c | ||
test_emf.c | ||
test_gb2312_tab.h | ||
test_gb2312.c | ||
test_gb18030_tab.h | ||
test_gb18030.c | ||
test_gif.c | ||
test_gridmtx.c | ||
test_gs1.c | ||
test_hanxin.c | ||
test_imail.c | ||
test_large.c | ||
test_library.c | ||
test_mailmark.c | ||
test_maxicode.c | ||
test_medical.c | ||
test_pcx.c | ||
test_pdf417.c | ||
test_plessey.c | ||
test_png.c | ||
test_postal.c | ||
test_print.c | ||
test_ps.c | ||
test_qr.c | ||
test_raster.c | ||
test_reedsol.c | ||
test_rss.c | ||
test_sjis_tab.h | ||
test_sjis.c | ||
test_svg.c | ||
test_telepen.c | ||
test_tif.c | ||
test_ultra.c | ||
test_upcean.c | ||
test_vector.c | ||
testcommon.c | ||
testcommon.h |
Zint backend test suite ----------------------- To make, first make libzint with ZINT_TEST defined: cd <project-dir> mkdir build cd build cmake -DZINT_TEST:BOOL=1 .. make Then make the tests: cd <project-dir> cd backend/tests mkdir build cd build cmake -DZINT_TEST:BOOL=1 .. make (ZINT_TEST is needed to export INTERNAL functions for use and testing.) ------------------------------------------------------------------------------ To run all tests (within <project-dir>/backend/tests/build): ctest To run individual tests, eg: ./test_common ./test_vector To run a single test function within an individual test, use '-f <func-name>': ./test_common -f utf8_to_unicode ./test_dotcode -f input To run a single dataset item in a single test function, use '-i <index>': ./test_dotcode -f input -i 2 To show debug info (if any), use '-d <flag>': ./test_dotcode -f input -i 2 -d 1 (for other flags see <project-dir>/backend/tests/testcommon.h) To generate test data, use '-g': ./test_dotcode -f encode -g To run a test against BWIPP (if any), use '-d 128': ./test_composite -d 128 (see also <project-dir>/backend/tests/tools/run_bwipp_tests.sh) ------------------------------------------------------------------------------ To make with gcc sanitize, first set for libzint and make: cd <project-dir> cd build cmake -DZINT_SANITIZE:BOOL=1 .. make && sudo make install Then set for tests and make: cd <project-dir> cd backend/tests/build cmake -DZINT_SANITIZE:BOOL=1 .. make Similarly to make with gcc debug: cd <project-dir> cd build cmake -DZINT_DEBUG:BOOL=1 .. make && sudo make install cd <project-dir> cd backend/tests/build cmake -DZINT_DEBUG:BOOL=1 .. make To undo sanitize/debug, remake each after setting: cmake -DZINT_SANITIZE:BOOL=0 .. cmake -DZINT_DEBUG:BOOL=0 .. To get a clean libzint, set the above and also: cmake -DZINT_TEST:BOOL=0 .. (The tests will now fail to link.)