Mesa (master): glsl/tests: call create_test_cases.py in optimization-test

Kenneth Graunke kwg at kemper.freedesktop.org
Wed May 28 22:16:48 UTC 2014


Module: Mesa
Branch: master
Commit: a1d8322fbb43e9a6a019c8653b01aff923d68717
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a1d8322fbb43e9a6a019c8653b01aff923d68717

Author: Connor Abbott <cwabbott0 at gmail.com>
Date:   Tue May 27 21:23:04 2014 -0400

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 at gmail.com>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Matt Turner <mattst88 at gmail.com>

---

 src/glsl/tests/optimization-test |    8 ++++++++
 1 file changed, 8 insertions(+)

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..."




More information about the mesa-commit mailing list