[Mesa-dev] [PATCH v2 07/12] meson: enable glcpp test

Dylan Baker dylan at pnwbakers.com
Thu Apr 5 21:51:35 UTC 2018


Signed-off-by: Dylan Baker <dylan.c.baker at intel.com>
---
 src/compiler/glsl/glcpp/meson.build | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/src/compiler/glsl/glcpp/meson.build b/src/compiler/glsl/glcpp/meson.build
index 03b43b9..e6a3dc8 100644
--- a/src/compiler/glsl/glcpp/meson.build
+++ b/src/compiler/glsl/glcpp/meson.build
@@ -55,4 +55,20 @@ glcpp = executable(
   build_by_default : false,
 )
 
-# TODO: figure out how to make all of these tests work.
+if with_tests
+  modes = ['unix', 'windows', 'oldmac', 'bizarro']
+  if dep_valgrind != [] and dep_valgrind.found()
+    modes += ['valgrind']
+  endif
+
+  foreach m : modes
+    test(
+      'glcpp test (@0@)'.format(m),
+      find_program('tests/glcpp_test.py'),
+      args : [
+        glcpp, join_paths(meson.current_source_dir(), 'tests'),
+        '-- at 0@'.format(m),
+      ],
+    )
+  endforeach
+endif
-- 
git-series 0.9.1


More information about the mesa-dev mailing list