glcpp/tests: update testname in help string
authorEmil Velikov <emil.velikov@collabora.com>
Tue, 28 Feb 2017 12:13:58 +0000 (12:13 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 28 Mar 2017 14:31:24 +0000 (15:31 +0100)
Rather than hardcoding glcpp/other use `basename "$0"` which expands
appropriatelly.

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-cr-lf.sh
src/compiler/glsl/glcpp/tests/glcpp-test.sh

index c0ed9e04bc6a9905572e782d2a731d482a169c61..6a77a6e6663bd5fd6ea7695f0b67ed9d5faa3ef6 100755 (executable)
@@ -51,7 +51,7 @@ run_test ()
 usage ()
 {
        cat <<EOF
-Usage: glcpp-cr-lf [options...]
+Usage: `basename "$0"` [options...]
 
 Run the entire glcpp-test suite several times, each time with each source
 file transformed to use a non-standard line-termination character. Each
index d98c408f739b0e33f841c8c49f9649fa085d2b0f..44c9451cf6074e023e3ba18c7cd5436f998d3e58 100755 (executable)
@@ -22,7 +22,7 @@ trap 'rm $test.valgrind-errors; exit 1' INT QUIT
 usage ()
 {
     cat <<EOF
-Usage: glcpp [options...]
+Usage: `basename "$0"` [options...]
 
 Run the test suite for mesa's GLSL pre-processor.