mirror of
https://github.com/zxing/zxing.git
synced 2025-02-21 02:55:27 -08:00
- calls MultiFormatReader directly - code cleanup, removing parts of the QR-specific framework - associated change to blackboxtest git-svn-id: https://zxing.googlecode.com/svn/trunk@1482 59b500cc-1b3d-0410-9834-0bbf25fbcc57
36 lines
930 B
Bash
Executable file
36 lines
930 B
Bash
Executable file
#!/bin/sh
|
|
|
|
blackboxpath="../core/test/data/blackbox"
|
|
|
|
formats="ean13 ean8 upce upca qrcode"
|
|
|
|
passed=0;
|
|
failed=0;
|
|
oldcat="";
|
|
|
|
for format in $formats; do
|
|
for pic in `ls ${blackboxpath}/${format}-*/*.{jpg,JPG} 2>/dev/null`; do
|
|
category=${pic%/*};
|
|
category=${category##*/};
|
|
if [ "$oldcat" != "$category" ]; then
|
|
echo "***** $oldcat finished - $passed of $((passed+failed)) passed **** ***** ******* ***** *********************"
|
|
oldcat=$category;
|
|
passed=0;
|
|
failed=0;
|
|
fi
|
|
echo -n "Processing: $pic ... "
|
|
tmp="${pic%JPG}";
|
|
txt="${tmp%jpg}txt";
|
|
expected=`cat "$txt"`;
|
|
actual=`build/zxing $pic`;
|
|
if [ "$expected" == "$actual" ]; then
|
|
echo "passed."
|
|
passed=$((passed+1));
|
|
else
|
|
echo -e "FAILED\n Expected: $expected\n Detected: $actual"
|
|
failed=$((failed+1));
|
|
fi
|
|
done
|
|
done
|
|
echo "***** $oldcat finished - $passed of $((passed+failed)) passed **** ***** ******* ***** *********************"
|