diff --git a/test/data/poc_2542.exv b/test/data/poc_2542.exv new file mode 100644 index 00000000..da7dee85 Binary files /dev/null and b/test/data/poc_2542.exv differ diff --git a/tests/bugfixes/github/test_issue_2542.py b/tests/bugfixes/github/test_issue_2542.py new file mode 100644 index 00000000..6790ff99 --- /dev/null +++ b/tests/bugfixes/github/test_issue_2542.py @@ -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]