[gtksourceview] testsuite: mark some tests as not-installable



commit 24e723ed044300bab7189777dcdba793af4102bc
Author: Christian Hergert <chergert redhat com>
Date:   Tue Sep 6 17:17:10 2022 -0700

    testsuite: mark some tests as not-installable
    
    Not all of these are intended to be used as installed tests, but rather
    to be used by CI to ensure that merge requests don't regress features.
    
    Fixes #288

 testsuite/meson.build | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/testsuite/meson.build b/testsuite/meson.build
index b9733097..177b5034 100644
--- a/testsuite/meson.build
+++ b/testsuite/meson.build
@@ -30,7 +30,7 @@ testsuite_sources = [
   ['test-iter'],
   ['test-language'],
   ['test-languagemanager'],
-  ['test-language-specs'],
+  ['test-language-specs', false],
   ['test-mark'],
   ['test-printcompositor'],
   ['test-regex'],
@@ -40,16 +40,17 @@ testsuite_sources = [
   ['test-space-drawer'],
   ['test-stylescheme'],
   ['test-styleschememanager'],
-  ['test-syntax'],
+  ['test-syntax', false],
   ['test-utils'],
   ['test-view'],
-  ['test-vim-input'],
+  ['test-vim-input', false],
   ['test-vim-state'],
   ['test-vim-text-object'],
 ]
 
 foreach test: testsuite_sources
   test_name = test.get(0)
+  install_test = test.get(1, true) and get_option('install_tests')
   test_sources = gtksource_res + testsuite_res + [
     '@0@.c'.format(test_name),
   ]
@@ -68,13 +69,13 @@ foreach test: testsuite_sources
   test_exe = executable(test_name, test_sources,
           c_args: testsuite_c_args + deprecated_c_args,
     dependencies: [core_dep, completionwords_dep],
-         install: get_option('install_tests'),
+         install: install_test,
      install_dir: testexecdir
   )
 
   test(test_name, test_exe, suite: package_string, env: test_env)
 
-  if get_option('install_tests')
+  if install_test
     test_t = configuration_data()
     test_t.set('testexecdir', testexecdir)
     test_t.set('test', test_name)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]