[asterisk-commits] coreyfarrell: testsuite/asterisk/trunk r4736 - in /asterisk/trunk: lib/python...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Feb 26 08:55:49 CST 2014


Author: coreyfarrell
Date: Wed Feb 26 08:55:41 2014
New Revision: 4736

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=4736
Log:
Add dependency check for rawsocket access.

* Create 'rawsocket' custom dependency.
* Add rawsocket dependency to tests/channels/SIP/rfc2833_dtmf_detect.

(closes issue ASTERISK-23365)
Reported by: Corey Farrell
Review: https://reviewboard.asterisk.org/r/3262/

Modified:
    asterisk/trunk/lib/python/asterisk/test_config.py
    asterisk/trunk/tests/channels/SIP/rfc2833_dtmf_detect/test-config.yaml

Modified: asterisk/trunk/lib/python/asterisk/test_config.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/lib/python/asterisk/test_config.py?view=diff&rev=4736&r1=4735&r2=4736
==============================================================================
--- asterisk/trunk/lib/python/asterisk/test_config.py (original)
+++ asterisk/trunk/lib/python/asterisk/test_config.py Wed Feb 26 08:55:41 2014
@@ -193,6 +193,15 @@
 
         return False
 
+    def depend_rawsocket(self):
+        """Check the raw socket custom dependency"""
+        try:
+            test_sock = socket.socket(socket.AF_PACKET, socket.SOCK_RAW)
+            test_sock.close()
+            return True
+        except:
+            return False
+
     def _find_build_flag(self, name):
         """Determine if the specified build option exists"""
         return (self.asterisk_build_options.check_option(name))

Modified: asterisk/trunk/tests/channels/SIP/rfc2833_dtmf_detect/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/SIP/rfc2833_dtmf_detect/test-config.yaml?view=diff&rev=4736&r1=4735&r2=4736
==============================================================================
--- asterisk/trunk/tests/channels/SIP/rfc2833_dtmf_detect/test-config.yaml (original)
+++ asterisk/trunk/tests/channels/SIP/rfc2833_dtmf_detect/test-config.yaml Wed Feb 26 08:55:41 2014
@@ -30,6 +30,7 @@
             version : 'v3.0'
             feature : 'PCAP'
         - asterisk : 'chan_sip'
+        - custom : 'rawsocket'
     tags:
         - SIP
         - DTMF




More information about the asterisk-commits mailing list