summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
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: