Test suite update.

main
Robin Mills 4 years ago
parent 7beb4e3e0d
commit 84c309a3f5

Binary file not shown.

Binary file not shown.

@ -0,0 +1,18 @@
# -*- coding: utf-8 -*-
from system_tests import CaseMeta, CopyTmpFiles, path
@CopyTmpFiles("$data_path/test_issue_1471.exv")
class test_issue_1471Test(metaclass=CaseMeta):
filename = path("$tmp_path/test_issue_1471.exv")
commands = [ "$exiv2 -K Exif.Sony2010e.WB_RGBLevels $filename"
, "$exiv2 -M\"set Exif.Image.ImageID foobar\" $filename"
, "$exiv2 -K Exif.Sony2010e.WB_RGBLevels $filename"
]
stdout = ["Exif.Sony2010e.WB_RGBLevels Short 3 598 256 442\n"
,""
,"Exif.Sony2010e.WB_RGBLevels Short 3 598 256 442\n"
]
stderr = [""]*len(commands)
retval = [ 0]*len(commands)

@ -0,0 +1,29 @@
# -*- coding: utf-8 -*-
from system_tests import CaseMeta, CopyTmpFiles, path
@CopyTmpFiles("$data_path/test_issue_1472.jpg")
class test_issue_1472Test(metaclass=CaseMeta):
filename = path("$tmp_path/test_issue_1472.jpg")
exvfile = path("$tmp_path/test_issue_1472.exv")
commands = [ "rm -rf $exvfile"
, "$exiv2 -pa --grep LensType2 $filename"
, "$exiv2 ex $filename"
, "$exiv2 -pa --grep LensType2 $exvfile"
, "$exiv2 rm $filename"
, "$exiv2 -pa --grep LensType2 $filename"
, "$exiv2 in $filename"
, "$exiv2 -pa --grep LensType2 $filename"
]
stdout = [""
,"Exif.Sony2010e.LensType2 Short 1 1024\n"
,""
,"Exif.Sony2010e.LensType2 Short 1 1024\n"
,""
,""
,""
,"Exif.Sony2010e.LensType2 Short 1 1024\n"
]
stderr = [""]*len(commands)
retval = [ 0,0,0,0,0,1,0,0]
Loading…
Cancel
Save