@ -14,172 +14,177 @@ prep_file()
}
(
binpath = " $VALGRIND ../../samples "
exiv2 = " $VALGRIND exiv2 -u "
if [ -z " $EXIV2_BINDIR " ] ; then
bin = " $VALGRIND ../../src "
samples = " $VALGRIND ../../samples "
else
bin = " $VALGRIND $EXIV2_BINDIR "
samples = " $VALGRIND $EXIV2_BINDIR "
fi
cd ./tmp
num = 426
filename = ` prep_file $num `
$exiv2 -pi $filename
$ bin/exiv2 -u -pi $filename
num = 440
filename = ` prep_file $num `
$ exiv2 -pi $filename
$ bin/exiv2 -u -pi $filename
num = 443
filename = ` prep_file $num `
$ exiv2 -b -pt $filename
$ bin/exiv2 -u -b -pt $filename
num = 444
filename = ` prep_file $num `
$ exiv2 -pi $filename
$ bin/exiv2 -u -pi $filename
num = 445
filename = ` prep_file $num `
$ exiv2 -v -M'set Exif.Photo.UserComment A comment' $filename
$ exiv2 -b -pt $filename
$ bin/exiv2 -u -v -M'set Exif.Photo.UserComment A comment' $filename
$ bin/exiv2 -u -b -pt $filename
filename = exiv2-empty.jpg
cp -f ../data/$filename .
$ exiv2 -v -M'set Exif.Photo.UserComment A comment' $filename
$ exiv2 -b -pt $filename
$ bin/exiv2 -u -v -M'set Exif.Photo.UserComment A comment' $filename
$ bin/exiv2 -u -b -pt $filename
num = 447 # Problem only visible in Valgrind
filename = ` prep_file $num `
$ exiv2 -pi $filename
$ bin/exiv2 -u -pi $filename
num = 452
filename = exiv2-bug$num .jpg
cp -f ../data/exiv2-empty.jpg $filename
$ exiv2 -v -M"set Exif.GPSInfo.GPSLatitude SRational -1/3 -2/3 -3/3" $filename
$ exiv2 -pv $filename
$ exiv2 -v -M"set Exif.GPSInfo.GPSLatitude Rational 1/3 2/3 3/3" $filename
$ exiv2 -pv $filename
$ bin/exiv2 -u -v -M"set Exif.GPSInfo.GPSLatitude SRational -1/3 -2/3 -3/3" $filename
$ bin/exiv2 -u -pv $filename
$ bin/exiv2 -u -v -M"set Exif.GPSInfo.GPSLatitude Rational 1/3 2/3 3/3" $filename
$ bin/exiv2 -u -pv $filename
num = 460
filename = ` prep_file $num `
$ exiv2 -pt $filename
$ bin/exiv2 -u -pt $filename
num = 479
filename = ` prep_file $num `
$ exiv2 -pt $filename
$ bin/exiv2 -u -pt $filename
num = 480
filename = ` prep_file $num `
$ binpath /largeiptc-test $filename ../data/imagemagick.png
$ samples /largeiptc-test $filename ../data/imagemagick.png
num = 495
filename = ` prep_file $num `
$ exiv2 -pi $filename
$ bin/exiv2 -u -pi $filename
num = 498
filename = exiv2-bug$num .jpg
cp -f ../data/exiv2-empty.jpg $filename
$ exiv2 -v -M"set Exif.GPSInfo.GPSLatitude 0/1 1/1 2/1" $filename
$ exiv2 -v -pv $filename
$ exiv2 -v -M"del Exif.GPSInfo.GPSLatitude" $filename
$ exiv2 -v -pv $filename
$ bin/exiv2 -u -v -M"set Exif.GPSInfo.GPSLatitude 0/1 1/1 2/1" $filename
$ bin/exiv2 -u -v -pv $filename
$ bin/exiv2 -u -v -M"del Exif.GPSInfo.GPSLatitude" $filename
$ bin/exiv2 -u -v -pv $filename
num = 501
filename = ` prep_file $num `
$ exiv2 -pi $filename
$ bin/exiv2 -u -pi $filename
num = 528
filename = ` prep_file $num `
$ exiv2 -pt $filename
$ exiv2 -v -M"set Exif.Image.Software GI" $filename
$ bin/exiv2 -u -pt $filename
$ bin/exiv2 -u -v -M"set Exif.Image.Software GI" $filename
num = 540
filename = ` prep_file $num `
$ exiv2 -px $filename
$ bin/exiv2 -u -px $filename
num = 554
filename = exiv2-bug$num .jpg
cp -f ../data/exiv2-empty.jpg $filename
echo '------>' Bug $num '<-------' >& 2
$ exiv2 -v -M"set Exif.Image.DateTime Date 2007-05-27" $filename
$ exiv2 -pt $filename
$ bin/exiv2 -u -v -M"set Exif.Image.DateTime Date 2007-05-27" $filename
$ bin/exiv2 -u -pt $filename
num = 662
filename = exiv2-bug$num .jpg
cp -f ../data/exiv2-empty.jpg $filename
echo '------>' Bug $num '<-------' >& 2
$ exiv2 -M"set Exif.Photo.UserComment charset=Ascii An ascii comment" $filename
$ exiv2 -PEnh $filename
$ bin/exiv2 -u -M"set Exif.Photo.UserComment charset=Ascii An ascii comment" $filename
$ bin/exiv2 -u -PEnh $filename
$ exiv2 -M"set Exif.Photo.UserComment charset=Ascii A\\nnewline" $filename
$ exiv2 -PEnh $filename
$ bin/exiv2 -u -M"set Exif.Photo.UserComment charset=Ascii A\\nnewline" $filename
$ bin/exiv2 -u -PEnh $filename
$ exiv2 -M"set Exif.Photo.UserComment charset=Unicode A Unicode comment" $filename
$ exiv2 -PEnh $filename
$ bin/exiv2 -u -M"set Exif.Photo.UserComment charset=Unicode A Unicode comment" $filename
$ bin/exiv2 -u -PEnh $filename
$ exiv2 -M"set Exif.Photo.UserComment charset=Unicode \\u01c4" $filename
$ exiv2 -PEnh $filename
$ bin/exiv2 -u -M"set Exif.Photo.UserComment charset=Unicode \\u01c4" $filename
$ bin/exiv2 -u -PEnh $filename
$ exiv2 -M"set Exif.Photo.UserComment charset=Unicode A\\u01c4C" $filename
$ exiv2 -PEnh $filename
$ bin/exiv2 -u -M"set Exif.Photo.UserComment charset=Unicode A\\u01c4C" $filename
$ bin/exiv2 -u -PEnh $filename
$ exiv2 -M"set Exif.Photo.UserComment charset=Unicode With\\nNewline" $filename
$ exiv2 -PEnh $filename
$ bin/exiv2 -u -M"set Exif.Photo.UserComment charset=Unicode With\\nNewline" $filename
$ bin/exiv2 -u -PEnh $filename
$ exiv2 -M"set Exif.Photo.UserComment charset=Unicode With\\tTab" $filename
$ exiv2 -PEnh $filename
$ bin/exiv2 -u -M"set Exif.Photo.UserComment charset=Unicode With\\tTab" $filename
$ bin/exiv2 -u -PEnh $filename
# Test invalid escape sequences
$ exiv2 -M"set Exif.Photo.UserComment charset=Unicode \\ugggg" $filename
$ exiv2 -PEnh $filename
$ bin/exiv2 -u -M"set Exif.Photo.UserComment charset=Unicode \\ugggg" $filename
$ bin/exiv2 -u -PEnh $filename
num = 666
filename = exiv2-bug$num .jpg
cp -f ../data/exiv2-empty.jpg $filename
echo '------>' Bug $num '<-------' >& 2
$ exiv2 -v -M'set Exif.Image.Make NIKON' \
$ bin/exiv2 -u -v -M'set Exif.Image.Make NIKON' \
-M'set Exif.Image.Model D90' \
-M'set Exif.Nikon3.ShutterCount 100' \
-M'set Exif.Nikon3.SerialNumber 123' \
-M'set Exif.NikonSi02xx.Version 48 50 51 52' \
-M'set Exif.NikonSi02xx.ShutterCount 100' $filename
$ exiv2 -pa -u -b $filename
$ bin/exiv2 -u -pa -u -b $filename
num = 683
filename = exiv2-bug$num .jpg
cp -f ../data/exiv2-nikon-d70.jpg $filename
echo '------>' Bug $num '<-------' >& 2
$ exiv2 -v -f -r %Y-%m-%d-%a-%j $filename
$ bin/exiv2 -u -v -f -r %Y-%m-%d-%a-%j $filename
num = 711
# Little endian (II)
filename = exiv2-bug${ num } -1.jpg
cp -f ../data/exiv2-empty.jpg $filename
echo '------>' Bug $num '<-------' >& 2
$ exiv2 -v -M'set Exif.Image.ProcessingSoftware Initial values, read from the command line' \
$ bin/exiv2 -u -v -M'set Exif.Image.ProcessingSoftware Initial values, read from the command line' \
-M'set Exif.Image.DocumentName Float 0.12345' \
-M'set Exif.Image.ImageDescription Double 0.987654321' $filename
$ exiv2 -v -PEkyct $filename
$ exiv2 -v -M'set Exif.Image.ProcessingSoftware Non-intrusive update' $filename
$ exiv2 -v -PEkyct $filename
$ exiv2 -v -M'set Exif.Image.ProcessingSoftware Intrusive update, writing the structure from scratch' $filename
$ exiv2 -v -PEkyct $filename
$ bin/exiv2 -u -v -PEkyct $filename
$ bin/exiv2 -u -v -M'set Exif.Image.ProcessingSoftware Non-intrusive update' $filename
$ bin/exiv2 -u -v -PEkyct $filename
$ bin/exiv2 -u -v -M'set Exif.Image.ProcessingSoftware Intrusive update, writing the structure from scratch' $filename
$ bin/exiv2 -u -v -PEkyct $filename
# Big endian (MM)
filename = exiv2-bug${ num } -2.jpg
cp -f ../data/exiv2-kodak-dc210.jpg $filename
$ exiv2 -v -M'set Exif.Image.ProcessingSoftware Initial values, read from the command line' \
$ bin/exiv2 -u -v -M'set Exif.Image.ProcessingSoftware Initial values, read from the command line' \
-M'set Exif.Image.DocumentName Float 0.12345' \
-M'set Exif.Image.ImageDescription Double 0.987654321' $filename
$ exiv2 -v -PEkyct $filename
$ exiv2 -v -M'set Exif.Image.ProcessingSoftware Non-intrusive update' $filename
$ exiv2 -v -PEkyct $filename
$ exiv2 -v -M'set Exif.Image.ProcessingSoftware Intrusive update, writing the structure from scratch' $filename
$ exiv2 -v -PEkyct $filename
$ bin/exiv2 -u -v -PEkyct $filename
$ bin/exiv2 -u -v -M'set Exif.Image.ProcessingSoftware Non-intrusive update' $filename
$ bin/exiv2 -u -v -PEkyct $filename
$ bin/exiv2 -u -v -M'set Exif.Image.ProcessingSoftware Intrusive update, writing the structure from scratch' $filename
$ bin/exiv2 -u -v -PEkyct $filename
# Test easy-access keys (using a dummy bug number)
num = 726
filename = exiv2-bug$num .jpg
cp -f ../data/exiv2-empty.jpg $filename
$ exiv2 -v -M"set Exif.Image.Make Samsung" $filename
$ binpath /easyaccess-test $filename
$ bin/exiv2 -u -v -M"set Exif.Image.Make Samsung" $filename
$ samples /easyaccess-test $filename
) > $results 2>& 1