[asterisk-commits] pabelanger: branch pabelanger/modules_check r1858 - in /asterisk/team/pabelan...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Aug 16 13:04:25 CDT 2011


Author: pabelanger
Date: Tue Aug 16 13:04:21 2011
New Revision: 1858

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=1858
Log:
New asterisk dependency for modules.

Modified:
    asterisk/team/pabelanger/modules_check/runtests.py
    asterisk/team/pabelanger/modules_check/tests/pbx/pbx_lua_background/test-config.yaml

Modified: asterisk/team/pabelanger/modules_check/runtests.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/pabelanger/modules_check/runtests.py?view=diff&rev=1858&r1=1857&r2=1858
==============================================================================
--- asterisk/team/pabelanger/modules_check/runtests.py (original)
+++ asterisk/team/pabelanger/modules_check/runtests.py Tue Aug 16 13:04:21 2011
@@ -22,7 +22,6 @@
 from asterisk.asterisk import Asterisk
 from asterisk import utils
 from sipp.version import SIPpVersion
-
 
 TESTS_CONFIG = "tests.yaml"
 TEST_RESULTS = "asterisk-test-suite-report.xml"
@@ -70,6 +69,12 @@
                     found = True
             if not found:
                 print "Unknown custom dependency - '%s'" % self.name
+        elif "asterisk" in dep:
+            self.name = dep["asterisk"]
+            # XXX TODO Hard coded path, gross.
+            module = "%s/%s.so" % ("/usr/lib/asterisk/modules", self.name)
+            self.met = os.path.isfile(module)
+
         else:
             print "Unknown dependency type specified."
 

Modified: asterisk/team/pabelanger/modules_check/tests/pbx/pbx_lua_background/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/pabelanger/modules_check/tests/pbx/pbx_lua_background/test-config.yaml?view=diff&rev=1858&r1=1857&r2=1858
==============================================================================
--- asterisk/team/pabelanger/modules_check/tests/pbx/pbx_lua_background/test-config.yaml (original)
+++ asterisk/team/pabelanger/modules_check/tests/pbx/pbx_lua_background/test-config.yaml Tue Aug 16 13:04:21 2011
@@ -8,3 +8,4 @@
     dependencies:
         - python : 'twisted'
         - python : 'starpy'
+        - asterisk : 'pbx_lua'




More information about the asterisk-commits mailing list