summaryrefslogtreecommitdiff
path: root/user/exiv2/disable-icc-test.patch
diff options
context:
space:
mode:
authorZach van Rijn <me@zv.io>2022-02-05 19:00:47 +0000
committerZach van Rijn <me@zv.io>2022-10-21 18:33:57 -0500
commita786aceb56e767c3c552b3d66b68017ce0676b06 (patch)
treeb46f24c84274e2a9144e509339290699bab01066 /user/exiv2/disable-icc-test.patch
parentcdcbc714c69b57d1b25e82965eb1c4056f63a350 (diff)
downloadpackages-a786aceb56e767c3c552b3d66b68017ce0676b06.tar.gz
packages-a786aceb56e767c3c552b3d66b68017ce0676b06.tar.bz2
packages-a786aceb56e767c3c552b3d66b68017ce0676b06.tar.xz
packages-a786aceb56e767c3c552b3d66b68017ce0676b06.zip
user/exiv2: bump { 0.27.2 --> 0.27.5+git (20220205) }. fixes #497, #498, #499.
Diffstat (limited to 'user/exiv2/disable-icc-test.patch')
-rw-r--r--user/exiv2/disable-icc-test.patch76
1 files changed, 76 insertions, 0 deletions
diff --git a/user/exiv2/disable-icc-test.patch b/user/exiv2/disable-icc-test.patch
new file mode 100644
index 000000000..3f2c39fd5
--- /dev/null
+++ b/user/exiv2/disable-icc-test.patch
@@ -0,0 +1,76 @@
+diff -ur a/tests/bash_tests/testcases.py b/tests/bash_tests/testcases.py
+--- a/tests/bash_tests/testcases.py 2022-02-05 18:26:24.330000000 +0000
++++ b/tests/bash_tests/testcases.py 2022-02-05 18:26:50.260000000 +0000
+@@ -440,72 +440,6 @@
+ BT.reportTest('geotag-test', out)
+
+
+- def icc_test(self):
+- # Test driver for exiv2.exe ICC support (-pS, -pC, -eC, -iC)
+-
+- def test1120(img):
+- # --comment and -dc clobbered by writing ICC/JPG
+- out = BT.Output()
+- if img == 'Reagan2.jp2':
+- return
+- if img == 'exiv2-bug1199.webp':
+- out += BT.Executer('exiv2 --comment abcdefg {img}', vars(), assert_returncode=[0, 1])
+- out += BT.Executer('exiv2 -pS {img}', vars())
+- out += ''
+- else:
+- out += BT.Executer('exiv2 --comment abcdefg {img}', vars())
+- out += BT.Executer('exiv2 -pS {img}', vars())
+- out += BT.Executer('exiv2 -pc {img}', vars())
+- out += BT.Executer('exiv2 -dc {img}', vars())
+- out += BT.Executer('exiv2 -pS {img}', vars())
+- return str(out) or None
+-
+- # num = 1074 # ICC Profile Support
+- out = BT.Output()
+- for img in ['Reagan.jpg'
+- ,'exiv2-bug1199.webp'
+- ,'ReaganLargePng.png'
+- ,'ReaganLargeJpg.jpg'
+- ,'Reagan2.jp2' # 1272 ReaganLargeTiff.tiff
+- ]:
+- stub = img.split('.')[0]
+- iccname = stub + '.icc'
+-
+- for i in ['large.icc', 'small.icc', img]:
+- BT.copyTestFile(i)
+-
+- out += BT.Executer('exiv2 -pS {img}', vars())
+- e = BT.Executer('exiv2 -pC {img}', vars(), compatible_output=False, decode_output=False)
+- BT.save(e.stdout, stub + '_1.icc')
+- out += BT.Executer('exiv2 -eC --force {img}', vars())
+- BT.mv(iccname, stub + '_2.icc')
+- out += test1120(img)
+-
+- BT.copyTestFile('large.icc', iccname)
+- out += BT.Executer('exiv2 -iC {img}', vars())
+- e = BT.Executer('exiv2 -pC {img}', vars(), compatible_output=False, decode_output=False)
+- BT.save(e.stdout, stub + '_large_1.icc')
+- out += BT.Executer('exiv2 -pS {img}', vars())
+- out += BT.Executer('exiv2 -eC --force {img}', vars())
+- BT.mv(iccname, stub + '_large_2.icc')
+- out += test1120(img)
+-
+- BT.copyTestFile('small.icc', iccname)
+- out += BT.Executer('exiv2 -iC {img}', vars())
+- e = BT.Executer('exiv2 -pC {img}', vars(), compatible_output=False, decode_output=False)
+- BT.save(e.stdout, stub + '_small_1.icc')
+- out += BT.Executer('exiv2 -pS {img}', vars())
+- out += BT.Executer('exiv2 -eC --force {img}', vars())
+- BT.mv(iccname, stub + '_small_2.icc')
+- out += test1120(img)
+-
+- for f in [stub, stub + '_small', stub + '_large']:
+- for i in [1, 2]:
+- out += BT.md5sum('{}_{}.icc'.format(f, i))
+-
+- BT.reportTest('icc-test', out)
+-
+-
+ def image_test(self):
+ test_files = ['table.jpg', 'smiley1.jpg', 'smiley2.jpg']
+ erase_test_files = [