[Erp5-report] r36379 luke - /erp5/trunk/buildout/tests/assertSoftware.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Jun 16 09:46:15 CEST 2010


Author: luke
Date: Wed Jun 16 09:46:14 2010
New Revision: 36379

URL: http://svn.erp5.org?rev=36379&view=rev
Log:
 - assert that delivered imagemagick works correctly

Modified:
    erp5/trunk/buildout/tests/assertSoftware.py

Modified: erp5/trunk/buildout/tests/assertSoftware.py
URL: http://svn.erp5.org/erp5/trunk/buildout/tests/assertSoftware.py?rev=36379&r1=36378&r2=36379&view=diff
==============================================================================
--- erp5/trunk/buildout/tests/assertSoftware.py [utf8] (original)
+++ erp5/trunk/buildout/tests/assertSoftware.py [utf8] Wed Jun 16 09:46:14 2010
@@ -155,6 +155,18 @@ class AssertSoftwareRunable(unittest.Tes
     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"""
 




More information about the Erp5-report mailing list