From 5b5ffb795f68e5a762130d7d3fcae68fb188d8b5 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Sun, 26 Feb 2017 01:17:25 +0000 Subject: check: add support for running test as standalone Signed-off-by: Eric Engestrom --- src/glx/tests/dispatch-index-check | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/glx/tests') diff --git a/src/glx/tests/dispatch-index-check b/src/glx/tests/dispatch-index-check index 244634131f6..d1d0731347b 100755 --- a/src/glx/tests/dispatch-index-check +++ b/src/glx/tests/dispatch-index-check @@ -1,6 +1,11 @@ #!/usr/bin/env bash set -e +if [ -z "$srcdir" ] +then + srcdir=$(dirname "$0") +fi + # extract enum definition dispatch_list=$(sed '/__GLXdispatchIndex/,/__GLXdispatchIndex/!d' \ "$srcdir"/../g_glxglvnddispatchindices.h) -- cgit v1.2.3