From b18d5bc1e43b4c47f6433a608dfb625b2e7edf8d Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Mon, 29 Dec 2008 14:52:29 +0000 Subject: 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 --- tests/pjsua/run.py | 2 +- tests/pjsua/runall.py | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'tests/pjsua') 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: -- cgit v1.2.3