diff options
author | Emil Velikov <[email protected]> | 2017-02-22 15:53:21 +0000 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-03-10 14:12:45 +0000 |
commit | 7473fcd40b5d105eac9592dabc88f8757555cfc9 (patch) | |
tree | 5482d9621e47acaa2f1e161d8b8040d38c63f8f2 | |
parent | 32d153c428cbb70aa4639f5a95689a7bb5c9d152 (diff) |
glsl/tests: suffix .sh/.py files as applicable
This makes it easier/clearer as to:
- if the file should have the execute bit set (.py should not)
- do we need the shebang in the first place and if so what it should be
Signed-off-by: Emil Velikov <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
-rw-r--r-- | src/compiler/Makefile.glsl.am | 8 | ||||
-rwxr-xr-x | src/compiler/glsl/glcpp/tests/glcpp-test-cr-lf.sh (renamed from src/compiler/glsl/glcpp/tests/glcpp-test-cr-lf) | 4 | ||||
-rwxr-xr-x | src/compiler/glsl/glcpp/tests/glcpp-test.sh (renamed from src/compiler/glsl/glcpp/tests/glcpp-test) | 0 | ||||
-rwxr-xr-x | src/compiler/glsl/tests/compare_ir.py (renamed from src/compiler/glsl/tests/compare_ir) | 2 | ||||
-rwxr-xr-x | src/compiler/glsl/tests/optimization-test.sh (renamed from src/compiler/glsl/tests/optimization-test) | 4 | ||||
-rwxr-xr-x | src/compiler/glsl/tests/warnings-test.sh (renamed from src/compiler/glsl/tests/warnings-test) | 0 |
6 files changed, 9 insertions, 9 deletions
diff --git a/src/compiler/Makefile.glsl.am b/src/compiler/Makefile.glsl.am index 41edb3cf4d9..f7be5ebce9d 100644 --- a/src/compiler/Makefile.glsl.am +++ b/src/compiler/Makefile.glsl.am @@ -30,15 +30,15 @@ EXTRA_DIST += glsl/tests glsl/glcpp/tests glsl/README \ glsl/glcpp/glcpp-parse.y \ SConscript.glsl -TESTS += glsl/glcpp/tests/glcpp-test \ - glsl/glcpp/tests/glcpp-test-cr-lf \ +TESTS += glsl/glcpp/tests/glcpp-test.sh \ + glsl/glcpp/tests/glcpp-test-cr-lf.sh \ glsl/tests/blob-test \ glsl/tests/cache-test \ glsl/tests/general-ir-test \ - glsl/tests/optimization-test \ + glsl/tests/optimization-test.sh \ glsl/tests/sampler-types-test \ glsl/tests/uniform-initializer-test \ - glsl/tests/warnings-test + glsl/tests/warnings-test.sh TESTS_ENVIRONMENT= \ export PYTHON2=$(PYTHON2); \ diff --git a/src/compiler/glsl/glcpp/tests/glcpp-test-cr-lf b/src/compiler/glsl/glcpp/tests/glcpp-test-cr-lf.sh index c75370f48c3..c0ed9e04bc6 100755 --- a/src/compiler/glsl/glcpp/tests/glcpp-test-cr-lf +++ b/src/compiler/glsl/glcpp/tests/glcpp-test-cr-lf.sh @@ -7,10 +7,10 @@ if [ ! -z "$srcdir" ]; then testdir="$srcdir/glsl/glcpp/tests" - glcpp_test="$srcdir/glsl/glcpp/tests/glcpp-test" + glcpp_test="$srcdir/glsl/glcpp/tests/glcpp-test.sh" else testdir=. - glcpp_test=./glcpp-test + glcpp_test=./glcpp-test.sh fi total=0 diff --git a/src/compiler/glsl/glcpp/tests/glcpp-test b/src/compiler/glsl/glcpp/tests/glcpp-test.sh index 3945ee4f6ce..3945ee4f6ce 100755 --- a/src/compiler/glsl/glcpp/tests/glcpp-test +++ b/src/compiler/glsl/glcpp/tests/glcpp-test.sh diff --git a/src/compiler/glsl/tests/compare_ir b/src/compiler/glsl/tests/compare_ir.py index a40fc810cf3..53207dd2ccb 100755 --- a/src/compiler/glsl/tests/compare_ir +++ b/src/compiler/glsl/tests/compare_ir.py @@ -34,7 +34,7 @@ import tempfile from sexps import * if len(sys.argv) != 3: - print 'Usage: compare_ir <file1> <file2>' + print 'Usage: python2 ./compare_ir.py <file1> <file2>' exit(1) with open(sys.argv[1]) as f: diff --git a/src/compiler/glsl/tests/optimization-test b/src/compiler/glsl/tests/optimization-test.sh index 26a51be6980..9cc3cae3a35 100755 --- a/src/compiler/glsl/tests/optimization-test +++ b/src/compiler/glsl/tests/optimization-test.sh @@ -1,9 +1,9 @@ #!/usr/bin/env bash if [ ! -z "$srcdir" ]; then - compare_ir=`pwd`/tests/compare_ir + compare_ir=`pwd`/tests/compare_ir.py else - compare_ir=./compare_ir + compare_ir=./compare_ir.py fi total=0 diff --git a/src/compiler/glsl/tests/warnings-test b/src/compiler/glsl/tests/warnings-test.sh index 1bea4665394..1bea4665394 100755 --- a/src/compiler/glsl/tests/warnings-test +++ b/src/compiler/glsl/tests/warnings-test.sh |