Add testing for SonyMisc3c makernote tags (tag 9400)
EXV files are extracted from Exiftool Sony Image samples: https://exiftool.org/sample_images.htmlmain
parent
cc9d780534
commit
f392e63241
Binary file not shown.
Binary file not shown.
@ -0,0 +1,57 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
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"]
|
||||||
|
|
||||||
|
stdout = ["""Exif.SonyMisc3c.ReleaseMode2 Byte 1 Normal
|
||||||
|
Exif.SonyMisc3c.ShotNumberSincePowerUp Long 1 4
|
||||||
|
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 JPEG
|
||||||
|
Exif.SonyMisc3c.SonyImageHeight Short 1 3888
|
||||||
|
Exif.SonyMisc3c.ModelReleaseYear Byte 1 2014
|
||||||
|
"""
|
||||||
|
]
|
||||||
|
stderr = [""]
|
||||||
|
retval = [0]
|
||||||
|
|
||||||
|
#Partial support for SonyMisc3c tags using this model
|
||||||
|
class SonyMisc3cPartiallySupportedTest(metaclass=CaseMeta):
|
||||||
|
|
||||||
|
filename = path("$data_path/exiv2-SonyILCE-7SM3.exv")
|
||||||
|
commands = ["$exiv2 -pa --grep SonyMisc3c $filename"]
|
||||||
|
|
||||||
|
stdout = ["""Exif.SonyMisc3c.ReleaseMode2 Byte 1 Normal
|
||||||
|
Exif.SonyMisc3c.ShotNumberSincePowerUp Long 1 n/a
|
||||||
|
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 n/a
|
||||||
|
Exif.SonyMisc3c.ModelReleaseYear Byte 1 n/a
|
||||||
|
"""
|
||||||
|
]
|
||||||
|
stderr = [""]
|
||||||
|
retval = [0]
|
||||||
|
|
||||||
|
|
||||||
|
# No support for SonyMisc3c tags using this model
|
||||||
|
class SonyMisc3cUnsupportedTest(metaclass=CaseMeta):
|
||||||
|
|
||||||
|
filename = path("$data_path/test_issue_1464.exv")
|
||||||
|
commands = ["$exiv2 -pa --grep SonyMisc3c $filename"]
|
||||||
|
|
||||||
|
stdout = [""""""
|
||||||
|
]
|
||||||
|
stderr = [""]
|
||||||
|
retval = [1]
|
Loading…
Reference in New Issue