diff options
author | Benny Prijono <bennylp@teluu.com> | 2008-06-13 15:32:08 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2008-06-13 15:32:08 +0000 |
commit | b7242dd477e952452a5c01b8ab49ae7e41463683 (patch) | |
tree | 3b5e81e9441cac83526df93e0c361a97ed0afa32 /pjsip-apps/src/test-pjsua/runall.py | |
parent | e29e2ddc2570f879e79b39659111bda7bb641a86 (diff) |
More ticket #543: added ICE test
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2017 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip-apps/src/test-pjsua/runall.py')
-rw-r--r-- | pjsip-apps/src/test-pjsua/runall.py | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pjsip-apps/src/test-pjsua/runall.py b/pjsip-apps/src/test-pjsua/runall.py new file mode 100644 index 00000000..0ded114b --- /dev/null +++ b/pjsip-apps/src/test-pjsua/runall.py @@ -0,0 +1,37 @@ +# $Id:$ +import os +import sys + +# Initialize test list +tests = [] + +# Excluded tests (because they fail?) +excluded_tests = [ "svn", + "pyc", + "scripts-call/150_srtp_1_2", + "scripts-call/150_srtp_2_1", + "scripts-call/300_ice_1_1"] + +# Add all tests in "scripts-run" directory. +for f in os.listdir("scripts-run"): + tests.append("mod_run.py scripts-run/" + f) + +# Add all tests in "scripts-call" directory. +for f in os.listdir("scripts-call"): + tests.append("mod_call.py scripts-call/" + f) + +# Filter-out excluded tests +for pat in excluded_tests: + tests = [t for t in tests if t.find(pat)==-1] + +# Now run the tests +for t in tests: + cmdline = "python run.py " + t + print "Running " + cmdline + ret = os.system(cmdline + " > output.log") + if ret != 0: + print "Test " + t + " failed." + print "Please see 'output.log' for the test log." + sys.exit(1) + +print "All tests completed successfully" |