[asterisk-commits] espiceland: testsuite/asterisk/trunk r773 - in /asterisk/trunk/tests: ./ fast...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Aug 20 09:47:59 CDT 2010


Author: espiceland
Date: Fri Aug 20 09:47:55 2010
New Revision: 773

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=773
Log:
Fixed SAY tests. Backgrounddetect wasn't listening soon enough. Also fixed the
placement of an error message.

Modified:
    asterisk/trunk/tests/fastagi/configs/extensions.conf
    asterisk/trunk/tests/fastagi/say-alpha/run-test
    asterisk/trunk/tests/fastagi/say-date/run-test
    asterisk/trunk/tests/fastagi/say-datetime/run-test
    asterisk/trunk/tests/fastagi/say-digits/run-test
    asterisk/trunk/tests/fastagi/say-number/run-test
    asterisk/trunk/tests/fastagi/say-phonetic/run-test
    asterisk/trunk/tests/fastagi/say-time/run-test
    asterisk/trunk/tests/tests.yaml

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=773&r1=772&r2=773
==============================================================================
--- asterisk/trunk/tests/fastagi/configs/extensions.conf (original)
+++ asterisk/trunk/tests/fastagi/configs/extensions.conf Fri Aug 20 09:47:55 2010
@@ -53,8 +53,8 @@
 exten => td_and_agi_notify,1,Answer()
 exten => td_and_agi_notify,n,Set(GLOBAL(DEBUG)=FAIL - td_and_agi_notify answered)
 exten => td_and_agi_notify,n,Set(TALK_DETECTED=0)
-exten => td_and_agi_notify,n,BackgroundDetect(silence/10,1,5000,20000)
-;exten => td_and_agi_notify,n,Wait(15)
+exten => td_and_agi_notify,n,BackgroundDetect(silence/10,100,100,20000)
+exten => td_and_agi_notify,n,Wait(15)
 exten => td_and_agi_notify,n,Set(GLOBAL(DEBUG)=FAIL - td_and_agi_notify listening for sounds)
 exten => td_and_agi_notify,n,GoToIf($[${TALK_DETECTED}=0]?fail:pass)
 exten => td_and_agi_notify,n(fail),Set(GLOBAL(DEBUG)=FAIL - talk detect failed with result ${TALK_DETECTED})

Modified: asterisk/trunk/tests/fastagi/say-alpha/run-test
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/fastagi/say-alpha/run-test?view=diff&rev=773&r1=772&r2=773
==============================================================================
--- asterisk/trunk/tests/fastagi/say-alpha/run-test (original)
+++ asterisk/trunk/tests/fastagi/say-alpha/run-test Fri Aug 20 09:47:55 2010
@@ -79,9 +79,10 @@
                 self.asterisk.cli_exec("dialplan show globals")
                 print "AGI reports success: ", self.passed
                 print "Diaplan reports success: ", self.notified
-                print "FAIL - FastAGI SAY ALPHA test failed. View result",\
-                    "of 'core show globals' in log for more detailed",\
-                    "failure results."
+
+            print "FAIL - FastAGI SAY ALPHA test failed. View result",\
+                "of 'core show globals' in log for more detailed",\
+                "failure results."
 
         self.stop_asterisk()
 
@@ -122,7 +123,7 @@
 
     agi_test = FastAGISayAlphaTest(argv)
     reactor.run()
-    if agi_test.passed is not True:
+    if agi_test.passed is not True or agi_test.notified is not True:
         return 1
 
     return 0

Modified: asterisk/trunk/tests/fastagi/say-date/run-test
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/fastagi/say-date/run-test?view=diff&rev=773&r1=772&r2=773
==============================================================================
--- asterisk/trunk/tests/fastagi/say-date/run-test (original)
+++ asterisk/trunk/tests/fastagi/say-date/run-test Fri Aug 20 09:47:55 2010
@@ -80,9 +80,10 @@
                 self.asterisk.cli_exec("dialplan show globals")
                 print "AGI reports success: ", self.passed
                 print "Diaplan reports success: ", self.notified
