mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 06:40:08 +01:00
glsl/tests/optimization-test: add fallback srcdir/abs_builddir defines
There is no robust way to detect either one, so simply hope for the best and warn just in case. 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:
parent
05bc5b35a7
commit
44b6422258
1 changed files with 13 additions and 0 deletions
|
|
@ -16,6 +16,19 @@ if [ $? -ne 0 ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
if [ -z "$srcdir" -o -z "$abs_builddir" ]; then
|
||||
echo ""
|
||||
echo "Warning: you're invoking the script manually and things may fail."
|
||||
echo "Attempting to determine/set srcdir and abs_builddir variables."
|
||||
echo ""
|
||||
|
||||
# Variable should point to the Makefile.glsl.am
|
||||
srcdir=./../../
|
||||
cd `dirname "$0"`
|
||||
# Variable should point to the folder two levels above glsl_test
|
||||
abs_builddir=`pwd`/../../
|
||||
fi
|
||||
|
||||
total=0
|
||||
pass=0
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue