Improved filtering of irrelevant differences on MinGW

v0.27.3
Andreas Huggel 20 years ago
parent e7ce9ecba1
commit f3e98f152d

@ -52,6 +52,9 @@ $binpath/exiv2 -pi $filename
) > $results 2>&1
if [ x`which unix2dos.exe` != x ]; then
unix2dos.exe -q $results
fi
diff -q $diffargs $results $good
rc=$?
if [ $rc -eq 0 ] ; then

@ -5,13 +5,20 @@ export LD_LIBRARY_PATH
exiv2="$VALGRIND ../../src/exiv2"
results="./tmp/exiv2-test.out"
good="./data/exiv2-test.out"
diffargs="--strip-trailing-cr"
tmpfile=tmp/ttt
touch $tmpfile
diff -q $diffargs $tmpfile $tmpfile 2>/dev/null
da1="--strip-trailing-cr"
diff -q $da1 $tmpfile $tmpfile 2>/dev/null
if [ $? -ne 0 ] ; then
diffargs=""
da1=""
fi
da2="--ignore-matching-lines=^Usage:.exiv2"
diff -q $da2 $tmpfile $tmpfile 2>/dev/null
if [ $? -ne 0 ] ; then
da2=""
fi
diffargs="$da1 $da2"
(
images="exiv2-empty.jpg \
exiv2-canon-powershot-s40.jpg \

Loading…
Cancel
Save