summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2008-06-26 22:17:33 +0000
committerBenny Prijono <bennylp@teluu.com>2008-06-26 22:17:33 +0000
commitaac5231515ffded8354292ba0940ca02fa03ff5d (patch)
tree79fc99847f165be092d89d4423f4cbfb2c535b9e
parentfa29e332b8c36497073e592ff45a65dad95dbba0 (diff)
Added test duration in runall.py output, and add public ICE in excluded tests
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2068 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r--pjsip-apps/src/test-pjsua/runall.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/pjsip-apps/src/test-pjsua/runall.py b/pjsip-apps/src/test-pjsua/runall.py
index 479e5980..5c743393 100644
--- a/pjsip-apps/src/test-pjsua/runall.py
+++ b/pjsip-apps/src/test-pjsua/runall.py
@@ -1,6 +1,7 @@
# $Id$
import os
import sys
+import time
# Usage:
# runall.py [test-to-resume]
@@ -13,6 +14,7 @@ tests = []
excluded_tests = [ "svn",
"pyc",
"scripts-call/150_srtp_2_1", # SRTP optional 'cannot' call SRTP mandatory
+ "scripts-call/301_ice_public_a.py", # Unreliable, proxy returns 408 sometimes
"scripts-call/301_ice_public_b.py", # Doesn't work because OpenSER modifies SDP
"scripts-media-playrec/100_resample_lf_8_11.py", # related to clock-rate 11 kHz problem
"scripts-media-playrec/100_resample_lf_8_22.py", # related to clock-rate 22 kHz problem
@@ -67,11 +69,17 @@ for t in tests:
continue
resume_script=""
cmdline = "python run.py " + t
- print "Running " + cmdline
+ t0 = time.time()
+ print "Running " + cmdline + "...",
ret = os.system(cmdline + " > output.log")
+ t1 = time.time()
if ret != 0:
- print "Test " + t + " failed."
+ dur = int(t1 - t0)
+ print " failed!! [" + str(dur) + "s]"
print "Please see 'output.log' for the test log."
sys.exit(1)
+ else:
+ dur = int(t1 - t0)
+ print " ok [" + str(dur) + "s]"
print "All tests completed successfully"