2021-12-09 07:12:20 +13:00
|
|
|
#!/bin/bash
|
2022-04-10 22:12:18 +12:00
|
|
|
# Copyright (C) 2021-2022 Robin Stuart <rstuart114@gmail.com>
|
2021-12-09 07:12:20 +13:00
|
|
|
# vim: set ts=4 sw=4 et :
|
|
|
|
set -e
|
|
|
|
|
|
|
|
function run_zxingcpp_test() {
|
2022-05-19 21:17:51 +12:00
|
|
|
if [ -z "$2" ]; then
|
|
|
|
echo -e "\n$1"
|
|
|
|
backend/tests/$1 -d $(expr 512 + 16 + 32) || exit 1
|
|
|
|
else
|
|
|
|
echo -e "\n$1 -f $2"
|
|
|
|
backend/tests/$1 -f "$2" -d $(expr 512 + 16 + 32) || exit 1
|
|
|
|
fi
|
2021-12-09 07:12:20 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
run_zxingcpp_test "test_2of5" "encode"
|
|
|
|
run_zxingcpp_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-10 06:50:50 +12:00
|
|
|
run_zxingcpp_test "test_aztec" "encode_segs"
|
2021-12-09 07:12:20 +13:00
|
|
|
run_zxingcpp_test "test_code" "encode"
|
|
|
|
run_zxingcpp_test "test_code128" "encode"
|
|
|
|
run_zxingcpp_test "test_dmatrix" "input"
|
|
|
|
run_zxingcpp_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-10 06:50:50 +12:00
|
|
|
run_zxingcpp_test "test_dmatrix" "encode_segs"
|
|
|
|
run_zxingcpp_test "test_dotcode" "input"
|
2021-12-09 07:12:20 +13:00
|
|
|
run_zxingcpp_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-10 06:50:50 +12:00
|
|
|
run_zxingcpp_test "test_dotcode" "encode_segs"
|
|
|
|
run_zxingcpp_test "test_hanxin" "input"
|
2022-04-10 22:12:18 +12:00
|
|
|
run_zxingcpp_test "test_hanxin" "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-10 06:50:50 +12:00
|
|
|
run_zxingcpp_test "test_hanxin" "encode_segs"
|
|
|
|
run_zxingcpp_test "test_maxicode" "input"
|
2021-12-09 07:12:20 +13:00
|
|
|
run_zxingcpp_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-10 06:50:50 +12:00
|
|
|
run_zxingcpp_test "test_maxicode" "encode_segs"
|
2021-12-09 07:12:20 +13:00
|
|
|
run_zxingcpp_test "test_medical" "encode"
|
|
|
|
run_zxingcpp_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-10 06:50:50 +12:00
|
|
|
run_zxingcpp_test "test_pdf417" "encode_segs"
|
2022-05-19 21:17:51 +12:00
|
|
|
run_zxingcpp_test "test_qr"
|
2021-12-09 07:12:20 +13:00
|
|
|
run_zxingcpp_test "test_rss" "binary_div_modulo_divisor"
|
|
|
|
run_zxingcpp_test "test_rss" "examples"
|
|
|
|
run_zxingcpp_test "test_upcean" "upce_input"
|
|
|
|
run_zxingcpp_test "test_upcean" "encode"
|