Skip to content

Commit

Permalink
Merge pull request #1043 from Exiv2/mergify/bp/0.27-maintenance/pr-1032
Browse files Browse the repository at this point in the history
Fixes #1014 Two Nikon lenses still not detected (bp #1032)
  • Loading branch information
piponazo authored Oct 12, 2019
2 parents e919688 + 49511ae commit 43a0747
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ cd $EXIV_ROOT
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build .
make test
make tests
sudo make install
```

Expand Down
Binary file added test/data/exiv2-bug1014.exv
Binary file not shown.
Binary file added test/data/exiv2-bug1014_2.exv
Binary file not shown.
25 changes: 25 additions & 0 deletions tests/bugfixes/github/test_issue_1014.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-

import system_tests


class NikonLens(metaclass=system_tests.CaseMeta):

filenames = ["$data_path/exiv2-bug1014.exv", "$data_path/exiv2-bug1014_2.exv"]
commands = ["$exiv2 -pa --grep lens/i %s" % filenames[0], "$exiv2 -pa --grep lens/i %s" % filenames[1]]

stdout = ["""Exif.Nikon3.LensType Byte 1 D G VR
Exif.Nikon3.Lens Rational 4 24-70mm F2.8
Exif.Nikon3.LensFStops Undefined 4 6
Exif.NikonLd3.LensIDNumber Byte 1 Nikon AF-S Nikkor 24-70mm f/2.8E ED VR
Exif.NikonLd3.LensFStops Byte 1 F6.0
""",
"""Exif.Nikon3.LensType Byte 1 D G VR
Exif.Nikon3.Lens Rational 4 70-200mm F2.8
Exif.Nikon3.LensFStops Undefined 4 6
Exif.NikonLd3.LensIDNumber Byte 1 Nikon AF-S Nikkor 70-200mm f/2.8E FL ED VR
Exif.NikonLd3.LensFStops Byte 1 F6.0
"""
]
stderr = ["", ""]
retval = [0, 0]

0 comments on commit 43a0747

Please sign in to comment.