* Port redmine issue 1024 * Port redmine issue 1026 * Port redmine issue 1040 * Port redmine issue 1044 * Port redmine issue 1053 * Port redmine issue 1054 (not finished yet; I found some issues there) * Port redmine issue 1058 * Port redmine issue 1062 * Port redmine issue 1080 * Port redmine issue 1108 * Port redmine issue 1112 * Port redmine issue 1114 * Port redmine issue 1122 * Port redmine issue 1140 * Port redmine issue 1144 * Port redmine issue 1145 * Port redmine issue 1153 * Port redmine issue 1155 * Port redmine issue 1166 * Port redmine issue 1167 * Port redmine issue 1170 * Replace escaped chars in 1054 * Add brackets in exiv2json::main() * Link all sample apps against exiv2lib * Changes in 1054 * test 1054: fix dates depending on Local time * Do not run make with VERBOSE=1 * Use system_tests.path * Fix windows issues with quotes * Use system_tests.path * Use itertools to simplify test code
93 lines
4.6 KiB
Python
93 lines
4.6 KiB
Python
# -*- coding: utf-8 -*-
|
|
|
|
import system_tests
|
|
import itertools
|
|
|
|
class CheckSony6000WithoutLensModels(metaclass=system_tests.CaseMeta):
|
|
|
|
url = "http://dev.exiv2.org/issues/1153"
|
|
|
|
filenames = [
|
|
"$data_path/exiv2-bug1153{E}{i}.exv".format(E=E, i=i)
|
|
for E, i in itertools.product(
|
|
['A', 'J'],
|
|
"a b c d e f g h i j k".split()
|
|
)
|
|
]
|
|
|
|
commands = [
|
|
"$exiv2 -pa -g Lens {!s}".format(fname) for fname in filenames
|
|
]
|
|
|
|
stdout = [
|
|
"""Exif.Sony2.LensID Long 1 Sony E 50mm F1.8 OSS
|
|
Exif.Photo.LensSpecification Rational 4 500/10 500/10 18/10 18/10
|
|
Exif.Photo.LensModel Ascii 16 E 50mm F1.8 OSS
|
|
""",
|
|
"""Exif.Sony2.LensID Long 1 Sony E 50mm F1.8 OSS
|
|
Exif.Photo.LensSpecification Rational 4 500/10 500/10 18/10 18/10
|
|
Exif.Photo.LensModel Ascii 16 E 50mm F1.8 OSS
|
|
""",
|
|
"""Exif.Sony2.LensID Long 1 E PZ 16-50mm F3.5-5.6 OSS
|
|
Exif.Photo.LensSpecification Rational 4 160/10 500/10 35/10 56/10
|
|
Exif.Photo.LensModel Ascii 26 E PZ 16-50mm F3.5-5.6 OSS
|
|
""",
|
|
"""Exif.Sony2.LensID Long 1 E PZ 16-50mm F3.5-5.6 OSS
|
|
Exif.Photo.LensSpecification Rational 4 160/10 500/10 35/10 56/10
|
|
Exif.Photo.LensModel Ascii 26 E PZ 16-50mm F3.5-5.6 OSS
|
|
""",
|
|
"""Exif.Sony2.LensID Long 1 E PZ 16-50mm F3.5-5.6 OSS
|
|
Exif.Photo.LensSpecification Rational 4 160/10 500/10 35/10 56/10
|
|
Exif.Photo.LensModel Ascii 26 E PZ 16-50mm F3.5-5.6 OSS
|
|
""",
|
|
"""Exif.Sony2.LensID Long 1 E PZ 16-50mm F3.5-5.6 OSS
|
|
Exif.Photo.LensSpecification Rational 4 160/10 500/10 35/10 56/10
|
|
Exif.Photo.LensModel Ascii 26 E PZ 16-50mm F3.5-5.6 OSS
|
|
""",
|
|
"""Exif.Sony2.LensID Long 1 E PZ 16-50mm F3.5-5.6 OSS
|
|
Exif.Photo.LensSpecification Rational 4 160/10 500/10 35/10 56/10
|
|
Exif.Photo.LensModel Ascii 26 E PZ 16-50mm F3.5-5.6 OSS
|
|
""",
|
|
"""Exif.Sony2.LensID Long 1 E PZ 16-50mm F3.5-5.6 OSS
|
|
Exif.Photo.LensSpecification Rational 4 160/10 500/10 35/10 56/10
|
|
Exif.Photo.LensModel Ascii 26 E PZ 16-50mm F3.5-5.6 OSS
|
|
""",
|
|
"""Exif.Sony2.LensID Long 1 E PZ 16-50mm F3.5-5.6 OSS
|
|
Exif.Photo.LensSpecification Rational 4 160/10 500/10 35/10 56/10
|
|
Exif.Photo.LensModel Ascii 26 E PZ 16-50mm F3.5-5.6 OSS
|
|
""",
|
|
"""Exif.Sony2.LensID Long 1 E PZ 16-50mm F3.5-5.6 OSS
|
|
Exif.Photo.LensSpecification Rational 4 160/10 500/10 35/10 56/10
|
|
Exif.Photo.LensModel Ascii 26 E PZ 16-50mm F3.5-5.6 OSS
|
|
""",
|
|
"""Exif.Sony2.LensID Long 1 E PZ 16-50mm F3.5-5.6 OSS
|
|
Exif.Photo.LensSpecification Rational 4 160/10 500/10 35/10 56/10
|
|
Exif.Photo.LensModel Ascii 26 E PZ 16-50mm F3.5-5.6 OSS
|
|
""",
|
|
|
|
"""Exif.Sony1.LensID Long 1 Sony E 50mm F1.8 OSS
|
|
""",
|
|
"""Exif.Sony1.LensID Long 1 E PZ 16-50mm F3.5-5.6 OSS
|
|
""",
|
|
"""Exif.Sony1.LensID Long 1 E PZ 16-50mm F3.5-5.6 OSS
|
|
""",
|
|
"""Exif.Sony1.LensID Long 1 E PZ 16-50mm F3.5-5.6 OSS
|
|
""",
|
|
"""Exif.Sony1.LensID Long 1 E PZ 16-50mm F3.5-5.6 OSS
|
|
""",
|
|
"""Exif.Sony1.LensID Long 1 E PZ 16-50mm F3.5-5.6 OSS
|
|
""",
|
|
"""Exif.Sony1.LensID Long 1 E PZ 16-50mm F3.5-5.6 OSS
|
|
""",
|
|
"""Exif.Sony1.LensID Long 1 E PZ 16-50mm F3.5-5.6 OSS
|
|
""",
|
|
"""Exif.Sony1.LensID Long 1 E PZ 16-50mm F3.5-5.6 OSS
|
|
""",
|
|
"""Exif.Sony1.LensID Long 1 E PZ 16-50mm F3.5-5.6 OSS
|
|
""",
|
|
"""Exif.Sony1.LensID Long 1 E PZ 16-50mm F3.5-5.6 OSS
|
|
""",
|
|
]
|
|
stderr = [""] * len(commands)
|
|
retval = [0] * len(commands)
|