1
0
mirror of https://git.code.sf.net/p/zint/code synced 2025-12-28 23:37:09 +00:00
Files
zint/frontend/tests
gitlost a3f6c75bc0 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
2025-12-26 18:22:48 +00:00
..

% frontend/tests/README 2024-01-12

Zint frontend test suite
------------------------

See <project-dir>/backend/tests/README to see how to build the test suite.
In addition to the setup for the backend tests, the environment needs to be
able to find the `zint` application using that name. In UNIX-like systems
this can be configured by prepending the PATH variable with the frontend's
directory inside the build directory:

cd <build-dir>
export PATH=$(pwd)/frontend:${PATH}


------------------------------------------------------------------------------
the frontend test will be automatically run by cmake's ctest, however manual
invocation is also possible:

cd <build-dir>/frontend/test
./test_args

As with the backend tests, individual test functions and single dataset items
can be run using '-f <func-name>' and '-i <index>' etc.