[Mesa-dev] [PATCH v2 16/23] glsl/tests/optimization-test: print only the test basedir/name

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


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

The relative/absolute path brings little to no benefit in being printed
as testname. Trim it out.

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

diff --git a/src/compiler/glsl/tests/optimization-test.sh b/src/compiler/glsl/tests/optimization-test.sh
index 5069235868a..f280dd39495 100755
--- a/src/compiler/glsl/tests/optimization-test.sh
+++ b/src/compiler/glsl/tests/optimization-test.sh
@@ -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
-- 
2.11.1



More information about the mesa-dev mailing list