-                print "FAIL - FastAGI SAY DATE test failed. View result",\
-                    "of 'core show globals' in log for more detailed",\
-                    "failure results."
+
+            print "FAIL - FastAGI SAY DATE test failed. View result",\
+                "of 'core show globals' in log for more detailed",\
+                "failure results."
 
         self.stop_asterisk()
 
@@ -123,7 +124,7 @@
 
     agi_test = FastAGISayDateTest(argv)
     reactor.run()
-    if agi_test.passed is not True:
+    if agi_test.passed is not True or agi_test.notified is not True:
         return 1
 
     return 0

Modified: asterisk/trunk/tests/fastagi/say-datetime/run-test
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/fastagi/say-datetime/run-test?view=diff&rev=773&r1=772&r2=773
==============================================================================
--- asterisk/trunk/tests/fastagi/say-datetime/run-test (original)
+++ asterisk/trunk/tests/fastagi/say-datetime/run-test Fri Aug 20 09:47:55 2010
@@ -79,9 +79,10 @@
                 self.asterisk.cli_exec("dialplan show globals")
                 print "AGI reports success: ", self.passed
                 print "Diaplan reports success: ", self.notified
-                print "FAIL - FastAGI SAY DATETIME test failed. View result",\
-                    "of 'core show globals' in log for more detailed",\
-                    "failure results."
+
+            print "FAIL - FastAGI SAY DATETIME test failed. View result",\
+                "of 'core show globals' in log for more detailed",\
+                "failure results."
 
         self.stop_asterisk()
 
@@ -122,7 +123,7 @@
 
     agi_test = FastAGISayDateTimeTest(argv)
     reactor.run()
-    if agi_test.passed is not True:
+    if agi_test.passed is not True or agi_test.notified is not True:
         return 1
 
     return 0

Modified: asterisk/trunk/tests/fastagi/say-digits/run-test
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/fastagi/say-digits/run-test?view=diff&rev=773&r1=772&r2=773
==============================================================================
--- asterisk/trunk/tests/fastagi/say-digits/run-test (original)
+++ asterisk/trunk/tests/fastagi/say-digits/run-test Fri Aug 20 09:47:55 2010
@@ -79,9 +79,10 @@
                 self.asterisk.cli_exec("dialplan show globals")
                 print "AGI reports success: ", self.passed
                 print "Diaplan reports success: ", self.notified
-                print "FAIL - FastAGI SAY DIGITS test failed. View result",\
-                    "of 'core show globals' in log for more detailed",\
-                    "failure results."
+
+            print "FAIL - FastAGI SAY DIGITS test failed. View result",\
+                "of 'core show globals' in log for more detailed",\
+                "failure results."
 
         self.stop_asterisk()
 
@@ -122,7 +123,7 @@
 
     agi_test = FastAGISayDigitsTest(argv)
     reactor.run()
-    if agi_test.passed is not True:
+    if agi_test.passed is not True or agi_test.notified is not True:
         return 1
 
     return 0

Modified: asterisk/trunk/tests/fastagi/say-number/run-test
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/fastagi/say-number/run-test?view=diff&rev=773&r1=772&r2=773
==============================================================================
--- asterisk/trunk/tests/fastagi/say-number/run-test (original)
+++ asterisk/trunk/tests/fastagi/say-number/run-test Fri Aug 20 09:47:55 2010
@@ -79,9 +79,10 @@
                 self.asterisk.cli_exec("dialplan show globals")
                 print "AGI reports success: ", self.passed
                 print "Diaplan reports success: ", self.notified
-                print "FAIL - FastAGI SAY NUMBER test failed. View result",\
-                    "of 'core show globals' in log for more detailed",\
-                    "failure results."
+
+            print "FAIL - FastAGI SAY NUMBER test failed. View result",\
+                "of 'core show globals' in log for more detailed",\
+                "failure results."
 
         self.stop_asterisk()
 
