summaryrefslogtreecommitdiff
path: root/tests/pjsua/runall.py
diff options
context:
space:
mode:
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."