* Check if embedded RAF image is really a TIFF (cherry picked from commit be12ae6f9e2f053bf101902865deadfe7c937f8d) * Clarify comment on old vs new RAF Co-authored-by: Christoph Hasse <hassec@users.noreply.github.com> (cherry picked from commit 30f39ac98c1671547aa0b4021081e374864f1f04) * Check I/O read result on RAF inspection Co-authored-by: Kevin Backhouse <kevinbackhouse@github.com> (cherry picked from commit 09de8dc901a38555151bd87d89ada3bd931451ea) * Add test (cherry picked from commit 9c3db7f3c3cb48fe0669061e627174402f366816) Co-authored-by: Miloš Komarčević <miloskomarcevic@aim.com> Co-authored-by: Miloš Komarčević <4973094+kmilos@users.noreply.github.com>
25 lines
867 B
Python
25 lines
867 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from system_tests import CaseMeta, path
|
|
|
|
|
|
class RafNoTiffRegression(metaclass=CaseMeta):
|
|
"""
|
|
Regression test for the bug described in:
|
|
https://github.com/Exiv2/exiv2/issues/1791
|
|
"""
|
|
url = "https://github.com/Exiv2/exiv2/issues/1791"
|
|
|
|
filename1 = path("$data_path/issue_1791_old.raf")
|
|
filename2 = path("$data_path/issue_1791_new.raf")
|
|
commands = ["$exiv2 -pa $filename1", "$exiv2 -pa $filename2"]
|
|
stdout = ["""Exif.Image2.JPEGInterchangeFormat Long 1 104
|
|
Exif.Image2.JPEGInterchangeFormatLength Long 1 12
|
|
""",
|
|
"""Exif.Image2.JPEGInterchangeFormat Long 1 104
|
|
Exif.Image2.JPEGInterchangeFormatLength Long 1 12
|
|
Exif.Image.NewSubfileType Long 1 Primary image
|
|
"""]
|
|
stderr = ["", ""]
|
|
retval = [0, 0]
|