diff options
author | Milosz Wasilewski <milosz.wasilewski@linaro.org> | 2014-05-30 14:25:39 +0100 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2014-06-04 05:54:11 +0000 |
commit | dd8925815ae7cc0640aaafc1516eb8e697855cc9 (patch) | |
tree | 33a71ec50f165599bac5e8f11464505668ac843b /android/scripts/piglit-run-test.sh | |
parent | 29205751920972b872d14ec1e39c48e11211757e (diff) |
Android: added piglit test definitions
Piglit needs to be available in the Android build that the tests run on.
Change-Id: I8aab1fda205a69885698d8ffd92166a386cde199
Signed-off-by: Milosz Wasilewski <milosz.wasilewski@linaro.org>
Diffstat (limited to 'android/scripts/piglit-run-test.sh')
-rwxr-xr-x | android/scripts/piglit-run-test.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/android/scripts/piglit-run-test.sh b/android/scripts/piglit-run-test.sh new file mode 100755 index 0000000..61b39ce --- /dev/null +++ b/android/scripts/piglit-run-test.sh @@ -0,0 +1,17 @@ +#!/system/bin/sh + +RESULT=$( ${1} -auto ) + +PSTRING="PIGLIT: {'result': 'pass'" +SSTRING="PIGLIT: {'result': 'skip'" +FSTRING="PIGLIT: {'result': 'fail'" + +case $RESULT in + *"$PSTRING"*) echo "${1}: pass";; + + *"$SSTRING"*) echo "${1}: skip";; + + *"$FSTRING"*) echo "${1}: fail";; + + *) echo "${1}: fail";; +esac |