summaryrefslogtreecommitdiff
path: root/tests.d
diff options
context:
space:
mode:
authorMartin Peres <martin.peres@linux.intel.com>2016-06-16 09:08:11 +0300
committerMartin Peres <martin.peres@linux.intel.com>2016-06-16 09:09:26 +0300
commitc36ecb4d83d30a63d19b1c86d634dd7e3307e8c4 (patch)
treea71c82915d77a92fa74cd3e83a74a5a546aa8fcf /tests.d
parente2a9d1a756fac23c572d7a46c0610992a400e7c3 (diff)
test/GLB27: do not expose GLB27 if it is not installed
Diffstat (limited to 'tests.d')
-rw-r--r--tests.d/opengl/glbenchmark27.test4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests.d/opengl/glbenchmark27.test b/tests.d/opengl/glbenchmark27.test
index abf0e04..af69ecc 100644
--- a/tests.d/opengl/glbenchmark27.test
+++ b/tests.d/opengl/glbenchmark27.test
@@ -1,7 +1,9 @@
GLB27=$(realpath ${GLBENCHMARK27_PATH:-${GLBENCHMARK27_FOLDER}/build_x86_64/binaries/GLBenchmark} 2> /dev/null)
GLB27_DATA=$(realpath ${GLBENCHMARK27_DATA:-${GLBENCHMARK27_FOLDER}/data} 2> /dev/null)
-test -e ${GLB27} || return 1
+if [ -z "${GLB27}" ] || [ ! -e "${GLB27}" ]; then
+ return 1
+fi
hash unbuffer 2>/dev/null || return 1
# Output: