2020-07-15 19:00:12 +01:00
|
|
|
#!/bin/bash
|
2021-01-22 18:07:59 +00:00
|
|
|
# Copyright (C) 2020 - 2021 Robin Stuart <rstuart114@gmail.com>
|
2020-09-30 12:19:12 +01:00
|
|
|
# vim: set ts=4 sw=4 et :
|
|
|
|
set -e
|
|
|
|
|
|
|
|
function run_bwipp_test() {
|
|
|
|
if [ -z "$2" ]; then
|
|
|
|
echo -e "\n$1"
|
2021-06-10 11:15:39 +01:00
|
|
|
backend/tests/$1 -d $(expr 128 + 16 + 32) || exit 1
|
2020-09-30 12:19:12 +01:00
|
|
|
else
|
|
|
|
echo -e "\n$1 -f $2"
|
2021-06-10 11:15:39 +01:00
|
|
|
backend/tests/$1 -f "$2" -d $(expr 128 + 16 + 32) || exit 1
|
2020-09-30 12:19:12 +01:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
run_bwipp_test "test_2of5" "encode"
|
|
|
|
run_bwipp_test "test_auspost" "encode"
|
2020-10-26 12:21:43 +00:00
|
|
|
run_bwipp_test "test_aztec" "encode"
|
Add multiple segments support for AZTEC, CODEONE, DATAMATRIX, DOTCODE,
GRIDMATRIX, HANXIN, MAXICODE, MICROPDF417, PDF417, QRCODE, RMQR, ULTRA
RMQR: fix ECI encoding (wrong bit length for indicator)
MICROQR: check versions M1 and M2 for allowed characters so as to give
better error messages
DOTCODE: some small optimizations
common.c: add is_chr(), segs_length(), segs_cpy()
CODEONE/CODE128/DOTCODE/GRIDMATRIX/HANXIN/MAXICODE/QRCODE/ULTRA: add
namespace prefixes to static funcs/data
includes: use Z_ prefix, unuse double underscore prefixes (guard defines)
manual.txt: compress some tables using double/treble column sets
2022-05-09 19:50:50 +01:00
|
|
|
run_bwipp_test "test_aztec" "encode_segs"
|
2022-07-21 12:29:53 +01:00
|
|
|
run_bwipp_test "test_bc412"
|
2020-09-30 12:19:12 +01:00
|
|
|
run_bwipp_test "test_channel" "encode"
|
|
|
|
run_bwipp_test "test_codablock" "encode"
|
|
|
|
run_bwipp_test "test_code" "encode"
|
|
|
|
run_bwipp_test "test_code1" "encode"
|
Add multiple segments support for AZTEC, CODEONE, DATAMATRIX, DOTCODE,
GRIDMATRIX, HANXIN, MAXICODE, MICROPDF417, PDF417, QRCODE, RMQR, ULTRA
RMQR: fix ECI encoding (wrong bit length for indicator)
MICROQR: check versions M1 and M2 for allowed characters so as to give
better error messages
DOTCODE: some small optimizations
common.c: add is_chr(), segs_length(), segs_cpy()
CODEONE/CODE128/DOTCODE/GRIDMATRIX/HANXIN/MAXICODE/QRCODE/ULTRA: add
namespace prefixes to static funcs/data
includes: use Z_ prefix, unuse double underscore prefixes (guard defines)
manual.txt: compress some tables using double/treble column sets
2022-05-09 19:50:50 +01:00
|
|
|
run_bwipp_test "test_code1" "encode_segs"
|
2020-09-30 12:19:12 +01:00
|
|
|
run_bwipp_test "test_code128" "encode"
|
|
|
|
run_bwipp_test "test_code16k" "encode"
|
|
|
|
run_bwipp_test "test_code49" "encode"
|
|
|
|
run_bwipp_test "test_composite"
|
2022-02-13 13:53:18 +00:00
|
|
|
run_bwipp_test "test_dmatrix" "input"
|
|
|
|
run_bwipp_test "test_dmatrix" "encode"
|
Add multiple segments support for AZTEC, CODEONE, DATAMATRIX, DOTCODE,
GRIDMATRIX, HANXIN, MAXICODE, MICROPDF417, PDF417, QRCODE, RMQR, ULTRA
RMQR: fix ECI encoding (wrong bit length for indicator)
MICROQR: check versions M1 and M2 for allowed characters so as to give
better error messages
DOTCODE: some small optimizations
common.c: add is_chr(), segs_length(), segs_cpy()
CODEONE/CODE128/DOTCODE/GRIDMATRIX/HANXIN/MAXICODE/QRCODE/ULTRA: add
namespace prefixes to static funcs/data
includes: use Z_ prefix, unuse double underscore prefixes (guard defines)
manual.txt: compress some tables using double/treble column sets
2022-05-09 19:50:50 +01:00
|
|
|
run_bwipp_test "test_dmatrix" "encode_segs"
|
|
|
|
run_bwipp_test "test_dotcode" "input"
|
2021-01-22 18:07:59 +00:00
|
|
|
run_bwipp_test "test_dotcode" "encode"
|
Add multiple segments support for AZTEC, CODEONE, DATAMATRIX, DOTCODE,
GRIDMATRIX, HANXIN, MAXICODE, MICROPDF417, PDF417, QRCODE, RMQR, ULTRA
RMQR: fix ECI encoding (wrong bit length for indicator)
MICROQR: check versions M1 and M2 for allowed characters so as to give
better error messages
DOTCODE: some small optimizations
common.c: add is_chr(), segs_length(), segs_cpy()
CODEONE/CODE128/DOTCODE/GRIDMATRIX/HANXIN/MAXICODE/QRCODE/ULTRA: add
namespace prefixes to static funcs/data
includes: use Z_ prefix, unuse double underscore prefixes (guard defines)
manual.txt: compress some tables using double/treble column sets
2022-05-09 19:50:50 +01:00
|
|
|
run_bwipp_test "test_dotcode" "encode_segs"
|
2020-09-30 12:19:12 +01:00
|
|
|
run_bwipp_test "test_gs1" "gs1_reduce"
|
|
|
|
run_bwipp_test "test_imail" "encode"
|
Add multiple segments support for AZTEC, CODEONE, DATAMATRIX, DOTCODE,
GRIDMATRIX, HANXIN, MAXICODE, MICROPDF417, PDF417, QRCODE, RMQR, ULTRA
RMQR: fix ECI encoding (wrong bit length for indicator)
MICROQR: check versions M1 and M2 for allowed characters so as to give
better error messages
DOTCODE: some small optimizations
common.c: add is_chr(), segs_length(), segs_cpy()
CODEONE/CODE128/DOTCODE/GRIDMATRIX/HANXIN/MAXICODE/QRCODE/ULTRA: add
namespace prefixes to static funcs/data
includes: use Z_ prefix, unuse double underscore prefixes (guard defines)
manual.txt: compress some tables using double/treble column sets
2022-05-09 19:50:50 +01:00
|
|
|
run_bwipp_test "test_maxicode" "input"
|
2021-03-28 21:31:45 +01:00
|
|
|
run_bwipp_test "test_maxicode" "encode"
|
Add multiple segments support for AZTEC, CODEONE, DATAMATRIX, DOTCODE,
GRIDMATRIX, HANXIN, MAXICODE, MICROPDF417, PDF417, QRCODE, RMQR, ULTRA
RMQR: fix ECI encoding (wrong bit length for indicator)
MICROQR: check versions M1 and M2 for allowed characters so as to give
better error messages
DOTCODE: some small optimizations
common.c: add is_chr(), segs_length(), segs_cpy()
CODEONE/CODE128/DOTCODE/GRIDMATRIX/HANXIN/MAXICODE/QRCODE/ULTRA: add
namespace prefixes to static funcs/data
includes: use Z_ prefix, unuse double underscore prefixes (guard defines)
manual.txt: compress some tables using double/treble column sets
2022-05-09 19:50:50 +01:00
|
|
|
run_bwipp_test "test_maxicode" "encode_segs"
|
2020-09-30 12:19:12 +01:00
|
|
|
run_bwipp_test "test_medical" "encode"
|
|
|
|
run_bwipp_test "test_pdf417" "encode"
|
Add multiple segments support for AZTEC, CODEONE, DATAMATRIX, DOTCODE,
GRIDMATRIX, HANXIN, MAXICODE, MICROPDF417, PDF417, QRCODE, RMQR, ULTRA
RMQR: fix ECI encoding (wrong bit length for indicator)
MICROQR: check versions M1 and M2 for allowed characters so as to give
better error messages
DOTCODE: some small optimizations
common.c: add is_chr(), segs_length(), segs_cpy()
CODEONE/CODE128/DOTCODE/GRIDMATRIX/HANXIN/MAXICODE/QRCODE/ULTRA: add
namespace prefixes to static funcs/data
includes: use Z_ prefix, unuse double underscore prefixes (guard defines)
manual.txt: compress some tables using double/treble column sets
2022-05-09 19:50:50 +01:00
|
|
|
run_bwipp_test "test_pdf417" "encode_segs"
|
2020-12-23 10:57:24 +00:00
|
|
|
run_bwipp_test "test_plessey" "encode"
|
2020-09-30 12:19:12 +01:00
|
|
|
run_bwipp_test "test_postal" "encode"
|
Add multiple segments support for AZTEC, CODEONE, DATAMATRIX, DOTCODE,
GRIDMATRIX, HANXIN, MAXICODE, MICROPDF417, PDF417, QRCODE, RMQR, ULTRA
RMQR: fix ECI encoding (wrong bit length for indicator)
MICROQR: check versions M1 and M2 for allowed characters so as to give
better error messages
DOTCODE: some small optimizations
common.c: add is_chr(), segs_length(), segs_cpy()
CODEONE/CODE128/DOTCODE/GRIDMATRIX/HANXIN/MAXICODE/QRCODE/ULTRA: add
namespace prefixes to static funcs/data
includes: use Z_ prefix, unuse double underscore prefixes (guard defines)
manual.txt: compress some tables using double/treble column sets
2022-05-09 19:50:50 +01:00
|
|
|
run_bwipp_test "test_qr"
|
2020-09-30 12:19:12 +01:00
|
|
|
run_bwipp_test "test_rss"
|
|
|
|
run_bwipp_test "test_telepen" "encode"
|
2021-12-08 18:12:20 +00:00
|
|
|
run_bwipp_test "test_upcean" "upce_input"
|
2020-09-30 12:19:12 +01:00
|
|
|
run_bwipp_test "test_upcean" "encode"
|
2021-08-10 12:04:25 +01:00
|
|
|
run_bwipp_test "test_ultra" "encode"
|