project tests: Add a new BuildStep called validate

pull/1575/head
Nirbheek Chauhan 8 years ago
parent 323fe43413
commit 388e5a63dc
  1. 3
      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, '*'))]

Loading…
Cancel
Save