diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2013-01-06 19:17:38 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2013-01-06 19:17:38 +0200 |
commit | 36e2b0cd37df8d360c057222c5eb511751b67807 (patch) | |
tree | 7c7d9f3b77b8e87e5c122c089f89e820c0f87311 /run_tests.py | |
parent | 54e47554c36870a43061c0860e5a69494c18cc02 (diff) | |
download | meson-36e2b0cd37df8d360c057222c5eb511751b67807.zip meson-36e2b0cd37df8d360c057222c5eb511751b67807.tar.gz meson-36e2b0cd37df8d360c057222c5eb511751b67807.tar.bz2 |
Run generated tests as part of overall testing.
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/*') |