#935: Added a test-case and updated existing tests for the improved ExposureTime pretty-print function.

v0.27.3
Andreas Huggel 10 years ago
parent 02d6f8460a
commit df63ad1e78

@ -279,6 +279,27 @@ source ./functions.source
runTest exiv2 -pS $filename
done
num=935
filename=`prep_empty_file $num`
runTest exiv2 -u -v -M"set Exif.Photo.ExposureTime 605/10" $filename
runTest exiv2 -u -pv -gExif.Photo.ExposureTime $filename
runTest exiv2 -u -pa -gExif.Photo.ExposureTime $filename
runTest exiv2 -u -v -M"set Exif.Photo.ExposureTime 2/3" $filename
runTest exiv2 -u -pv -gExif.Photo.ExposureTime $filename
runTest exiv2 -u -pa -gExif.Photo.ExposureTime $filename
runTest exiv2 -u -v -M"set Exif.Photo.ExposureTime 0/0" $filename
runTest exiv2 -u -pv -gExif.Photo.ExposureTime $filename
runTest exiv2 -u -pa -gExif.Photo.ExposureTime $filename
runTest exiv2 -u -v -M"set Exif.Photo.ExposureTime 605/605" $filename
runTest exiv2 -u -pv -gExif.Photo.ExposureTime $filename
runTest exiv2 -u -pa -gExif.Photo.ExposureTime $filename
runTest exiv2 -u -v -M"set Exif.Photo.ExposureTime 100/1500" $filename
runTest exiv2 -u -pv -gExif.Photo.ExposureTime $filename
runTest exiv2 -u -pa -gExif.Photo.ExposureTime $filename
runTest exiv2 -u -v -M"set Exif.Photo.ExposureTime Ascii Test" $filename
runTest exiv2 -u -pv -gExif.Photo.ExposureTime $filename
runTest exiv2 -u -pa -gExif.Photo.ExposureTime $filename
num=937
filename=exiv2-bug$num.jpg
printf "$num " >&3

Binary file not shown.

@ -261,7 +261,7 @@ File 3/15: 20000506_020544.jpg
20000506_020544.jpg Camera model : E990
20000506_020544.jpg Image timestamp : 2000:05:06 02:05:44
20000506_020544.jpg Image number :
20000506_020544.jpg Exposure time : 1/89 s
20000506_020544.jpg Exposure time : 0.0111982 s
20000506_020544.jpg Aperture : F7
20000506_020544.jpg Exposure bias : 0 EV
20000506_020544.jpg Flash : No flash
@ -746,7 +746,7 @@ File 3/15: 20000506_020544.jpg
20000506_020544.jpg Exif.Image.DateTime Ascii 20 2000:05:06 02:05:44
20000506_020544.jpg Exif.Image.YCbCrPositioning Short 1 Co-sited
20000506_020544.jpg Exif.Image.ExifTag Long 1 284
20000506_020544.jpg Exif.Photo.ExposureTime Rational 1 1/89 s
20000506_020544.jpg Exif.Photo.ExposureTime Rational 1 0.0111982 s
20000506_020544.jpg Exif.Photo.FNumber Rational 1 F7
20000506_020544.jpg Exif.Photo.ExposureProgram Short 1 Aperture priority
20000506_020544.jpg Exif.Photo.ISOSpeedRatings Short 1 100
@ -2359,7 +2359,7 @@ Compare image data and extracted data ------------------------------------
< 20000506_020544.jpg Exif.Image.DateTime Ascii 20 2000:05:06 02:05:44
< 20000506_020544.jpg Exif.Image.YCbCrPositioning Short 1 Co-sited
< 20000506_020544.jpg Exif.Image.ExifTag Long 1 284
< 20000506_020544.jpg Exif.Photo.ExposureTime Rational 1 1/89 s
< 20000506_020544.jpg Exif.Photo.ExposureTime Rational 1 0.0111982 s
< 20000506_020544.jpg Exif.Photo.FNumber Rational 1 F7
< 20000506_020544.jpg Exif.Photo.ExposureProgram Short 1 Aperture priority
< 20000506_020544.jpg Exif.Photo.ISOSpeedRatings Short 1 100
@ -3900,7 +3900,7 @@ Compare image data and extracted data ------------------------------------
> 20000506_020544.exv Exif.Image.DateTime Ascii 20 2000:05:06 02:05:44
> 20000506_020544.exv Exif.Image.YCbCrPositioning Short 1 Co-sited
> 20000506_020544.exv Exif.Image.ExifTag Long 1 216
> 20000506_020544.exv Exif.Photo.ExposureTime Rational 1 1/89 s
> 20000506_020544.exv Exif.Photo.ExposureTime Rational 1 0.0111982 s
> 20000506_020544.exv Exif.Photo.FNumber Rational 1 F7
> 20000506_020544.exv Exif.Photo.ExposureProgram Short 1 Aperture priority
> 20000506_020544.exv Exif.Photo.ISOSpeedRatings Short 1 100
@ -5661,7 +5661,7 @@ Compare original and inserted image data ---------------------------------
< 20000506_020544.jpg Exif.Image.DateTime Ascii 20 2000:05:06 02:05:44
< 20000506_020544.jpg Exif.Image.YCbCrPositioning Short 1 Co-sited
< 20000506_020544.jpg Exif.Image.ExifTag Long 1 284
< 20000506_020544.jpg Exif.Photo.ExposureTime Rational 1 1/89 s
< 20000506_020544.jpg Exif.Photo.ExposureTime Rational 1 0.0111982 s
< 20000506_020544.jpg Exif.Photo.FNumber Rational 1 F7
< 20000506_020544.jpg Exif.Photo.ExposureProgram Short 1 Aperture priority
< 20000506_020544.jpg Exif.Photo.ISOSpeedRatings Short 1 100
@ -7202,7 +7202,7 @@ Compare original and inserted image data ---------------------------------
> 20000506_020544.exv Exif.Image.DateTime Ascii 20 2000:05:06 02:05:44
> 20000506_020544.exv Exif.Image.YCbCrPositioning Short 1 Co-sited
> 20000506_020544.exv Exif.Image.ExifTag Long 1 216
> 20000506_020544.exv Exif.Photo.ExposureTime Rational 1 1/89 s
> 20000506_020544.exv Exif.Photo.ExposureTime Rational 1 0.0111982 s
> 20000506_020544.exv Exif.Photo.FNumber Rational 1 F7
> 20000506_020544.exv Exif.Photo.ExposureProgram Short 1 Aperture priority
> 20000506_020544.exv Exif.Photo.ISOSpeedRatings Short 1 100

Loading…
Cancel
Save