Skip to content

Commit

Permalink
Test Sigma 18-35mm f/1.8 DC HSM (firmware 2.x)
Browse files Browse the repository at this point in the history
On Canon bodies and lens firmware 1.x, this lens identifies itself using
model number 150. Starting with firmware 2.x, this lens now identifies
itself using model number 368.
  • Loading branch information
lbschenkel authored and piponazo committed Oct 28, 2020
1 parent 76ae8d8 commit 7b00abf
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
Binary file not shown.
Binary file not shown.
19 changes: 19 additions & 0 deletions tests/bugfixes/github/test_issue_1368.py
@@ -0,0 +1,19 @@
# -*- coding: utf-8 -*-

import system_tests

class Canon_Sigma_18_35_F18_DC_HSM(metaclass=system_tests.CaseMeta):
url = "https://github.com/Exiv2/exiv2/issues/1368"

filename1 = "$data_path/Canon_Sigma_18_35_F18_DC_HSM_firmware_1xx.exv"
filename2 = "$data_path/Canon_Sigma_18_35_F18_DC_HSM_firmware_2xx.exv"
commands = ["$exiv2 -pa -K Exif.CanonCs.LensType $filename1",
"$exiv2 -pa -K Exif.CanonCs.LensType $filename2"]
stderr = ["", ""]
stdout = [
"""Exif.CanonCs.LensType Short 1 Sigma 18-35mm f/1.8 DC HSM | A
""",
"""Exif.CanonCs.LensType Short 1 Sigma 18-35mm f/1.8 DC HSM | A
"""
]
retval = [0, 0]

0 comments on commit 7b00abf

Please sign in to comment.