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 <emil.velikov@collabora.com> Acked-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
This commit is contained in:

committed by
Emil Velikov

parent
44b6422258
commit
9083c625f5
@@ -1,11 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
if [ ! -z "$srcdir" ]; then
|
|
||||||
compare_ir=`pwd`/tests/compare_ir.py
|
|
||||||
else
|
|
||||||
compare_ir=./compare_ir.py
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "$PYTHON2" ]; then
|
if [ -z "$PYTHON2" ]; then
|
||||||
PYTHON2=python2
|
PYTHON2=python2
|
||||||
fi
|
fi
|
||||||
@@ -29,6 +23,8 @@ if [ -z "$srcdir" -o -z "$abs_builddir" ]; then
|
|||||||
abs_builddir=`pwd`/../../
|
abs_builddir=`pwd`/../../
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
compare_ir=$srcdir/glsl/tests/compare_ir.py
|
||||||
|
|
||||||
total=0
|
total=0
|
||||||
pass=0
|
pass=0
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user