#!/bin/sh

# horrible kludge!
# this is not a complete test suite, just some checks

ean13="012345678901"
ean132="012345678901 12"
ean135="012345678901 12345"
ean8="0123456"
upca="01234567890"
upca2="01234567890 12"
upca5="01234567890 12345"
upce="012345"
code39="code39"
isbn="1-56592-292-1"
isbn5="1-56592-292-1 90000"
code128b="one-and,another"
code128c="0011223"
i25="12345"

rm *ps

../sample > 00all.ps

ls .. | ../barcode -t 3x4+40+40 >               01table-no-unit.ps
ls .. | ../barcode -u mm -t 3x4+10+10 >         02table-10mm.ps
ls .. | ../barcode -u mm -t 3x4+10+20-40-80 >   03table-uncenter.ps
ls .. | ../barcode -u in -t 3x4+1+2-3-4 >       04table-uncenter-in.ps
ls .. | ../barcode -u in -t 2x2 -p 4x4 >        05table-small4in-page.ps
ls .. | ../barcode -u in -t 2x2 -p a5 >         06table-a5-page.ps
ls .. | ../barcode -u cm -t 2x2 -p 15x15 >      07table-small15cm-page.ps
ls .. | ../barcode -u cm -t 2x2 -m 3x5 >        08table-bigmargin.ps
echo $ean13 | ../barcode -u mm -g 40x30 -E >    09ean40mm-30mm.ps
echo $isbn5 | ../barcode -u cm -g 6x5 -E >      10isbn6cmx5cm.ps
echo $upca | ../barcode -E >                    11upca.ps
