glcpp/tests/glcpp-test: print only the test basename
authorEmil Velikov <emil.velikov@collabora.com>
Tue, 28 Feb 2017 12:08:52 +0000 (12:08 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 28 Mar 2017 14:31:24 +0000 (15:31 +0100)
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/glcpp/tests/glcpp-test.sh

index 3546a3e016866c16eb20916abd9d3f989905c33f..474e8ef5307b8cb6bd7f6480d1eae70bfc288b7a 100755 (executable)
@@ -73,7 +73,7 @@ echo "====== Testing for correctness ======"
 for test in $testdir/*.c; do
     out=$outdir/${test##*/}.out
 
-    printf "Testing $test... > $out ($test.expected) "
+    printf "Testing `basename $test`... "
     $glcpp $(test_specific_args $test) < $test > $out 2>&1
     total=$((total+1))
     if cmp $test.expected $out >/dev/null 2>&1; then
@@ -92,7 +92,7 @@ echo ""
 if [ "$do_valgrind" = "yes" ]; then
     echo "====== Testing for valgrind cleanliness ======"
     for test in $testdir/*.c; do
-       printf "Testing $test with valgrind..."
+       printf "Testing `basename $test` with valgrind..."
        valgrind --error-exitcode=31 --log-file=$test.valgrind-errors $glcpp $(test_specific_args $test) < $test >/dev/null 2>&1
        if [ "$?" = "31" ]; then
            echo "ERRORS"