2021-12-09 07:12:20 +13:00
|
|
|
#!/bin/bash
|
|
|
|
# Copyright (C) 2021 Robin Stuart <rstuart114@gmail.com>
|
|
|
|
# vim: set ts=4 sw=4 et :
|
|
|
|
set -e
|
|
|
|
|
|
|
|
function run_zxingcpp_test() {
|
|
|
|
echo -e "\n$1 -f $2"
|
2021-12-19 05:22:02 +13:00
|
|
|
backend/tests/$1 -f "$2" -d $(expr 512 + 16 + 32) || exit 1
|
2021-12-09 07:12:20 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
run_zxingcpp_test "test_2of5" "encode"
|
|
|
|
run_zxingcpp_test "test_aztec" "encode"
|
|
|
|
run_zxingcpp_test "test_code" "encode"
|
|
|
|
run_zxingcpp_test "test_code128" "encode"
|
|
|
|
run_zxingcpp_test "test_dmatrix" "input"
|
|
|
|
run_zxingcpp_test "test_dmatrix" "encode"
|
|
|
|
run_zxingcpp_test "test_dotcode" "encode"
|
|
|
|
run_zxingcpp_test "test_maxicode" "encode"
|
|
|
|
run_zxingcpp_test "test_medical" "encode"
|
|
|
|
run_zxingcpp_test "test_pdf417" "encode"
|
|
|
|
run_zxingcpp_test "test_qr" "qr_encode"
|
|
|
|
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"
|