[Mesa-dev] [PATCH v2 10/23] glsl/tests/optimization-test: correctly set compare_ir

Emil Velikov emil.l.velikov at gmail.com
Fri Mar 17 13:19:36 UTC 2017


From: Emil Velikov <emil.velikov at collabora.com>

Now that we have srcdir we can use it to correctly manage/point to the
script. Effectively fixing OOT invokation of `make check'.

Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
 src/compiler/glsl/tests/optimization-test.sh | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/src/compiler/glsl/tests/optimization-test.sh b/src/compiler/glsl/tests/optimization-test.sh
index a7d771170c5..5ae5684f7c4 100755
--- a/src/compiler/glsl/tests/optimization-test.sh
+++ b/src/compiler/glsl/tests/optimization-test.sh
@@ -1,11 +1,5 @@
 #!/bin/sh
 
-if [ ! -z "$srcdir" ]; then
-   compare_ir=`pwd`/tests/compare_ir.py
-else
-   compare_ir=./compare_ir.py
-fi
-
 if [ -z "$PYTHON2" ]; then
     PYTHON2=python2
 fi
@@ -29,6 +23,8 @@ if [ -z "$srcdir" -o -z "$abs_builddir" ]; then
     abs_builddir=`pwd`/../../
 fi
 
+compare_ir=$srcdir/glsl/tests/compare_ir.py
+
 total=0
 pass=0
 
-- 
2.11.1



More information about the mesa-dev mailing list