diff options
Diffstat (limited to 'run_tests.py')
-rwxr-xr-x | run_tests.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/run_tests.py b/run_tests.py index afaa7e6..45d61d4 100755 --- a/run_tests.py +++ b/run_tests.py @@ -20,6 +20,7 @@ import os, subprocess, shutil test_build_dir = 'work area' builder_command = './builder.py' compile_command = os.path.join(test_build_dir, 'compile.sh') +test_command = os.path.join(test_build_dir, 'run_tests.sh') def run_test(testdir): shutil.rmtree(test_build_dir) @@ -33,6 +34,10 @@ def run_test(testdir): pc.wait() if pc.returncode != 0: raise RuntimeError('Compiling source code failed.') + pt = subprocess.Popen([test_command]) + pt.wait() + if pt.returncode != 0: + raise RuntimeError('Running unit tests failed.') def run_tests(): tests = glob('test cases/*') |