[asterisk-commits] mmichelson: branch mmichelson/v6tests r495 - in /asterisk/team/mmichelson/v6t...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jul 15 17:10:43 CDT 2010


Author: mmichelson
Date: Thu Jul 15 17:10:39 2010
New Revision: 495

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=495
Log:
Add custom pjsuav6 dependency to runtests.py and add dependency where needed.


Modified:
    asterisk/team/mmichelson/v6tests/runtests.py
    asterisk/team/mmichelson/v6tests/tests/sip_attended_transfer_v6/test-config.yaml
    asterisk/team/mmichelson/v6tests/tests/sip_one_legged_transfer_v6/test-config.yaml

Modified: asterisk/team/mmichelson/v6tests/runtests.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/mmichelson/v6tests/runtests.py?view=diff&rev=495&r1=494&r2=495
==============================================================================
--- asterisk/team/mmichelson/v6tests/runtests.py (original)
+++ asterisk/team/mmichelson/v6tests/runtests.py Thu Jul 15 17:10:39 2010
@@ -88,6 +88,19 @@
         except:
             return False
 
+    def depend_pjsuav6(self):
+        '''
+        This tests if pjsua was compiled with IPv6 support. To do this,
+        we run pjsua --help and parse the output to determine if --ipv6
+        is a valid option
+        '''
+        if self.__which('pjsua') is None:
+            return False
+
+        help_output = subprocess.check_output(['pjsua', '--help'])
+        if help_output.find('--ipv6') == -1:
+            return False
+        return True
 
 class TestConfig:
     def __init__(self, test_name, ast_version):

Modified: asterisk/team/mmichelson/v6tests/tests/sip_attended_transfer_v6/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/mmichelson/v6tests/tests/sip_attended_transfer_v6/test-config.yaml?view=diff&rev=495&r1=494&r2=495
==============================================================================
--- asterisk/team/mmichelson/v6tests/tests/sip_attended_transfer_v6/test-config.yaml (original)
+++ asterisk/team/mmichelson/v6tests/tests/sip_attended_transfer_v6/test-config.yaml Thu Jul 15 17:10:39 2010
@@ -10,3 +10,4 @@
         - python : 'starpy'
         - app : 'pjsua'
         - custom : 'ipv6'
+        - custom : 'pjsuav6'

Modified: asterisk/team/mmichelson/v6tests/tests/sip_one_legged_transfer_v6/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/mmichelson/v6tests/tests/sip_one_legged_transfer_v6/test-config.yaml?view=diff&rev=495&r1=494&r2=495
==============================================================================
--- asterisk/team/mmichelson/v6tests/tests/sip_one_legged_transfer_v6/test-config.yaml (original)
+++ asterisk/team/mmichelson/v6tests/tests/sip_one_legged_transfer_v6/test-config.yaml Thu Jul 15 17:10:39 2010
@@ -10,3 +10,4 @@
         - python : 'starpy'
         - app : 'pjsua'
         - custom: 'ipv6'
+        - custom: 'pjsuav6'




More information about the asterisk-commits mailing list