1
0
mirror of https://git.code.sf.net/p/zint/code synced 2026-01-01 09:17:03 +00:00
Files
zint/frontend/tests
gitlost 848b364df0 CLI: fix bug in "--scalexdimdp" in converting from "in" to "mm"
(was dividing instead of multiplying doh);
  make "--scalexdimdp" units check error messages better;
  add more "--test" tests & have `validate_units()` etc take
  `errbuf` arg to make them more test-friendly
GUI: `copy_to_clipboard()` unshadow `data` -> `fdata`
test suite: make `utf8_to_wide()` same as "backend/output.c" & fix
  return vals;
  add `QZint::save_to_memfile()` test
2025-12-31 14:57:13 +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.