glsl/tests: Convert optimization-test.sh to pure python
authorDylan Baker <dylan@pnwbakers.com>
Sat, 9 Dec 2017 01:45:03 +0000 (17:45 -0800)
committerDylan Baker <dylan@pnwbakers.com>
Wed, 18 Apr 2018 16:03:57 +0000 (09:03 -0700)
commit97c28cb0823a043e660e97197525251830cd89ed
tree28efefc1f5f7a140c2693a5d2f16628b987510a6
parentad9c2f20181fdaa9f2b1e7222a861ebc876050b3
glsl/tests: Convert optimization-test.sh to pure python

This patch converts optimization-test.sh to python, in this process it
removes external shell dependencies including diff. It replaces the
python script that generates shell scripts with a python library that
generates test cases and runs them using subprocess.

v2: - use $PYTHON2 to be consistent with other tests in mesa

Signed-off-by: Dylan Baker <dylan.c.baker@intel.com>
src/compiler/glsl/tests/lower_jump_cases.py [new file with mode: 0644]
src/compiler/glsl/tests/lower_jumps/.gitignore [deleted file]
src/compiler/glsl/tests/lower_jumps/create_test_cases.py [deleted file]
src/compiler/glsl/tests/optimization-test.sh
src/compiler/glsl/tests/optimization_test.py [new file with mode: 0755]