2020-07-16 06:00:12 +12:00
|
|
|
#!/bin/bash
|
2021-01-23 07:07:59 +13:00
|
|
|
# Copyright (C) 2020 - 2021 Robin Stuart <rstuart114@gmail.com>
|
2020-10-01 00:19:12 +13: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 22:15:39 +12:00
|
|
|
backend/tests/$1 -d $(expr 128 + 16 + 32) || exit 1
|
2020-10-01 00:19:12 +13:00
|
|
|
else
|
|
|
|
echo -e "\n$1 -f $2"
|
2021-06-10 22:15:39 +12:00
|
|
|
backend/tests/$1 -f "$2" -d $(expr 128 + 16 + 32) || exit 1
|
2020-10-01 00:19:12 +13:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
run_bwipp_test "test_2of5" "encode"
|
|
|
|
run_bwipp_test "test_auspost" "encode"
|
2020-10-27 01:21:43 +13:00
|
|
|
run_bwipp_test "test_aztec" "encode"
|
2020-10-01 00:19:12 +13: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"
|
|
|
|
run_bwipp_test "test_code128" "encode"
|
|
|
|
run_bwipp_test "test_code16k" "encode"
|
|
|
|
run_bwipp_test "test_code49" "encode"
|
|
|
|
run_bwipp_test "test_composite"
|
2021-02-23 13:01:15 +13:00
|
|
|
run_bwipp_test "test_dmatrix"
|
2021-01-23 07:07:59 +13:00
|
|
|
run_bwipp_test "test_dotcode" "encode"
|
2020-10-01 00:19:12 +13:00
|
|
|
run_bwipp_test "test_gs1" "gs1_reduce"
|
|
|
|
run_bwipp_test "test_imail" "encode"
|
2021-03-29 09:31:45 +13:00
|
|
|
run_bwipp_test "test_maxicode" "encode"
|
2020-10-01 00:19:12 +13:00
|
|
|
run_bwipp_test "test_medical" "encode"
|
|
|
|
run_bwipp_test "test_pdf417" "encode"
|
2020-12-23 23:57:24 +13:00
|
|
|
run_bwipp_test "test_plessey" "encode"
|
2020-10-01 00:19:12 +13:00
|
|
|
run_bwipp_test "test_postal" "encode"
|
2021-08-21 03:50:39 +12:00
|
|
|
run_bwipp_test "test_qr" "qr_encode"
|
2021-08-10 23:04:25 +12:00
|
|
|
run_bwipp_test "test_qr" "microqr_encode"
|
|
|
|
run_bwipp_test "test_qr" "rmqr_encode"
|
2020-10-01 00:19:12 +13:00
|
|
|
run_bwipp_test "test_rss"
|
|
|
|
run_bwipp_test "test_telepen" "encode"
|
|
|
|
run_bwipp_test "test_upcean" "encode"
|
2021-08-10 23:04:25 +12:00
|
|
|
run_bwipp_test "test_ultra" "encode"
|