mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
9bae0b86f9
also avoid distributive multiplication with floats to lessen chances of platform variation (#204 ARM-Cortex crash) - raster.c: Don't allow for text if scale < 1.0 - raster.c: Cast some indexes to (size_t) to allow for large scale - vector.c: Check malloc()s and return ZINT_ERROR_MEMORY on fail - raster/vector.c: various var name changes & other code fiddling - library.c: Check that scale/height/whitespace/border are reasonable values: scale (0.01-100), height (0-500), whitespace_width/height (0-100), border_width (0-100) - CLI: allow both e.g. '-height' and '--height' (getopt_long_only()) - gif.c: fix GIF_ZLW_PAGE_SIZE -> GIF_LZW_PAGE_SIZE - GUI: allow whitespace/scale to 100 |
||
---|---|---|
.. | ||
cmake/Modules | ||
CMakeLists.txt | ||
README | ||
test_args.c |
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.