forked from Exiv2/exiv2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add testing for fix of 1. in Exiv2#1934
- Loading branch information
1 parent
d6acabc
commit 2ea2075
Showing
4 changed files
with
30 additions
and
2 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
from system_tests import CaseMeta, CopyTmpFiles, path | ||
|
||
@CopyTmpFiles("$data_path/pr_2425_poc1.jpg") | ||
class testExiv2AppExtractOverrideFile(metaclass=CaseMeta): | ||
url = "https://github.com/Exiv2/exiv2/issues/2425" | ||
description = "Fix bug 1. reported in https://github.com/Exiv2/exiv2/issues/1934" | ||
|
||
filename_jpg = "$tmp_path/pr_2425_poc1.jpg" | ||
filename_exv = "$tmp_path/pr_2425_poc1.exv" | ||
|
||
commands = ["$exiv2 --force --extract XXeix $filename_jpg", | ||
"$exiv2 --print a $filename_exv", | ||
"$exiv2 --force --extract XXex $filename_jpg", | ||
"$exiv2 --print a $filename_exv"] | ||
|
||
retval = [0]*4 | ||
stderr = [""]*4 | ||
stdout = ["""""", | ||
"""Exif.Image.ImageDescription Ascii 11 Test image | ||
Iptc.Application2.Subject String 12 Test subject | ||
Xmp.dc.subject XmpBag 1 Test subject | ||
""", | ||
"""""", | ||
"""Exif.Image.ImageDescription Ascii 11 Test image | ||
Xmp.dc.subject XmpBag 1 Test subject | ||
"""] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters