diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2012-09-27 15:06:55 +0200 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2012-09-27 15:06:55 +0200 |
| commit | db2f84e966682c1072cd579baa9511906a276ab0 (patch) | |
| tree | 6554c194b2cf52e19e7940ed31f9c64c9d540569 /tests/run.py | |
| parent | 40c1ce264991447522e8296ad86a55ca5c3b81d1 (diff) | |
| download | qxmpp-db2f84e966682c1072cd579baa9511906a276ab0.tar.gz | |
start splitting tests
Diffstat (limited to 'tests/run.py')
| -rwxr-xr-x | tests/run.py | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/tests/run.py b/tests/run.py index 1a077716..9ccff741 100755 --- a/tests/run.py +++ b/tests/run.py @@ -36,11 +36,14 @@ else: os.environ['LD_LIBRARY_PATH'] = path # run tests -if platform.system() == 'Darwin': - prog = os.path.join(root, 'qxmpp-tests.app', 'Contents', 'MacOS', 'qxmpp-tests') -else: - prog = os.path.join(root, 'qxmpp-tests.app') -if report_path: - os.system('%s -xunitxml -o %s/%s.xml' % (prog, report_path, test)) -else: - os.system(prog) +for test in os.listdir(root): + test_path = os.path.join(root, test) + if os.path.isdir(test_path): + if platform.system() == 'Darwin': + prog = os.path.join(test_path, 'tst_' + test + '.app', 'Contents', 'MacOS', 'tst_' + test) + else: + prog = os.path.join(test_path, 'tst_' + test) + if report_path: + os.system('%s -xunitxml -o %s/%s.xml' % (prog, report_path, test)) + else: + os.system(prog) |
