gitlost
4d9aa96453
testUtilDataPath: use CMAKE_CURRENT_SOURCE_DIR env to work out-of-tree ( #234 )
2021-07-07 14:47:25 +01:00
gitlost
7379acd4a4
backend/tests/CMakeLists.txt: fix bwipp_dump.ps tar ( #235 ), props Alonso Schaich, Andre Maute
2021-07-07 14:42:16 +01:00
gitlost
f03da2f4ba
CODE128: suppress cppcheck out-of-bounds warning; plus others ( #233 )
2021-07-07 13:58:04 +01:00
gitlost
3c1869b032
library: compat symbology 39 fix; ISBN: "X" check
...
WARN_FAIL_ALL: always return error: ZINT_ERROR_USES_ECI/NON_COMPLIANT
Fuller error messages; more comments zint.h
mainwindow.cpp: replace metaobject ENUM with array
(suppresses virtual in constructor warning)
2021-07-06 19:53:31 +01:00
gitlost
4d3aae45d0
testcommon: fix sizeof bug; AZTEC/QR: suppress cppcheck warnings ( #233 )
2021-07-06 12:13:34 +01:00
gitlost
9b02cd5221
CODEONE: is_last_single_ascii() out-of-bounds sp + 1, #232 CI-Fuzz, props Jan Schrewe
2021-07-05 11:52:43 +01:00
gitlost
bcf6eff93c
testUtilDataPath: fix running from build subdir ( #230 )
2021-07-02 16:13:48 +01:00
gitlost
a312cd8e8e
raster/output: use new isfintf() to test floats integral (CodeQL)
2021-06-30 11:57:21 +01:00
gitlost
37fac73cb1
DATAMATRIX/CODEONE: Use LCM in look ahead tests to avoid floats ( #228 )
2021-06-29 22:02:24 +01:00
gitlost
368633bda4
malloc/calloc: check for NULL always (11.1.0 gcc -fanalyzer -c backend/*.c)
...
ZBarcode_Encode: don't reinit symbol->outfile, props Alonso Schaich
frontend/test_args: skip long filename tests on Windows, props Alonso Schaich
2021-06-29 15:43:42 +01:00
gitlost
52c00e59ba
C25/DBAR: use new func gs1_check_digit() for common GS1 check digit calc
...
CODE11/CODE39/EXCODE39/CODE93/PZN/CHANNEL/VIN/DBAR/UPCEAN: fuller error messages
DATAMATRIX: look_ahead_test debug counts
DBAR: consolidate option_2 cols_per_row
CMakeLists.txt: restore -fno-var-tracking-assignments for gcc no DEBUG
overall: suppress various warnings on various configs
testcommon.c: clean-up
2021-06-27 11:47:55 +01:00
gitlost
70801d8932
tests: VC6 compatible; plot_raster_dotty: avoid float rounding difference
2021-06-23 15:00:49 +01:00
gitlost
c693482aa1
Change height and row_height array to floats; DAFT tracker ratio
2021-06-19 13:11:23 +01:00
gitlost
22a6c583af
test_raster/vector: add height test in prep for float height MR; AZTEC: suppress clang-tidy warning
2021-06-18 01:03:33 +01:00
gitlost
21a4e2c1f6
data file tests: fix [32af28] generate data directory test
2021-06-16 17:56:32 +01:00
gitlost
32af280254
testcommon: add testUtilDataPath() (uses getcwd()) so generate works for data files, remove copy
2021-06-14 00:48:29 +01:00
gitlost
8ff15d805a
CODABAR: fix [69c1b4] errtxt; CLI: _WIN32, fuller error messages; win32/README: Administrat-or
2021-06-12 16:01:16 +01:00
gitlost
69c1b4cbf0
CODABAR: better error messages; win32/README, zint_cmdline_vc6/readme.txt: fixes
2021-06-10 18:04:27 +01:00
gitlost
ede1234b8f
Re MR #121 calcium -> static; reinstate STATIC_UNLESS_ZINT_TEST error_tag/strip_bom; whitespace
2021-06-10 16:20:14 +01:00
Schaich
43d7493cf2
Remove unused variable
2021-06-10 22:46:10 +09:00
Schaich
dce51ceb6d
Use "human readable" file mode
2021-06-10 21:01:34 +09:00
Schaich
afea0ad2c3
Get test_library compiled on windows
...
test_file_unreadable cannot be implemented easily, as files are always
readable by their owner on windows. While `_chmod` is available in the POSIX
compatibility function set, it cannot be used to take away read permissions,
either.
While here, move functional code out of any assert statements. It shall be
executed even when the assertions are disabled
2021-06-10 21:00:42 +09:00
gitlost
4a8cac2a5a
CODEONE/DATAMATRIX/MAILMARK/PLESSEY: fix some 32-bit/portability bugs
...
PLESSEY: add options NCR weighted mod-10, hide check digit(s) in HRT
test suite: now runnable under MSVC 2019, 2017, 2015, MinGW/MSYS
win32/README: update with MSVC 2019 and CMake instructions
2021-06-10 11:15:39 +01:00
Schaich
2221cb1e83
Fix "most" compilation issues MSVC has
...
test_library is still broken
2021-06-02 21:14:14 +09:00
Schaich
88bbeb862b
Move getopt out of the frontend, because it's used in the backend's test, too
2021-06-02 21:14:14 +09:00
Schaich
779a318c93
The testRun function uses getopt(), which is troublesome because the bundled implementation is part of the front-end
2021-06-02 21:14:14 +09:00
Schaich
3114a6697b
Factor out the zint_add_test macro
2021-06-02 21:14:14 +09:00
Schaich
9ff3f13c19
Optionalize the PNG and the Qt dependencies
...
Expose the ability to turn these dependencies off, which results in reduced
functionality. However, it enables a developer using the zint library to
instruct cmake to build a libzint as deployed by e.g. build servers which
don't have png/zint installed, without having to uninstall those libraries
from the development system
2021-06-02 21:14:14 +09:00
Schaich
fd656358a3
Add zint-test's testcommon include directory to consumers of the library
2021-06-02 21:14:14 +09:00
Schaich
3f7356e262
Adapt the README
2021-06-02 21:14:14 +09:00
Schaich
eabaf54d74
Test both the dynamic and the static library
2021-06-02 21:14:14 +09:00
Schaich
e5cd0e4ee8
Remove superfluous commas
...
CMake separates by spaces, not commas. Remove the commas from the strings
2021-06-02 21:14:14 +09:00
Schaich
6de8fe1c62
Move only downwards in the filesystem hierarchy
...
This will pick up the local copies of the test data by default, without
needing to create a subdirectory in the backend/tests path and executing
the tests from there. The Current Working Directory can be set if this
proves to be insufficient
2021-06-02 21:14:14 +09:00
Schaich
98cd7b231f
Copy the test data into the build directory (just in case)
2021-06-02 21:14:14 +09:00
Schaich
c84915e212
Linking the tests against zint-static if available
...
Linking against the dynamic zint library requires LD_LIBRARY_PATH and friends
to be set, which complicates the test setup. On the long run, we want to be
able to test both the dynamic and the static (at the same time), though
2021-06-02 21:14:14 +09:00
Schaich
3e89058051
Turn zint tests into a subproject of backend
...
All dependency handling is implied via linking to the zint target. Options
are inherited from the backend build
2021-06-02 21:14:14 +09:00
gitlost
9b63e2ae22
DOTCODE: allow for max 200 cols in CLI, GUI, Tcl; more detailed size error messages
2021-05-28 15:05:06 +01:00
gitlost
dfb9345b75
png: ULTRA: allow for fgcolour if bind/box, bug introduced by [ed3cc5] (MR #111 )
2021-05-28 14:37:57 +01:00
gitlost
0337548c77
AZTEC: optimize populate_map (good for small data)
2021-05-27 18:33:19 +01:00
gitlost
00e8cb0904
Add whitespace_height to zint_symbol (vertical whitespace)
2021-05-25 20:42:26 +01:00
gitlost
f3a94f0c0c
C25STANDARD/C25INTER/C25IATA/C25LOGIC/C25IND: add check digit option ( #216 )
2021-05-17 20:04:00 +01:00
gitlost
29d761c795
MAXICODE: Rejig raster output to more closely match ISO 16023:2000
2021-05-16 16:34:42 +01:00
gitlost
79d3c1dc7a
Add GS1PARENS_MODE (input_mode) to allow inputting GS1 AIs in parentheses
2021-05-15 12:23:46 +01:00
gitlost
6fb0d077bc
EAN14, NVE18: fix checksum calc for zero-filled input
2021-05-14 16:04:34 +01:00
gitlost
d9e8ae582d
tests: small additions for AZTEC READER_INIT, PDF417, Big5
2021-04-20 11:49:14 +01:00
gitlost
5187f2226d
MAXICODE: fix shifting from sets C/D/E to A/B (only latch available)
2021-03-28 21:31:45 +01:00
gitlost
6dc8a242df
test_tif: fix, use tiffinfo if available (big speedup)
2021-03-21 21:20:16 +00:00
gitlost
2d962c6321
get_best_eci: check UTF-8 before returning 26; move is_valid_utf8 to common
2021-03-21 17:35:52 +00:00
gitlost
7f74414666
eci.c: fix bad bug in Korean, return EUC-KR instead of raw KS X 1001
2021-03-20 14:36:21 +00:00
gitlost
2c053c325a
tif.c: Use palette/bilevel/LZW to reduce file size, alpha/CMYK support
2021-03-19 13:09:21 +00:00