Commit 0e2a854e authored by Łukasz Nowak's avatar Łukasz Nowak

- assert that delivered imagemagick works correctly


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36379 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3dec3710
......@@ -155,6 +155,18 @@ class AssertSoftwareRunable(unittest.TestCase):
self.assertEqual(stderr, '')
self.assertEqual(stdout.strip(), 'rdiff-backup 1.0.5')
def test_imagemagick(self):
binary_list = [ 'animate', 'composite', 'convert', 'identify', 'mogrify',
'stream', 'compare', 'conjure', 'display', 'import', 'montage']
base = os.path.join('parts', 'imagemagick', 'bin')
error_list = []
for binary in binary_list:
stdout, stderr = subprocess.Popen([os.path.join(base, binary), "-version"],
stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()
if 'Version: ImageMagick' not in stdout:
error_list.append(binary)
self.assertEqual([], error_list)
class AssertApache(unittest.TestCase):
"""Tests for built apache"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment