summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/tests/optimization-test
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2017-02-22 15:53:21 +0000
committerEmil Velikov <[email protected]>2017-03-10 14:12:45 +0000
commit7473fcd40b5d105eac9592dabc88f8757555cfc9 (patch)
tree5482d9621e47acaa2f1e161d8b8040d38c63f8f2 /src/compiler/glsl/tests/optimization-test
parent32d153c428cbb70aa4639f5a95689a7bb5c9d152 (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]>
Diffstat (limited to 'src/compiler/glsl/tests/optimization-test')
-rwxr-xr-xsrc/compiler/glsl/tests/optimization-test42
1 files changed, 0 insertions, 42 deletions
diff --git a/src/compiler/glsl/tests/optimization-test b/src/compiler/glsl/tests/optimization-test
deleted file mode 100755
index 26a51be6980..00000000000
--- a/src/compiler/glsl/tests/optimization-test
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/usr/bin/env bash
-
-if [ ! -z "$srcdir" ]; then
- compare_ir=`pwd`/tests/compare_ir
-else
- compare_ir=./compare_ir
-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..."
- (cd `dirname "$test"`; ./`basename "$test"`) > "$test.out" 2>&1
- total=$((total+1))
- if $PYTHON2 $PYTHON_FLAGS $compare_ir "$test.expected" "$test.out" >/dev/null 2>&1; then
- echo "PASS"
- pass=$((pass+1))
- else
- echo "FAIL"
- $PYTHON2 $PYTHON_FLAGS $compare_ir "$test.expected" "$test.out"
- fi
-done
-
-echo ""
-echo "$pass/$total tests returned correct results"
-echo ""
-
-if [[ $pass == $total ]]; then
- exit 0
-else
- exit 1
-fi