[asterisk-commits] espiceland: testsuite/asterisk/trunk r726 - in /asterisk/trunk/tests/fastagi:...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Aug 16 11:03:02 CDT 2010


Author: espiceland
Date: Mon Aug 16 11:02:59 2010
New Revision: 726

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=726
Log:
updated run-tests to use /usr/bin/env to find python. Changes to
extensions.conf for record-file.

Modified:
    asterisk/trunk/tests/fastagi/channel-status/run-test
    asterisk/trunk/tests/fastagi/configs/extensions.conf
    asterisk/trunk/tests/fastagi/connect/run-test
    asterisk/trunk/tests/fastagi/control-stream-file/run-test
    asterisk/trunk/tests/fastagi/database/run-test
    asterisk/trunk/tests/fastagi/execute/run-test
    asterisk/trunk/tests/fastagi/get-data/run-test
    asterisk/trunk/tests/fastagi/hangup/run-test
    asterisk/trunk/tests/fastagi/stream-file/run-test

Modified: asterisk/trunk/tests/fastagi/channel-status/run-test
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/fastagi/channel-status/run-test?view=diff&rev=726&r1=725&r2=726
==============================================================================
--- asterisk/trunk/tests/fastagi/channel-status/run-test (original)
+++ asterisk/trunk/tests/fastagi/channel-status/run-test Mon Aug 16 11:02:59 2010
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 '''
 Copyright (C) 2010, Digium, Inc.
 Erin Spiceland <espiceland at digium.com>

Modified: asterisk/trunk/tests/fastagi/configs/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/fastagi/configs/extensions.conf?view=diff&rev=726&r1=725&r2=726
==============================================================================
--- asterisk/trunk/tests/fastagi/configs/extensions.conf (original)
+++ asterisk/trunk/tests/fastagi/configs/extensions.conf Mon Aug 16 11:02:59 2010
@@ -7,7 +7,7 @@
 exten => echo,1,Answer()
 exten => echo,n,Echo()
 
-; Used in connect, hangup, control-stream-file, stream-file, database, execute, get-data
+; Used in connect, hangup, control-stream-file, stream-file, database, execute, get-data, record-file
 exten => b_exten,1,Answer()
 exten => b_exten,n,Set(GLOBAL(DEBUG)=FAIL - before agi)
 exten => b_exten,n,AGI(agi://127.0.0.1:4573)
@@ -26,3 +26,20 @@
 exten => d_exten,n,SendDTMF(w3w2w1w2w3w3w3w#)
 exten => d_exten,n,Set(GLOBAL(DEBUG)=FAIL - d_exten sent DTMF)
 exten => d_exten,n,HangUp()
+
+; Used in record-file
+exten => e_exten,1,Answer()
+exten => e_exten,n,Set(GLOBAL(DEBUG)=FAIL - e_exten answered)
+exten => e_exten,n,Wait(1)
+exten => e_exten,n,Playback(beep)
+exten => e_exten,n,SendDTMF(#)
+exten => e_exten,n,Set(GLOBAL(DEBUG)=FAIL - e_exten sent sounds and exit digit)
+exten => e_exten,n,HangUp()
+
+; Used in record-file
+exten => f_exten,1,Answer()
+exten => f_exten,n,Set(GLOBAL(DEBUG)=FAIL - f_exten answered)
+exten => f_exten,n,Wait(1)
+exten => f_exten,n,Playback(beep)
+exten => f_exten,n,Set(GLOBAL(DEBUG)=FAIL - f_exten sent sounds)
+exten => f_exten,n,HangUp()

Modified: asterisk/trunk/tests/fastagi/connect/run-test
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/fastagi/connect/run-test?view=diff&rev=726&r1=725&r2=726
==============================================================================
--- asterisk/trunk/tests/fastagi/connect/run-test (original)
+++ asterisk/trunk/tests/fastagi/connect/run-test Mon Aug 16 11:02:59 2010
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 '''
 Copyright (C) 2010, Digium, Inc.
 Erin Spiceland <espiceland at digium.com>

Modified: asterisk/trunk/tests/fastagi/control-stream-file/run-test
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/fastagi/control-stream-file/run-test?view=diff&rev=726&r1=725&r2=726
==============================================================================
--- asterisk/trunk/tests/fastagi/control-stream-file/run-test (original)
+++ asterisk/trunk/tests/fastagi/control-stream-file/run-test Mon Aug 16 11:02:59 2010
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 '''
 Copyright (C) 2010, Digium, Inc.
 Erin Spiceland <espiceland at digium.com>

Modified: asterisk/trunk/tests/fastagi/database/run-test
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/fastagi/database/run-test?view=diff&rev=726&r1=725&r2=726
==============================================================================
--- asterisk/trunk/tests/fastagi/database/run-test (original)
+++ asterisk/trunk/tests/fastagi/database/run-test Mon Aug 16 11:02:59 2010
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 '''
 Copyright (C) 2010, Digium, Inc.
 Erin Spiceland <espiceland at digium.com>

Modified: asterisk/trunk/tests/fastagi/execute/run-test
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/fastagi/execute/run-test?view=diff&rev=726&r1=725&r2=726
==============================================================================
--- asterisk/trunk/tests/fastagi/execute/run-test (original)
+++ asterisk/trunk/tests/fastagi/execute/run-test Mon Aug 16 11:02:59 2010
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 '''
 Copyright (C) 2010, Digium, Inc.
 Erin Spiceland <espiceland at digium.com>

Modified: asterisk/trunk/tests/fastagi/get-data/run-test
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/fastagi/get-data/run-test?view=diff&rev=726&r1=725&r2=726
==============================================================================
--- asterisk/trunk/tests/fastagi/get-data/run-test (original)
+++ asterisk/trunk/tests/fastagi/get-data/run-test Mon Aug 16 11:02:59 2010
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 '''
 Copyright (C) 2010, Digium, Inc.
 Erin Spiceland <espiceland at digium.com>
@@ -77,7 +77,7 @@
                 self.asterisk.cli_exec("core show globals")
             else:
                 self.asterisk.cli_exec("dialplan show globals")
-                print "FAIL - FastAGI Connection test failed. View result",\
+                print "FAIL - FastAGI GET DATA test failed. View result",\
                     "of 'core show globals' in log for more detailed",\
                     "failure results."
 

Modified: asterisk/trunk/tests/fastagi/hangup/run-test
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/fastagi/hangup/run-test?view=diff&rev=726&r1=725&r2=726
==============================================================================
--- asterisk/trunk/tests/fastagi/hangup/run-test (original)
+++ asterisk/trunk/tests/fastagi/hangup/run-test Mon Aug 16 11:02:59 2010
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 '''
 Copyright (C) 2010, Digium, Inc.
 Erin Spiceland <espiceland at digium.com>

Modified: asterisk/trunk/tests/fastagi/stream-file/run-test
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/fastagi/stream-file/run-test?view=diff&rev=726&r1=725&r2=726
==============================================================================
--- asterisk/trunk/tests/fastagi/stream-file/run-test (original)
+++ asterisk/trunk/tests/fastagi/stream-file/run-test Mon Aug 16 11:02:59 2010
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 '''
 Copyright (C) 2010, Digium, Inc.
 Erin Spiceland <espiceland at digium.com>




More information about the asterisk-commits mailing list