summaryrefslogtreecommitdiff
path: root/src/compiler/glsl
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2018-11-19 13:44:15 -0800
committerDylan Baker <dylan@pnwbakers.com>2018-11-20 09:09:22 -0800
commita999798daad7181110922a7e756eb1d8dfe55c4e (patch)
treedd7d629beec14d57d406a8852717b32726d6888d /src/compiler/glsl
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 <gert.wollny@collabora.com> Acked-by: Eric Engestrom <eric.engestrom@intel.com>
Diffstat (limited to 'src/compiler/glsl')
-rw-r--r--src/compiler/glsl/glcpp/meson.build1
-rw-r--r--src/compiler/glsl/tests/meson.build18
2 files changed, 14 insertions, 5 deletions
diff --git a/src/compiler/glsl/glcpp/meson.build b/src/compiler/glsl/glcpp/meson.build
index a03d589b370..677baf1df10 100644
--- a/src/compiler/glsl/glcpp/meson.build
+++ b/src/compiler/glsl/glcpp/meson.build
@@ -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
diff --git a/src/compiler/glsl/tests/meson.build b/src/compiler/glsl/tests/meson.build
index 2a41e30a28d..02f3355c43c 100644
--- a/src/compiler/glsl/tests/meson.build
+++ b/src/compiler/glsl/tests/meson.build
@@ -26,7 +26,8 @@ test(
c_args : [c_vis_args, c_msvc_compat_args, no_override_init_args],
include_directories : [inc_common, inc_compiler],
link_with : [libglsl],
- )
+ ),
+ suite : ['compiler', 'glsl'],
)
test(
@@ -38,7 +39,8 @@ test(
include_directories : [inc_common, inc_glsl],
link_with : [libglsl],
dependencies : [dep_clock, dep_thread],
- )
+ ),
+ suite : ['compiler', 'glsl'],
)
@@ -54,7 +56,8 @@ test(
include_directories : [inc_common, inc_glsl],
link_with : [libglsl, libglsl_standalone, libglsl_util],
dependencies : [dep_clock, dep_thread, idep_gtest],
- )
+ ),
+ suite : ['compiler', 'glsl'],
)
test(
@@ -68,7 +71,8 @@ test(
include_directories : [inc_common, inc_glsl],
link_with : [libglsl, libglsl_util],
dependencies : [dep_thread, idep_gtest],
- )
+ ),
+ suite : ['compiler', 'glsl'],
)
test(
@@ -80,7 +84,8 @@ test(
include_directories : [inc_common, inc_glsl],
link_with : [libglsl, libglsl_util],
dependencies : [dep_thread, idep_gtest],
- )
+ ),
+ suite : ['compiler', 'glsl'],
)
test(
@@ -93,7 +98,9 @@ test(
meson.source_root(), 'src', 'compiler', 'glsl', 'tests', 'warnings'
),
],
+ suite : ['compiler', 'glsl'],
)
+
test(
'glsl optimization',
prog_python,
@@ -101,4 +108,5 @@ test(
join_paths(meson.current_source_dir(), 'optimization_test.py'),
'--test-runner', glsl_test
],
+ suite : ['compiler', 'glsl'],
)