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

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Jun 9 15:10:48 CEST 2010


Author: luke
Date: Wed Jun  9 15:10:47 2010
New Revision: 36163

URL: http://svn.erp5.org?rev=36163&view=rev
Log:
 - assert that provided software is runable

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=36163&r1=36162&r2=36163&view=diff
==============================================================================
--- erp5/trunk/buildout/tests/assertSoftware.py [utf8] (original)
+++ erp5/trunk/buildout/tests/assertSoftware.py [utf8] Wed Jun  9 15:10:47 2010
@@ -115,6 +115,25 @@ class AssertLddLibs(unittest.TestCase):
     result = os.system("ldd parts/memcached/bin/memcached | grep -q 'parts/li"
         "bevent/lib/libevent'")
 
+class AssertSoftwareRunable(unittest.TestCase):
+  def test_HaProxy(self):
+    stdout, stderr = subprocess.Popen(["parts/haproxy/sbin/haproxy", "-v"],
+        stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()
+    self.assertEqual(stderr, '')
+    self.assertTrue(stdout.startswith('HA-Proxy'))
+
+  def test_Apache(self):
+    stdout, stderr = subprocess.Popen(["parts/apache/bin/httpd", "-v"],
+        stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()
+    self.assertEqual(stderr, '')
+    self.assertTrue(stdout.startswith('Server version: Apache'))
+
+  def test_Ocropus(self):
+    stdout, stderr = subprocess.Popen(["parts/ocropus/bin/ocropus"],
+        stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()
+    self.assertEqual(stdout, '')
+    self.assertTrue('splitting books' in stderr)
+
 class AssertApache(unittest.TestCase):
   """Tests for built apache"""
 




More information about the Erp5-report mailing list