summaryrefslogtreecommitdiffstats
path: root/src/glsl/tests
diff options
context:
space:
mode:
authorConnor Abbott <cwabbott0@gmail.com>2014-05-27 21:23:04 -0400
committerKenneth Graunke <kenneth@whitecape.org>2014-05-28 15:06:45 -0700
commita1d8322fbb43e9a6a019c8653b01aff923d68717 (patch)
treeb2b18039c2a91f024fc39cf8e925c89f44e41ac4 /src/glsl/tests
parent6e24111b9c96788d9d2a64d7b1c7292cc99d2c38 (diff)
downloadexternal_mesa3d-a1d8322fbb43e9a6a019c8653b01aff923d68717.zip
external_mesa3d-a1d8322fbb43e9a6a019c8653b01aff923d68717.tar.gz
external_mesa3d-a1d8322fbb43e9a6a019c8653b01aff923d68717.tar.bz2
glsl/tests: call create_test_cases.py in optimization-test
This way, when someone modifies create_test_cases.py and forgets to commit their changes again, people will notice. v2: make sure we parse the right directories and check for existance the right way. v3 (Ken): Use $PYTHON2 instead of calling python directly. Signed-off-by: Connor Abbott <cwabbott0@gmail.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/glsl/tests')
-rwxr-xr-xsrc/glsl/tests/optimization-test8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/glsl/tests/optimization-test b/src/glsl/tests/optimization-test
index 8ca7776..26a51be 100755
--- a/src/glsl/tests/optimization-test
+++ b/src/glsl/tests/optimization-test
@@ -9,6 +9,14 @@ fi
total=0
pass=0
+echo "====== Generating tests ======"
+for dir in tests/*/; do
+ if [ -e "${dir}create_test_cases.py" ]; then
+ cd $dir; $PYTHON2 create_test_cases.py; cd ..
+ fi
+ echo "$dir"
+done
+
echo "====== Testing optimization passes ======"
for test in `find . -iname '*.opt_test'`; do
echo -n "Testing $test..."