aboutsummaryrefslogtreecommitdiffstats
path: root/src/util/meson.build
diff options
context:
space:
mode:
authorDylan Baker <[email protected]>2018-11-19 13:44:15 -0800
committerDylan Baker <[email protected]>2018-11-20 09:09:22 -0800
commita999798daad7181110922a7e756eb1d8dfe55c4e (patch)
treedd7d629beec14d57d406a8852717b32726d6888d /src/util/meson.build
parentb787dcf57b7298868ce9b6885a827d57a6127ba1 (diff)
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 <[email protected]> Acked-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/util/meson.build')
-rw-r--r--src/util/meson.build9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/util/meson.build b/src/util/meson.build
index 156621aff65..397c2228129 100644
--- a/src/util/meson.build
+++ b/src/util/meson.build
@@ -151,7 +151,8 @@ if with_tests
include_directories : inc_common,
link_with : libmesa_util,
c_args : [c_msvc_compat_args],
- )
+ ),
+ suite : ['util'],
)
test(
@@ -162,7 +163,8 @@ if with_tests
include_directories : inc_common,
c_args : [c_msvc_compat_args],
dependencies : [dep_m],
- )
+ ),
+ suite : ['util'],
)
test(
@@ -173,7 +175,8 @@ if with_tests
include_directories : inc_common,
link_with : libmesa_util,
c_args : [c_msvc_compat_args],
- )
+ ),
+ suite : ['util'],
)
subdir('tests/fast_idiv_by_const')