glsl/tests/warnings-test: print only the test basename
authorEmil Velikov <emil.velikov@collabora.com>
Sun, 26 Feb 2017 21:24:42 +0000 (21:24 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 28 Mar 2017 14:31:23 +0000 (15:31 +0100)
Spamming the log with the (in some cases extremely long) test location
is of limited use.

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/warnings-test.sh

index 14ab08c30de7ab6fb1da5745a0bc97c95a24b3de..d5dc3b5974fce67b9be529e2f6837d70470d16eb 100755 (executable)
@@ -30,7 +30,7 @@ echo "====== Testing compilation output ======"
 for test in $srcdir/$tests_relative_dir/*.vert; do
     test_output="$abs_builddir/$tests_relative_dir/`basename $test`"
     mkdir -p $abs_builddir/$tests_relative_dir/
-    echo -n "Testing $test..."
+    echo -n "Testing `basename $test`..."
     $compiler --just-log --version 150 "$test" > "$test_output.out" 2>&1
     total=$((total+1))
     if diff "$test.expected" "$test_output.out" >/dev/null 2>&1; then