Fixed EPS test suite: use GNU SED to ensure that SED won't add a line ending at EOF which would make the test comparisons fail

v0.27.3
vog 14 years ago
parent 115ba5a04e
commit 083a685b25

@ -12,6 +12,7 @@ else
bin="$VALGRIND $EXIV2_BINDIR"
samples="$VALGRIND $EXIV2_BINDIR"
fi
gsed=`gsed --help >/dev/null 2>&1 && echo g`sed
exiv2version="`$bin/exiv2 -V | sed -n '1 s,^exiv2 \([^ ]*\).*,\1,p'`"
if [ -z "$exiv2version" ]; then
echo "Error: Unable to determine Exiv2 version"
@ -73,7 +74,7 @@ done
continue
fi
sed "s,@Exiv2Version@,$exiv2version," < "../data/eps/$image.eps.newxmp" > "$image.eps.newxmp"
$gsed "s,@Exiv2Version@,$exiv2version," < "../data/eps/$image.eps.newxmp" > "$image.eps.newxmp"
if ! diff -q "$image.eps.newxmp" "$image.eps" ; then
continue

Loading…
Cancel
Save