Add test for SonyMisc(2b|3c) Groups in TIFF files

main
postscript-dev 4 years ago
parent 7ace96263e
commit 827f31ad8d
No known key found for this signature in database
GPG Key ID: F3EC02A099292862

@ -4,17 +4,24 @@ from system_tests import CaseMeta, path
class SonyMisc2bTestSupported(metaclass=CaseMeta):
filename = path("$data_path/test_issue_1464.exv")
commands = ["$exiv2 -pa --grep SonyMisc2b $filename"]
# Check that JPEG and TIFF based formats work
filenames = [path("$data_path/test_issue_1464.exv"), # JPEG
path("$data_path/exiv2-bug1153Aa.exv")] # TIFF
commands = ["$exiv2 -pa --grep SonyMisc2b {!s}".format(fname) for fname in filenames]
stdout = ["""Exif.SonyMisc2b.ExposureProgram Byte 1 Shutter speed priority AE
Exif.SonyMisc2b.IntelligentAuto Byte 1 Off
Exif.SonyMisc2b.LensZoomPosition Short 1 100%
Exif.SonyMisc2b.FocusPosition2 Byte 1 0
""",
"""Exif.SonyMisc2b.ExposureProgram Byte 1 Aperture-priority AE
Exif.SonyMisc2b.IntelligentAuto Byte 1 Off
Exif.SonyMisc2b.LensZoomPosition Short 1 0%
Exif.SonyMisc2b.FocusPosition2 Byte 1 0
"""
]
stderr = [""]
retval = [0]
stderr = [""] *2
retval = [0] *2
# An example of a Sony camera model that does NOT support SonyMisc2b
class SonyMisc2bTestUnsupported(metaclass=CaseMeta):
@ -22,7 +29,6 @@ class SonyMisc2bTestUnsupported(metaclass=CaseMeta):
filename = path("$data_path/exiv2-pr906.exv")
commands = ["$exiv2 -pa --grep SonyMisc2b $filename"]
stdout = [""""""
]
stdout = [""]
stderr = [""]
retval = [1]

@ -5,8 +5,10 @@ from system_tests import CaseMeta, path
#Full support for SonyMisc3c tags using this model
class SonyMisc3cSupportedTest(metaclass=CaseMeta):
filename = path("$data_path/exiv2-SonyDSC-HX60V.exv")
commands = ["$exiv2 -pa --grep SonyMisc3c $filename"]
# Check that JPEG and TIFF based formats work
filenames = [path("$data_path/exiv2-SonyDSC-HX60V.exv"), # JPEG
path("$data_path/exiv2-bug1153Aa.exv")] # TIFF
commands = ["$exiv2 -pa --grep SonyMisc3c {!s}".format(fname) for fname in filenames]
stdout = ["""Exif.SonyMisc3c.ReleaseMode2 Byte 1 Normal
Exif.SonyMisc3c.ShotNumberSincePowerUp Long 1 4
@ -18,10 +20,21 @@ Exif.SonyMisc3c.CameraOrientation Byte 1 Horizontal (normal)
Exif.SonyMisc3c.Quality2 Byte 1 JPEG
Exif.SonyMisc3c.SonyImageHeight Short 1 3888
Exif.SonyMisc3c.ModelReleaseYear Byte 1 2014
""",
"""Exif.SonyMisc3c.ReleaseMode2 Byte 1 Normal
Exif.SonyMisc3c.ShotNumberSincePowerUp Long 1 2
Exif.SonyMisc3c.SequenceImageNumber Long 1 1
Exif.SonyMisc3c.SequenceLength1 Byte 1 1 shot
Exif.SonyMisc3c.SequenceFileNumber Long 1 1
Exif.SonyMisc3c.SequenceLength2 Byte 1 1 file
Exif.SonyMisc3c.CameraOrientation Byte 1 Horizontal (normal)
Exif.SonyMisc3c.Quality2 Byte 1 Raw + JPEG
Exif.SonyMisc3c.SonyImageHeight Short 1 4000
Exif.SonyMisc3c.ModelReleaseYear Byte 1 2014
"""
]
stderr = [""]
retval = [0]
stderr = [""] *2
retval = [0] *2
#Partial support for SonyMisc3c tags using this model
class SonyMisc3cPartiallySupportedTest(metaclass=CaseMeta):

Loading…
Cancel
Save