meson: Add tests to suites

Meson test has a concepts of suites, which allow tests to be grouped
together. This allows for a subtest of tests to be run only (say only
the tests for nir). A test can be added to more than one suite, but for
the most part I've only added a test to a single suite, though I've
added a compiler group that includes nir, glsl, and glcpp tests.

To use this you'll need to invoke meson test directly, instead of ninja
test (which always runs all targets). it can be invoked as:
`meson test -C builddir --suite $suitename` (meson test has addition
options that are pretty useful).

Tested-By: Gert Wollny <gert.wollny@collabora.com>
Acked-by: Eric Engestrom <eric.engestrom@intel.com>
This commit is contained in:
Dylan Baker
2018-11-19 13:44:15 -08:00
parent b787dcf57b
commit a999798daa
24 changed files with 70 additions and 33 deletions

View File

@@ -70,6 +70,7 @@ if with_any_opengl and with_tests
glcpp, join_paths(meson.current_source_dir(), 'tests'),
'--@0@'.format(m),
],
suite : ['compiler', 'glcpp'],
)
endforeach
endif