[Mesa-dev] [PATCH v2 19/23] glcpp/tests/glcpp-test: print only the test basename

Emil Velikov emil.l.velikov at gmail.com
Fri Mar 17 13:19:45 UTC 2017


From: Emil Velikov <emil.velikov at collabora.com>

Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
 src/compiler/glsl/glcpp/tests/glcpp-test.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/compiler/glsl/glcpp/tests/glcpp-test.sh b/src/compiler/glsl/glcpp/tests/glcpp-test.sh
index 3546a3e0168..474e8ef5307 100755
--- a/src/compiler/glsl/glcpp/tests/glcpp-test.sh
+++ b/src/compiler/glsl/glcpp/tests/glcpp-test.sh
@@ -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"
-- 
2.11.1



More information about the mesa-dev mailing list