blob: 368815737cc170d36a51a23ce677e5cb2574f1e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/system/bin/sh
# find and loop over the shader tests found
# recursively in the named directory
find ${2} -name *.shader_test -print0 | while read -d $'\0' file
do
RESULT=$( ${1} ${file} -auto )
PSTRING="PIGLIT: {'result': 'pass'"
SSTRING="PIGLIT: {'result': 'skip'"
FSTRING="PIGLIT: {'result': 'fail'"
case $RESULT in
*"$PSTRING"*) echo "${file}: pass";;
*"$SSTRING"*) echo "${file}: skip";;
*"$FSTRING"*) echo "${file}: fail";;
*) echo "${file}: fail";;
esac
done
|