aboutsummaryrefslogtreecommitdiff
path: root/run_project_tests.py
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2017-04-06 09:32:39 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2017-04-09 23:10:12 +0530
commit388e5a63dcfa855f662c247a0e81a1b2cd0946dd (patch)
tree71da0f9b4bf0f41ddecda99768a27e0a8f512dcd /run_project_tests.py
parent323fe43413e52f6408f03c97f4a6904c4113108f (diff)
downloadmeson-388e5a63dcfa855f662c247a0e81a1b2cd0946dd.zip
meson-388e5a63dcfa855f662c247a0e81a1b2cd0946dd.tar.gz
meson-388e5a63dcfa855f662c247a0e81a1b2cd0946dd.tar.bz2
project tests: Add a new BuildStep called validate
Diffstat (limited to 'run_project_tests.py')
-rwxr-xr-xrun_project_tests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/run_project_tests.py b/run_project_tests.py
index 3a0dfa1..dc7af76 100755
--- a/run_project_tests.py
+++ b/run_project_tests.py
@@ -43,6 +43,7 @@ class BuildStep(Enum):
test = 3
install = 4
clean = 5
+ validate = 6
class TestResult:
@@ -393,7 +394,7 @@ def _run_test(testdir, test_build_dir, install_dir, extra_args, flags, compile_c
stde += e
if pi.returncode != 0:
return TestResult('Running clean failed.', BuildStep.clean, stdo, stde, mesonlog, gen_time, build_time, test_time)
- return TestResult(validate_install(testdir, install_dir), BuildStep.clean, stdo, stde, mesonlog, gen_time, build_time, test_time)
+ return TestResult(validate_install(testdir, install_dir), BuildStep.validate, stdo, stde, mesonlog, gen_time, build_time, test_time)
def gather_tests(testdir):
tests = [t.replace('\\', '/').split('/', 2)[2] for t in glob(os.path.join(testdir, '*'))]