Commit Graph

964 Commits

Author SHA1 Message Date
fd656358a3 Add zint-test's testcommon include directory to consumers of the library 2021-06-02 21:14:14 +09:00
3f7356e262 Adapt the README 2021-06-02 21:14:14 +09:00
eabaf54d74 Test both the dynamic and the static library 2021-06-02 21:14:14 +09:00
e5cd0e4ee8 Remove superfluous commas
CMake separates by spaces, not commas. Remove the commas from the strings
2021-06-02 21:14:14 +09:00
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
98cd7b231f Copy the test data into the build directory (just in case) 2021-06-02 21:14:14 +09:00
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
acd12e1754 Add and use helper to set all flags to both the shared and the static library 2021-06-02 21:14:14 +09:00
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
83bac8c8a5 Bind macro definitions to the zint library target
The libpng dependency is exported to consumers, while the ZINT_TEST option
affects the build output. Both are therefore marked public
2021-06-02 21:14:14 +09:00
9b63e2ae22 DOTCODE: allow for max 200 cols in CLI, GUI, Tcl; more detailed size error messages 2021-05-28 15:05:06 +01:00
dfb9345b75 png: ULTRA: allow for fgcolour if bind/box, bug introduced by [ed3cc5] (MR #111) 2021-05-28 14:37:57 +01:00
0337548c77 AZTEC: optimize populate_map (good for small data) 2021-05-27 18:33:19 +01:00
00e8cb0904 Add whitespace_height to zint_symbol (vertical whitespace) 2021-05-25 20:42:26 +01:00
f3a94f0c0c C25STANDARD/C25INTER/C25IATA/C25LOGIC/C25IND: add check digit option (#216) 2021-05-17 20:04:00 +01:00
29d761c795 MAXICODE: Rejig raster output to more closely match ISO 16023:2000 2021-05-16 16:34:42 +01:00
79d3c1dc7a Add GS1PARENS_MODE (input_mode) to allow inputting GS1 AIs in parentheses 2021-05-15 12:23:46 +01:00
6fb0d077bc EAN14, NVE18: fix checksum calc for zero-filled input 2021-05-14 16:04:34 +01:00
d9e8ae582d tests: small additions for AZTEC READER_INIT, PDF417, Big5 2021-04-20 11:49:14 +01:00
5187f2226d MAXICODE: fix shifting from sets C/D/E to A/B (only latch available) 2021-03-28 21:31:45 +01:00
89518c4f01 tif.c: fix endianness detection, props Schaich Alonso 2021-03-23 15:37:18 +00:00
6dc8a242df test_tif: fix, use tiffinfo if available (big speedup) 2021-03-21 21:20:16 +00:00
2d962c6321 get_best_eci: check UTF-8 before returning 26; move is_valid_utf8 to common 2021-03-21 17:35:52 +00:00
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
2c053c325a tif.c: Use palette/bilevel/LZW to reduce file size, alpha/CMYK support 2021-03-19 13:09:21 +00:00
badd9e59ad Fix UPCEAN small font ignored/disabled (introduced [1adba1]) 2021-03-19 00:12:13 +00:00
4e501c77da MAXICODE: fix mask typos for ECI 3/4 bytes 2021-03-18 16:21:22 +00:00
14f67331c2 #223 Use cmake options to interface command line parameters, props Schaich Alonso 2021-03-16 23:38:47 +00:00
20663b4eed Update gen_gs1_lint.php re new Digital Link dlpkey in gs1-format-spec.txt 2021-03-15 15:27:20 +00:00
09e7427259 png.c: suppress clobbered warning by moving init of vars from stack 2021-03-11 11:59:30 +00:00
7a7210cfa1 testcommon.c: Suppress unused args warning in testUtilCmpPngs if NO_PNG 2021-03-08 13:14:38 +00:00
d81b5db271 #220 backend/tests cmake: Use PNG::PNG for libpng (cf #213), props Schaich Alonso 2021-03-08 12:34:34 +00:00
6b7b5109b9 png.c: fix 4-bit odd bitmap width bug introduced by [ed3cc5] (MR #111) 2021-03-05 17:27:11 +00:00
ed3cc51a46 png.c: Use palette for file size savings 2021-02-26 20:45:08 +00:00
7f8c8114f3 #218 Prevent buffer overflow in ean_leading_zeroes by checking max lengths 2021-02-25 17:14:49 +00:00
88d1a9f625 DATAMATRIX: make EOD encodation strictly ISO 16022 compliant 2021-02-23 00:01:15 +00:00
63053c4c0f Update gs1_lint.h re initial index in gs1-format-spec.txt 2021-02-22 19:05:24 +00:00
7bdb7cd8c2 Update gen_gs1_lint.php, gs1_lint.h re fixed length * position in gs1-format-spec.txt 2021-02-20 22:38:20 +00:00
9d023a806a Update gen_gs1_lint.php, gs1_lint.h re new # Data title in gs1-format-spec.txt 2021-02-20 17:50:06 +00:00
2ba7a99db3 Update gen_gs1_lint.php, gs1_lint.h re new fixed length * in gs1-format-spec.txt 2021-02-19 21:10:53 +00:00
ebcd0a0d6d #209 large.c fix oversized arrays by 0-filling; const args, casts 2021-02-11 13:51:07 +00:00
4875a3bcac #209 ps.c move string loop inside if string check 2021-02-10 22:37:59 +00:00
b3610d3c43 #209 font.h guard; improve gs1 c82 check, code1 num_digits 2021-02-09 02:51:36 +00:00
a91933cbdd gs1_verify: GMN (8013) update (gs1-format-spec.txt), X..25, csumalpha 2021-02-08 02:45:11 +00:00
6274140c73 CODEONE: various fixes, ECI support; #209 2021-02-05 23:55:24 +00:00
538efd6e52 gs1_verify: 4308 no pcenc (gs1-format-spec.txt); GS1 General Spec 21.0.1 2021-01-28 23:41:54 +00:00
f6bed3acb2 DOTCODE: Fix best_mask -> high_score prime test; manual mask 2021-01-22 18:07:59 +00:00
484bd6e19a CLI: Handle UTF-8 args on Windows; -b <barcode name> 2021-01-20 21:15:03 +00:00
4efbd46f86 gs1_verify: update bwipp_dump 2021-01-19 17:58:22 +00:00
f9300cb37e gs1_verify: validate AIs from BWIPP gs1-format-spec.txt 2021-01-18 20:10:52 +00:00