From 36e2b0cd37df8d360c057222c5eb511751b67807 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sun, 6 Jan 2013 19:17:38 +0200 Subject: Run generated tests as part of overall testing. --- run_tests.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'run_tests.py') diff --git a/run_tests.py b/run_tests.py index afaa7e630..45d61d413 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/*') -- cgit v1.2.3