@@ -122,7 +123,7 @@
 
     agi_test = FastAGISayNumberTest(argv)
     reactor.run()
-    if agi_test.passed is not True:
+    if agi_test.passed is not True or agi_test.notified is not True:
         return 1
 
     return 0

Modified: asterisk/trunk/tests/fastagi/say-phonetic/run-test
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/fastagi/say-phonetic/run-test?view=diff&rev=773&r1=772&r2=773
==============================================================================
--- asterisk/trunk/tests/fastagi/say-phonetic/run-test (original)
+++ asterisk/trunk/tests/fastagi/say-phonetic/run-test Fri Aug 20 09:47:55 2010
@@ -79,9 +79,10 @@
                 self.asterisk.cli_exec("dialplan show globals")
                 print "AGI reports success: ", self.passed
                 print "Diaplan reports success: ", self.notified
-                print "FAIL - FastAGI SAY PHONETIC test failed. View result",\
-                    "of 'core show globals' in log for more detailed",\
-                    "failure results."
+
+            print "FAIL - FastAGI SAY PHONETIC test failed. View result",\
+                "of 'core show globals' in log for more detailed",\
+                "failure results."
 
         self.stop_asterisk()
 
@@ -122,7 +123,7 @@
 
     agi_test = FastAGISayPhoneticTest(argv)
     reactor.run()
-    if agi_test.passed is not True:
+    if agi_test.passed is not True or agi_test.notified is not True:
         return 1
 
     return 0

Modified: asterisk/trunk/tests/fastagi/say-time/run-test
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/fastagi/say-time/run-test?view=diff&rev=773&r1=772&r2=773
==============================================================================
--- asterisk/trunk/tests/fastagi/say-time/run-test (original)
+++ asterisk/trunk/tests/fastagi/say-time/run-test Fri Aug 20 09:47:55 2010
@@ -80,9 +80,10 @@
                 self.asterisk.cli_exec("dialplan show globals")
                 print "AGI reports success: ", self.passed
                 print "Diaplan reports success: ", self.notified
-                print "FAIL - FastAGI SAY TIME test failed. View result",\
-                    "of 'core show globals' in log for more detailed",\
-                    "failure results."
+
+            print "FAIL - FastAGI SAY TIME test failed. View result",\
+                "of 'core show globals' in log for more detailed",\
+                "failure results."
 
         self.stop_asterisk()
 
@@ -123,7 +124,7 @@
 
     agi_test = FastAGISayTimeTest(argv)
     reactor.run()
-    if agi_test.passed is not True:
+    if agi_test.passed is not True or agi_test.notified is not True:
         return 1
 
     return 0

Modified: asterisk/trunk/tests/tests.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/tests.yaml?view=diff&rev=773&r1=772&r2=773
==============================================================================
--- asterisk/trunk/tests/tests.yaml (original)
+++ asterisk/trunk/tests/tests.yaml Fri Aug 20 09:47:55 2010
@@ -54,12 +54,12 @@
     - test: 'fastagi/execute'
     - test: 'fastagi/get-data'
     - test: 'fastagi/record-file'
-#    - test: 'fastagi/say-alpha'
-#    - test: 'fastagi/say-date'
-#    - test: 'fastagi/say-datetime'
-#    - test: 'fastagi/say-time'
-#    - test: 'fastagi/say-digits'
-#    - test: 'fastagi/say-number'
-#    - test: 'fastagi/say-phonetic'
+    - test: 'fastagi/say-alpha'
+    - test: 'fastagi/say-date'
+    - test: 'fastagi/say-datetime'
+    - test: 'fastagi/say-time'
+    - test: 'fastagi/say-digits'
+    - test: 'fastagi/say-number'
+    - test: 'fastagi/say-phonetic'
 
 




More information about the asterisk-commits mailing list