mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
10747d6385
ticket #324, props Jim Shank; also improve encodation for a few limited cases; also some code fiddling BWIPP: update to latest raster: check for overflow on `size + size2` in `raster_malloc()` vector: put `malloc()`s on one line for grep ease docs: pandoc-3.3, clang-tidy-20
54 lines
1.9 KiB
Bash
Executable File
54 lines
1.9 KiB
Bash
Executable File
#!/bin/bash
|
|
# Copyright (C) 2021-2024 Robin Stuart <rstuart114@gmail.com>
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
# vim: set ts=4 sw=4 et :
|
|
set -e
|
|
|
|
function run_zxingcpp_test() {
|
|
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
|
|
}
|
|
|
|
run_zxingcpp_test "test_2of5" "encode"
|
|
run_zxingcpp_test "test_aztec" "large"
|
|
run_zxingcpp_test "test_aztec" "encode"
|
|
run_zxingcpp_test "test_aztec" "encode_segs"
|
|
run_zxingcpp_test "test_aztec" "fuzz"
|
|
run_zxingcpp_test "test_codablock" "input"
|
|
run_zxingcpp_test "test_codablock" "encode"
|
|
run_zxingcpp_test "test_codablock" "fuzz"
|
|
run_zxingcpp_test "test_code" "encode"
|
|
run_zxingcpp_test "test_code128" "input"
|
|
run_zxingcpp_test "test_code128" "gs1_128_input"
|
|
run_zxingcpp_test "test_code128" "hibc_input"
|
|
run_zxingcpp_test "test_code128" "encode"
|
|
run_zxingcpp_test "test_code16k" "input"
|
|
run_zxingcpp_test "test_code16k" "encode"
|
|
run_zxingcpp_test "test_dmatrix" "input"
|
|
run_zxingcpp_test "test_dmatrix" "encode"
|
|
run_zxingcpp_test "test_dmatrix" "encode_segs"
|
|
run_zxingcpp_test "test_dotcode" "input"
|
|
run_zxingcpp_test "test_dotcode" "encode"
|
|
run_zxingcpp_test "test_dotcode" "encode_segs"
|
|
run_zxingcpp_test "test_hanxin"
|
|
run_zxingcpp_test "test_mailmark" "2d_encode"
|
|
run_zxingcpp_test "test_maxicode" "input"
|
|
run_zxingcpp_test "test_maxicode" "encode"
|
|
run_zxingcpp_test "test_maxicode" "encode_segs"
|
|
run_zxingcpp_test "test_medical" "encode"
|
|
run_zxingcpp_test "test_pdf417" "reader_init"
|
|
run_zxingcpp_test "test_pdf417" "input"
|
|
run_zxingcpp_test "test_pdf417" "encode"
|
|
run_zxingcpp_test "test_pdf417" "encode_segs"
|
|
run_zxingcpp_test "test_pdf417" "fuzz"
|
|
run_zxingcpp_test "test_qr"
|
|
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"
|