testsuite: Don't create .test files for flaky or failing tests
authorSimon McVittie <smcv@debian.org>
Wed, 23 Nov 2022 21:26:50 +0000 (21:26 +0000)
committerSimon McVittie <smcv@debian.org>
Thu, 24 Nov 2022 13:46:33 +0000 (13:46 +0000)
These tests can be run manually, but are not suitable for use as an
acceptance test, so let's not make frameworks like Debian's autopkgtest
run these when they run ginsttest-runner in the most obvious way.

Signed-off-by: Simon McVittie <smcv@debian.org>
testsuite/gdk/meson.build
testsuite/gtk/meson.build

index 7aa0cf6668fac82ce60a74e1cf6b20e6e9e4dcbf..3236ce7d5dbaa9d22eaec9d48be2789a192891ad 100644 (file)
@@ -83,6 +83,12 @@ endforeach
 if get_option('install-tests')
   foreach t : tests
     test_name = t.get('name')
+    suites = t.get('suites', [])
+
+    if suites.contains('flaky') or suites.contains('failing')
+      continue
+    endif
+
     test_cdata = configuration_data()
     test_cdata.set('testexecdir', testexecdir)
     test_cdata.set('test', test_name)
index dccea45a48dd3f429b3465bc36a647e58e6f4ba3..3c107efd2a76bb4cca15e2c22e1f9fcd5bdef7b3 100644 (file)
@@ -299,6 +299,12 @@ test('potfiles', make_pot,
 if get_option('install-tests')
   foreach t : tests
     test_name = t.get('name')
+    suites = t.get('suites', [])
+
+    if suites.contains('flaky') or suites.contains('failing')
+      continue
+    endif
+
     conf = configuration_data()
     conf.set('testexecdir', testexecdir)
     conf.set('test', test_name)