diff options
author | Dylan Baker <[email protected]> | 2018-01-11 14:41:42 -0800 |
---|---|---|
committer | Dylan Baker <[email protected]> | 2018-04-18 09:03:57 -0700 |
commit | 5d16c86add1d3394b17825372d5b2482b25d7483 (patch) | |
tree | 0c46d205f47914d7c5e346d929d785d44c76dd34 | |
parent | db8cd8e36771eed98eb638fd0593c978c3da52a9 (diff) |
meson: enable glcpp test
Signed-off-by: Dylan Baker <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
-rw-r--r-- | src/compiler/glsl/glcpp/meson.build | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/compiler/glsl/glcpp/meson.build b/src/compiler/glsl/glcpp/meson.build index 03b43b996a8..e6a3dc86753 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'), + '--@0@'.format(m), + ], + ) + endforeach +endif |