Mesa (staging/18.2): meson: Run the test with Python
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Aug 24 12:45:35 UTC 2018
Module: Mesa
Branch: staging/18.2
Commit: 7dbe4e9aab0af105c483c73d911a8e0e798bda72
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7dbe4e9aab0af105c483c73d911a8e0e798bda72
Author: Mathieu Bridon <bochecha at daitauha.fr>
Date: Fri Aug 17 21:32:18 2018 +0200
meson: Run the test with Python
This is a patch from me and a patch from Mathieu Bridon squashed
together.
Signed-off-by: Dylan Baker <dylan at pnwbakers.com>
Reviewed-by: Dylan Baker <dylan at pnwbakers.com>
Reviewed-by: Mathieu Bridon <bochecha at daitauha.fr>
(cherry picked from commit e15686567c9481de86dc5088b41e480085d4fe0c)
[Andres Gomez: applied cleanly but backported as suggested by Emil]
Signed-off-by: Andres Gomez <agomez at igalia.com>
---
src/compiler/glsl/glcpp/meson.build | 3 ++-
src/compiler/glsl/tests/meson.build | 11 ++++++++---
2 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/src/compiler/glsl/glcpp/meson.build b/src/compiler/glsl/glcpp/meson.build
index 09d44ddd68..287da35006 100644
--- a/src/compiler/glsl/glcpp/meson.build
+++ b/src/compiler/glsl/glcpp/meson.build
@@ -64,8 +64,9 @@ if with_tests
foreach m : modes
test(
'glcpp test (@0@)'.format(m),
- find_program('tests/glcpp_test.py'),
+ prog_python2,
args : [
+ join_paths(meson.current_source_dir(), 'tests/glcpp_test.py'),
glcpp, join_paths(meson.current_source_dir(), 'tests'),
'-- at 0@'.format(m),
],
diff --git a/src/compiler/glsl/tests/meson.build b/src/compiler/glsl/tests/meson.build
index fc7b863a27..821760e962 100644
--- a/src/compiler/glsl/tests/meson.build
+++ b/src/compiler/glsl/tests/meson.build
@@ -84,8 +84,10 @@ test(
)
test(
- 'glsl compiler warnings', find_program('warnings_test.py'),
+ 'glsl compiler warnings',
+ prog_python2,
args : [
+ join_paths(meson.current_source_dir(), 'warnings_test.py'),
'--glsl-compiler', glsl_compiler,
'--test-directory', join_paths(
meson.source_root(), 'src', 'compiler', 'glsl', 'tests', 'warnings'
@@ -94,6 +96,9 @@ test(
)
test(
'glsl optimization',
- find_program('optimization_test.py'),
- args : ['--test-runner', glsl_test],
+ prog_python2,
+ args : [
+ join_paths(meson.current_source_dir(), 'optimization_test.py'),
+ '--test-runner', glsl_test
+ ],
)
More information about the mesa-commit
mailing list