You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
893 B
Python
29 lines
893 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from system_tests import CaseMeta, path
|
|
|
|
class SonyMisc2bTestSupported(metaclass=CaseMeta):
|
|
|
|
filename = path("$data_path/test_issue_1464.exv")
|
|
commands = ["$exiv2 -pa --grep SonyMisc2b $filename"]
|
|
|
|
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
|
|
"""
|
|
]
|
|
stderr = [""]
|
|
retval = [0]
|
|
|
|
# An example of a Sony camera model that does NOT support SonyMisc2b
|
|
class SonyMisc2bTestUnsupported(metaclass=CaseMeta):
|
|
|
|
filename = path("$data_path/exiv2-pr906.exv")
|
|
commands = ["$exiv2 -pa --grep SonyMisc2b $filename"]
|
|
|
|
stdout = [""""""
|
|
]
|
|
stderr = [""]
|
|
retval = [1]
|