blob: 0ded114bf31e91ddd43e8eaa08293baf2a225604 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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"
|