aboutsummaryrefslogtreecommitdiff
path: root/run_tests.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2013-02-09 01:02:42 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2013-02-09 01:02:42 +0200
commit7a19918024335e88573f49c91591e5d428d3d37d (patch)
treef465758369649a6470684b64f041c9b54713ef6e /run_tests.py
parente0b6c68a4e8e8917596b07b30433d469052daafd (diff)
downloadmeson-7a19918024335e88573f49c91591e5d428d3d37d.zip
meson-7a19918024335e88573f49c91591e5d428d3d37d.tar.gz
meson-7a19918024335e88573f49c91591e5d428d3d37d.tar.bz2
Generate configure files in Ninja backend. Now it passes all unit tests.
Diffstat (limited to 'run_tests.py')
-rwxr-xr-xrun_tests.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/run_tests.py b/run_tests.py
index 0f39a6d..fcf56a6 100755
--- a/run_tests.py
+++ b/run_tests.py
@@ -20,9 +20,9 @@ import os, subprocess, shutil
test_build_dir = 'work area'
install_dir = os.path.join(os.path.split(os.path.abspath(__file__))[0], 'install dir')
builder_command = './builder.py'
-compile_commands = [os.path.join(test_build_dir, 'compile.sh')]
-test_commands = [os.path.join(test_build_dir, 'run_tests.sh')]
-install_commands = [os.path.join(test_build_dir, 'install.sh')]
+compile_commands = ['compile.sh']
+test_commands = ['run_tests.sh']
+install_commands = ['install.sh']
def run_test(testdir):
shutil.rmtree(test_build_dir)
@@ -34,15 +34,15 @@ def run_test(testdir):
p.wait()
if p.returncode != 0:
raise RuntimeError('Generating the build system failed.')
- pc = subprocess.Popen(compile_commands)
+ pc = subprocess.Popen(compile_commands, cwd=test_build_dir)
pc.wait()
if pc.returncode != 0:
raise RuntimeError('Compiling source code failed.')
- pt = subprocess.Popen(test_commands)
+ pt = subprocess.Popen(test_commands, cwd=test_build_dir)
pt.wait()
if pt.returncode != 0:
raise RuntimeError('Running unit tests failed.')
- pi = subprocess.Popen(install_commands)
+ pi = subprocess.Popen(install_commands, cwd=test_build_dir)
pi.wait()
if pi.returncode != 0:
raise RuntimeError('Running install failed.')