aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2013-01-02 00:04:20 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2013-01-02 00:04:20 +0200
commita1efb27a8e9f3e649c25c3ab16524df1a3af3e67 (patch)
treed37f4886d9206f6541f1c1619c75c1029621119b
parent8db898928b0bce1b15f0ef8ad8c1e4936a9d0af9 (diff)
downloadmeson-a1efb27a8e9f3e649c25c3ab16524df1a3af3e67.zip
meson-a1efb27a8e9f3e649c25c3ab16524df1a3af3e67.tar.gz
meson-a1efb27a8e9f3e649c25c3ab16524df1a3af3e67.tar.bz2
Run the generated build system as a part of tests.
-rwxr-xr-xrun_tests.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/run_tests.py b/run_tests.py
index 5fb9316..afaa7e6 100755
--- a/run_tests.py
+++ b/run_tests.py
@@ -19,6 +19,7 @@ import os, subprocess, shutil
test_build_dir = 'work area'
builder_command = './builder.py'
+compile_command = os.path.join(test_build_dir, 'compile.sh')
def run_test(testdir):
shutil.rmtree(test_build_dir)
@@ -27,7 +28,11 @@ def run_test(testdir):
p = subprocess.Popen([builder_command, testdir, test_build_dir])
p.wait()
if p.returncode != 0:
- raise RuntimeError('Test failed.')
+ raise RuntimeError('Generating the build system failed.')
+ pc = subprocess.Popen([compile_command])
+ pc.wait()
+ if pc.returncode != 0:
+ raise RuntimeError('Compiling source code failed.')
def run_tests():
tests = glob('test cases/*')