diff options
author | Emil Velikov <[email protected]> | 2017-02-27 18:21:36 +0000 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-03-28 15:31:23 +0100 |
commit | 9083c625f56439631b49e77a948c5a99889c0ea4 (patch) | |
tree | f58feb29fa454630850b330fa6aeed83f2972ec7 /src/compiler/glsl/tests/optimization-test.sh | |
parent | 44b642225820a8372461a14e11df60afc5cc9289 (diff) |
glsl/tests/optimization-test: correctly set compare_ir
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 <[email protected]>
Acked-by: Kenneth Graunke <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/compiler/glsl/tests/optimization-test.sh')
-rwxr-xr-x | src/compiler/glsl/tests/optimization-test.sh | 8 |
1 files 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 |