summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
authorEmil Velikov <emil.velikov@collabora.com>2017-02-28 12:13:58 +0000
committerEmil Velikov <emil.l.velikov@gmail.com>2017-03-28 15:31:24 +0100
commitcf77cdce839a06097b5f995118261eb98285ffc7 (patch)
treee9fbe6fd0b61d1e640200637aaf3378ed67e6793 /src/compiler
parent4ea4fbf93a5a2229af3d48dc7fb23a43c90adb7f (diff)
glcpp/tests: update testname in help string
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>
Diffstat (limited to 'src/compiler')
-rwxr-xr-xsrc/compiler/glsl/glcpp/tests/glcpp-test-cr-lf.sh2
-rwxr-xr-xsrc/compiler/glsl/glcpp/tests/glcpp-test.sh2
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 c0ed9e04bc..6a77a6e666 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 d98c408f73..44c9451cf6 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.