exiv2/tests/bugfixes/redmine/test_issue_1145.py
Luis Diaz Mas 145f8fc456 Port redmine issues from the bash test suite to the python one.
* 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
2018-07-31 18:18:14 +02:00

46 lines
2.1 KiB
Python

# -*- coding: utf-8 -*-
import system_tests
class CheckSonyMinoltaLenses(metaclass=system_tests.CaseMeta):
url = "http://dev.exiv2.org/issues/1145"
filenames = ["$data_path/exiv2-bug1145a.exv",
"$data_path/exiv2-bug1145b.exv",
"$data_path/exiv2-bug1145c.exv",
"$data_path/exiv2-bug1145d.exv",
"$data_path/exiv2-bug1145e.exv",
]
commands = [ "$exiv2 -pa -g Lens " + filenames[0],
"$exiv2 -pa -g Lens " + filenames[1],
"$exiv2 -pa -g Lens " + filenames[2],
"$exiv2 -pa -g Lens " + filenames[3],
"$exiv2 -pa -g Lens " + filenames[4],
]
stdout = [ """Exif.Sony1.LensID Long 1 Tamron SP AF 11-18mm F4.5-5.6 Di II LD Aspherical IF
Exif.Photo.LensSpecification Rational 4 110/10 180/10 45/10 56/10
Exif.Photo.LensModel Ascii 20 DT 11-18mm F4.5-5.6
""",
"""Exif.Sony1.LensID Long 1 Tamron SP AF 17-50mm F2.8 XR Di II LD Aspherical
Exif.Photo.LensSpecification Rational 4 0/10 0/10 0/10 0/10
Exif.Photo.LensModel Ascii 5 ----
""",
"""Exif.Sony1.LensID Long 1 Tamron AF 18-200mm F3.5-6.3 XR Di II LD Aspherical [IF] Macro
Exif.Photo.LensSpecification Rational 4 0/10 0/10 0/10 0/10
Exif.Photo.LensModel Ascii 5 ----
""",
"""Exif.Sony1.LensID Long 1 Tamron SP 70-300mm F4-5.6 Di USD
Exif.Photo.LensSpecification Rational 4 700/10 3000/10 40/10 56/10
Exif.Photo.LensModel Ascii 16 70-300mm F4-5.6
""",
"""Exif.Sony1.LensID Long 1 Tamron SP AF 90mm F2.8 Di Macro
Exif.Photo.LensSpecification Rational 4 1000/10 1000/10 28/10 28/10
Exif.Photo.LensModel Ascii 17 100mm F2.8 Macro
""",
]
stderr = [""] * len(commands)
retval = [0] * len(commands)