summaryrefslogtreecommitdiff
path: root/tests/pjsua/runall.py
diff options
context:
space:
mode:
authorNanang Izzuddin <nanang@teluu.com>2012-06-26 02:28:59 +0000
committerNanang Izzuddin <nanang@teluu.com>2012-06-26 02:28:59 +0000
commitfe6325e5fb8839a3a8624941a3c898e2d13edd4a (patch)
treee5e2b5d8727841ebf0cc10f6cd2ae4393fe684aa /tests/pjsua/runall.py
parent54b19e744f300b122ecaa80ec4a07f2cb9ef1b7f (diff)
Close #1523:
- updated scenarios to work with mod_sipp.py (adding config .py file, etc) - integrated mod_sipp.py to runall.py - removed uas.xml, as it is similar to recvfrom\100_simple.py (REGISTER+resp 200) - renamed scenarios (to allow running these SIPp scenarios without .py file): - prack_fork.xml -> uas-prack_fork.xml - inv_401_retry_after_100.xml -> uas-inv_401_retry_after_100.xml git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4177 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'tests/pjsua/runall.py')
-rw-r--r--tests/pjsua/runall.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/pjsua/runall.py b/tests/pjsua/runall.py
index 5dbfaf18..046a0cb6 100644
--- a/tests/pjsua/runall.py
+++ b/tests/pjsua/runall.py
@@ -55,6 +55,11 @@ for f in os.listdir("scripts-pesq"):
for f in os.listdir("scripts-recvfrom"):
tests.append("mod_recvfrom.py scripts-recvfrom/" + f)
+# Add sipp tests
+for f in os.listdir("scripts-sipp"):
+ if f.endswith(".xml"):
+ tests.append("mod_sipp.py scripts-sipp/" + f)
+
# Filter-out excluded tests
for pat in excluded_tests:
tests = [t for t in tests if t.find(pat)==-1]
@@ -103,7 +108,7 @@ while len(sys.argv):
for t in tests:
(mod,param) = t.split(None,2)
tname = mod[4:mod.find(".py")] + "_" + \
- param[param.find("/")+1:param.find(".py")]
+ param[param.find("/")+1:param.rfind(".")]
c = ""
if len(sys.argv):
c = " ".join(sys.argv) + " "
@@ -162,6 +167,7 @@ for t in tests:
logname = re.search(".*\s+(.*)", t).group(1)
logname = re.sub("[\\\/]", "_", logname)
logname = re.sub("\.py$", ".log", logname)
+ logname = re.sub("\.xml$", ".log", logname)
logname = "logs/" + logname
shutil.move("output.log", logname)
print "Please see '" + logname + "' for the test log."