[Mesa-dev] [PATCH v2 21/23] glcpp/tests: update testname in help string
Emil Velikov
emil.l.velikov at gmail.com
Fri Mar 17 13:19:47 UTC 2017
From: Emil Velikov <emil.velikov at collabora.com>
Rather than hardcoding glcpp/other use `basename "$0"` which expands
appropriatelly.
Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
src/compiler/glsl/glcpp/tests/glcpp-test-cr-lf.sh | 2 +-
src/compiler/glsl/glcpp/tests/glcpp-test.sh | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/compiler/glsl/glcpp/tests/glcpp-test-cr-lf.sh b/src/compiler/glsl/glcpp/tests/glcpp-test-cr-lf.sh
index c0ed9e04bc6..6a77a6e6663 100755
--- a/src/compiler/glsl/glcpp/tests/glcpp-test-cr-lf.sh
+++ b/src/compiler/glsl/glcpp/tests/glcpp-test-cr-lf.sh
@@ -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
diff --git a/src/compiler/glsl/glcpp/tests/glcpp-test.sh b/src/compiler/glsl/glcpp/tests/glcpp-test.sh
index d98c408f739..44c9451cf60 100755
--- a/src/compiler/glsl/glcpp/tests/glcpp-test.sh
+++ b/src/compiler/glsl/glcpp/tests/glcpp-test.sh
@@ -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.
--
2.11.1
More information about the mesa-dev
mailing list