From bf81aac465bbfe9545393c18328804776defa0e0 Mon Sep 17 00:00:00 2001 From: Daniel Mensinger Date: Sat, 23 Feb 2019 11:50:46 +0100 Subject: cmake: Added project tests --- run_project_tests.py | 1 + 1 file changed, 1 insertion(+) (limited to 'run_project_tests.py') diff --git a/run_project_tests.py b/run_project_tests.py index a3aa07d..c3187ff 100755 --- a/run_project_tests.py +++ b/run_project_tests.py @@ -553,6 +553,7 @@ def skip_csharp(backend): def detect_tests_to_run(): # Name, subdirectory, skip condition. all_tests = [ + ('cmake', 'cmake', not shutil.which('cmake')), ('common', 'common', False), ('warning-meson', 'warning', False), ('failing-meson', 'failing', False), -- cgit v1.1 From cb57847c30ce49d03e2b98f8466b11acf3cf21fd Mon Sep 17 00:00:00 2001 From: Daniel Mensinger Date: Fri, 19 Apr 2019 10:14:50 +0200 Subject: cmake: fixed installed_files.txt --- run_project_tests.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'run_project_tests.py') diff --git a/run_project_tests.py b/run_project_tests.py index c3187ff..f4b4a96 100755 --- a/run_project_tests.py +++ b/run_project_tests.py @@ -161,6 +161,11 @@ def platform_fix_name(fname, compiler, env): if not mesonlib.for_cygwin(env.is_cross_build(), env): return None + if fname.startswith('?!cygwin:'): + fname = fname[9:] + if mesonlib.for_cygwin(env.is_cross_build(), env): + return None + if fname.endswith('?so'): if mesonlib.for_windows(env.is_cross_build(), env) and canonical_compiler == 'msvc': fname = re.sub(r'lib/([^/]*)\?so$', r'bin/\1.dll', fname) -- cgit v1.1 From 493e505d58f02d7ea63a8a41978adb0ecb314091 Mon Sep 17 00:00:00 2001 From: Daniel Mensinger Date: Fri, 19 Apr 2019 10:18:47 +0200 Subject: cmake: better logging --- run_project_tests.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'run_project_tests.py') diff --git a/run_project_tests.py b/run_project_tests.py index f4b4a96..268e254 100755 --- a/run_project_tests.py +++ b/run_project_tests.py @@ -227,6 +227,10 @@ def validate_install(srcdir, installdir, compiler, env): for fname in found: if fname not in expected: ret_msg += 'Extra file {0} found.\n'.format(fname) + if ret_msg != '': + ret_msg += '\nInstall dir contents:\n' + for i in found: + ret_msg += ' - {}'.format(i) return ret_msg def log_text_file(logfile, testdir, stdo, stde): @@ -670,6 +674,12 @@ def _run_tests(all_tests, log_name_base, failfast, extra_args): # print the meson log if available since it's a superset # of stdout and often has very useful information. failing_logs.append(result.mlog) + elif under_ci: + # Always print the complete meson log when running in + # a CI. This helps debugging issues that only occur in + # a hard to reproduce environment + failing_logs.append(result.mlog) + failing_logs.append(result.stdo) else: failing_logs.append(result.stdo) failing_logs.append(result.stde) -- cgit v1.1 From 703054903b8e269e19b69f48fd58b472ecb13883 Mon Sep 17 00:00:00 2001 From: Daniel Mensinger Date: Fri, 19 Apr 2019 10:34:21 +0200 Subject: cmake: disable the CMake tests for msvc2015 --- run_project_tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'run_project_tests.py') diff --git a/run_project_tests.py b/run_project_tests.py index 268e254..f6d83b5 100755 --- a/run_project_tests.py +++ b/run_project_tests.py @@ -562,7 +562,7 @@ def skip_csharp(backend): def detect_tests_to_run(): # Name, subdirectory, skip condition. all_tests = [ - ('cmake', 'cmake', not shutil.which('cmake')), + ('cmake', 'cmake', not shutil.which('cmake') or (os.environ.get('compiler') == 'msvc2015' and under_ci)), ('common', 'common', False), ('warning-meson', 'warning', False), ('failing-meson', 'failing', False), -- cgit v1.1