From 47a0fbec31c2e49a2b895f6f926bf755820cacab Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Sun, 21 Jun 2020 02:34:59 +0430 Subject: [PATCH] [meson] Mark longer tests with slow So one can skip them easily by `meson test -Cbuild --no-suite slow` --- src/meson.build | 2 +- test/fuzzing/meson.build | 4 ++-- test/subset/meson.build | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/meson.build b/src/meson.build index b68323458..a9757a4bc 100644 --- a/src/meson.build +++ b/src/meson.build @@ -680,7 +680,7 @@ if get_option('tests').enabled() test(name, find_program(name + '.py'), env: env, depends: name == 'check-symbols' ? defs_list : [], - suite: ['src'], + suite: ['src'] + (name == 'check-static-inits' ? ['slow'] : []), ) endforeach endif diff --git a/test/fuzzing/meson.build b/test/fuzzing/meson.build index 53bea7c2b..1ce5c9a0b 100644 --- a/test/fuzzing/meson.build +++ b/test/fuzzing/meson.build @@ -28,7 +28,7 @@ test('shape_fuzzer', find_program('run-shape-fuzzer-tests.py'), depends: [hb_shape_fuzzer_exe, libharfbuzz, libharfbuzz_subset], workdir: meson.current_build_dir() / '..' / '..', env: env, - suite: ['fuzzing'], + suite: ['fuzzing', 'slow'], ) test('subset_fuzzer', find_program('run-subset-fuzzer-tests.py'), @@ -40,7 +40,7 @@ test('subset_fuzzer', find_program('run-subset-fuzzer-tests.py'), timeout: 300, workdir: meson.current_build_dir() / '..' / '..', env: env, - suite: ['fuzzing'], + suite: ['fuzzing', 'slow'], ) test('draw_fuzzer', find_program('run-draw-fuzzer-tests.py'), diff --git a/test/subset/meson.build b/test/subset/meson.build index 0dc2c59e8..1b6c0a9e5 100644 --- a/test/subset/meson.build +++ b/test/subset/meson.build @@ -38,6 +38,6 @@ foreach t : tests # ideally better to break and let meson handles them in parallel timeout: 500, workdir: meson.current_build_dir() / '..' / '..', - suite: ['subset'], + suite: ['subset', 'slow'], ) endforeach