glsl/tests/optimization-test: print only the test basedir/name
authorEmil Velikov <emil.velikov@collabora.com>
Mon, 27 Feb 2017 18:56:38 +0000 (18:56 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 28 Mar 2017 14:31:24 +0000 (15:31 +0100)
The relative/absolute path brings little to no benefit in being printed
as testname. Trim it out.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Acked-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
src/compiler/glsl/tests/optimization-test.sh

index 5069235868af946d6562219b5b3f55a4ee2f7ed1..f280dd394959b3994932cd5c065d45807544d6a5 100755 (executable)
@@ -60,7 +60,7 @@ fi
 
 echo "====== Testing optimization passes ======"
 for test in `find . -iname '*.opt_test'`; do
-    echo -n "Testing $test..."
+    echo -n "Testing `echo $test| sed 's|.*/glsl/tests/||g'`..."
     ./$test > "$test.out" 2>&1
     total=$((total+1))
     if $PYTHON2 $PYTHON_FLAGS $compare_ir "$test.expected" "$test.out" >/dev/null 2>&1; then