summaryrefslogtreecommitdiff
path: root/android/scripts/piglit-run-shader.sh
diff options
context:
space:
mode:
authorYongqin Liu <yongqin.liu@linaro.org>2014-11-15 18:58:28 +0800
committerMilosz Wasilewski <milosz.wasilewski@linaro.org>2014-11-17 11:52:04 +0000
commit3d6d14b9f79a99813247725078e1dc03ec0c6369 (patch)
tree0bb1b93d474b55d8d94c3afa505a6e6784819d4d /android/scripts/piglit-run-shader.sh
parent33739d9e92fad362a94a35dd8c45eeee3bf5ca8b (diff)
piglit scripts: POSIX Compliant Update
This change is to make the test script to be POSIX compliant. Also fix the problem of using -print for busybox find command Change-Id: Id24410d3eae9d93f2e02ee630207fdd896b648ae Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
Diffstat (limited to 'android/scripts/piglit-run-shader.sh')
-rwxr-xr-xandroid/scripts/piglit-run-shader.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/android/scripts/piglit-run-shader.sh b/android/scripts/piglit-run-shader.sh
index 6f783f8..8353b6e 100755
--- a/android/scripts/piglit-run-shader.sh
+++ b/android/scripts/piglit-run-shader.sh
@@ -26,13 +26,15 @@
# find and loop over the shader tests found
# recursively in the /data/piglit/shader directory
-export PIGLIT_PLATFORM=android
+PIGLIT_PLATFORM=android
+export PIGLIT_PLATFORM
+
bin_path="/system/xbin/piglit/piglit-shader-test/shader_runner"
data_dir="/data/piglit/shader"
glsl_es1_data_dir="${data_dir}/glsl-es-1.00/"
glsl_es3_data_dir="${data_dir}/glsl-es-3.00/"
-/system/bin/busybox find ${data_dir} -name *.shader_test -print0 | while read -d $'\0' file
+/system/bin/busybox find ${data_dir} -name *.shader_test | while read file
do
RESULT=$(${bin_path} ${file} -auto )