summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2008-12-29 14:52:29 +0000
committerBenny Prijono <bennylp@teluu.com>2008-12-29 14:52:29 +0000
commitb18d5bc1e43b4c47f6433a608dfb625b2e7edf8d (patch)
tree73c01cb9653af155ae800b945b50256e0bde0dcf /tests
parent171a8b0b492a96d1e4d3368f4605f4b6e3c6749d (diff)
Added --list argument to list tests in runall.py, and fixed build.mak location error due to moving test directory last time
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2398 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'tests')
-rw-r--r--tests/pjsua/run.py2
-rw-r--r--tests/pjsua/runall.py6
2 files changed, 7 insertions, 1 deletions
diff --git a/tests/pjsua/run.py b/tests/pjsua/run.py
index df940ea7..c4dfcfc9 100644
--- a/tests/pjsua/run.py
+++ b/tests/pjsua/run.py
@@ -80,7 +80,7 @@ if G_EXE == "":
sys.exit(1)
G_INUNIX = False
else:
- f = open("../../../build.mak", "r")
+ f = open("../../build.mak", "r")
while True:
line = f.readline()
if not line:
diff --git a/tests/pjsua/runall.py b/tests/pjsua/runall.py
index 4785fdec..3eb1a6d4 100644
--- a/tests/pjsua/runall.py
+++ b/tests/pjsua/runall.py
@@ -57,6 +57,12 @@ for f in os.listdir("scripts-recvfrom"):
for pat in excluded_tests:
tests = [t for t in tests if t.find(pat)==-1]
+# List the tests only?
+if len(sys.argv)==2 and sys.argv[1]=="--list":
+ for t in tests:
+ print t
+ sys.exit(0)
+
# Resume test?
resume_script=""
if len(sys.argv) > 1: