mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
37 lines
1.1 KiB
Bash
Executable File
37 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
# Copyright (C) 2020 Robin Stuart <rstuart114@gmail.com>
|
|
# vim: set ts=4 sw=4 et :
|
|
set -e
|
|
|
|
function run_bwipp_test() {
|
|
if [ -z "$2" ]; then
|
|
echo -e "\n$1"
|
|
./$1 -d $(expr 128 + 16 + 32) || exit 1
|
|
else
|
|
echo -e "\n$1 -f $2"
|
|
./$1 -f "$2" -d $(expr 128 + 16 + 32) || exit 1
|
|
fi
|
|
}
|
|
|
|
run_bwipp_test "test_2of5" "encode"
|
|
run_bwipp_test "test_auspost" "encode"
|
|
run_bwipp_test "test_aztec" "encode"
|
|
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"
|
|
run_bwipp_test "test_dmatrix" "encode"
|
|
run_bwipp_test "test_gs1" "gs1_reduce"
|
|
run_bwipp_test "test_imail" "encode"
|
|
run_bwipp_test "test_medical" "encode"
|
|
run_bwipp_test "test_pdf417" "encode"
|
|
run_bwipp_test "test_plessey" "encode"
|
|
run_bwipp_test "test_postal" "encode"
|
|
run_bwipp_test "test_rss"
|
|
run_bwipp_test "test_telepen" "encode"
|
|
run_bwipp_test "test_upcean" "encode"
|