glcpp/tests: Convert shell scripts to a python script
authorDylan Baker <dylan@pnwbakers.com>
Tue, 9 Jan 2018 23:26:39 +0000 (15:26 -0800)
committerDylan Baker <dylan@pnwbakers.com>
Wed, 18 Apr 2018 16:03:57 +0000 (09:03 -0700)
commitdb8cd8e36771eed98eb638fd0593c978c3da52a9
treefc6841d3b141ed01509650b556e8ee5049961eb0
parent8cb96c40318afb00aef326de30e27fd70639804d
glcpp/tests: Convert shell scripts to a python script

This ports glcpp-test.sh and glcpp-test-cr-lf.sh to a python script that
accepts arguments for each line ending type. This should allow for
better reporting to users.

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

Signed-off-by: Dylan Baker <dylan.c.baker@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/compiler/glsl/glcpp/tests/glcpp-test-cr-lf.sh
src/compiler/glsl/glcpp/tests/glcpp-test.sh
src/compiler/glsl/glcpp/tests/glcpp_test.py [new file with mode: 0755]