diff options
author | Michael Hirsch, Ph.D <scivision@users.noreply.github.com> | 2019-09-05 14:41:33 -0400 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-11-17 13:24:42 +0200 |
commit | 1baa1c92220d23a91337e8aa1e174c66f7fd0531 (patch) | |
tree | e46796919bce6bbc5408bbca0b23d5bf7d3d2fc0 /run_project_tests.py | |
parent | c6f93b6bf67500c963cdaa33b0500ea1a15232b0 (diff) | |
download | meson-1baa1c92220d23a91337e8aa1e174c66f7fd0531.zip meson-1baa1c92220d23a91337e8aa1e174c66f7fd0531.tar.gz meson-1baa1c92220d23a91337e8aa1e174c66f7fd0531.tar.bz2 |
use '-Werror=unused-parameter' for gcc/clang on project tests and -fimplicit-none on fortran
Fortran: check for undeclared variables by forcing implicit none everywhere
C/C++: check for unused parameters and return types
removed unused variables from test cases
ci: do missing return and unused arg check with Github Actions
Diffstat (limited to 'run_project_tests.py')
-rwxr-xr-x | run_project_tests.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/run_project_tests.py b/run_project_tests.py index ca0779c..64da5a6 100755 --- a/run_project_tests.py +++ b/run_project_tests.py @@ -651,14 +651,18 @@ def detect_tests_to_run(only: typing.List[str]) -> typing.List[typing.Tuple[str, gathered_tests = [(name, gather_tests(Path('test cases', subdir)), skip) for name, subdir, skip in all_tests] return gathered_tests -def run_tests(all_tests, log_name_base, failfast: bool, extra_args): +def run_tests(all_tests: typing.List[typing.Tuple[str, typing.List[Path], bool]], + log_name_base: str, failfast: bool, + extra_args: typing.List[str]) -> typing.Tuple[int, int, int]: global logfile txtname = log_name_base + '.txt' with open(txtname, 'w', encoding='utf-8', errors='ignore') as lf: logfile = lf return _run_tests(all_tests, log_name_base, failfast, extra_args) -def _run_tests(all_tests, log_name_base, failfast: bool, extra_args): +def _run_tests(all_tests: typing.List[typing.Tuple[str, typing.List[Path], bool]], + log_name_base: str, failfast: bool, + extra_args: typing.List[str]) -> typing.Tuple[int, int, int]: global stop, executor, futures, system_compiler xmlname = log_name_base + '.xml' junit_root = ET.Element('testsuites') @@ -707,6 +711,7 @@ def _run_tests(all_tests, log_name_base, failfast: bool, extra_args): if name.startswith('warning'): suite_args = ['--fatal-meson-warnings'] should_fail = name.split('warning-')[1] + result = executor.submit(run_test, skipped, t.as_posix(), extra_args + suite_args, system_compiler, backend, backend_flags, commands, should_fail) futures.append((testname, t, result)) |