Skip to content

Commit

Permalink
Merge pull request #2587 from Exiv2/test_2542
Browse files Browse the repository at this point in the history
Add test case (complements #2567)
  • Loading branch information
kmilos committed Apr 17, 2023
2 parents b2cd60e + b4170f4 commit a5d5166
Show file tree
Hide file tree
Showing 3 changed files with 203 additions and 0 deletions.
Binary file added test/data/poc_2542.exv
Binary file not shown.
188 changes: 188 additions & 0 deletions test/data/test_reference_files/poc_2542.exv.out

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions tests/bugfixes/github/test_issue_2542.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from system_tests import CaseMeta, path

class OMSystemMakerNoteAlias(metaclass=CaseMeta):
"""
Regression test for the bug described in:
https://github.com/Exiv2/exiv2/issues/2542
"""
url = "https://github.com/Exiv2/exiv2/issues/2542"

filename = path("$data_path/poc_2542.exv")
commands = ["$exiv2 -q -K Exif.Olympus2.CameraID $filename"]
stdout = ["""Exif.Olympus2.CameraID Undefined 32 OLYMPUS DIGITAL CAMERA
"""]
stderr = [""]
retval = [0]

0 comments on commit a5d5166

Please sign in to comment.