meson: Split tests up into test suites

This allows things like `meson test --no-suite=slow` to run subsets
of the complete set of tests.

Signed-off-by: Simon McVittie <smcv@debian.org>
This commit is contained in:
Simon McVittie 2022-07-14 18:11:38 +01:00
parent da5450e729
commit 947f40f511
2 changed files with 3 additions and 0 deletions

View file

@ -307,6 +307,7 @@ if shell.found()
foreach test_script: test_scripts
test(test_script, shell,
args: [test_script],
suite: ['fast', 'lint'],
workdir: meson.current_source_dir())
endforeach
@ -316,6 +317,7 @@ if shell.found()
test('check-plt.sh', shell,
args: ['check-plt.sh', libcairo ],
env: env,
suite: ['fast', 'plt'],
workdir: meson.current_source_dir())
endif

View file

@ -648,5 +648,6 @@ env.set('srcdir', meson.current_source_dir())
test('cairo', exe,
timeout: 60 * 60,
env: env,
suite: ['cairo-test-suite', 'slow'],
workdir: meson.current_build_dir(),
depends: test_depends)