summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsrc/egl/egl-entrypoint-check5
-rwxr-xr-xsrc/glx/tests/dispatch-index-check5
2 files changed, 10 insertions, 0 deletions
diff --git a/src/egl/egl-entrypoint-check b/src/egl/egl-entrypoint-check
index e20b374454c..36ee5c61530 100755
--- a/src/egl/egl-entrypoint-check
+++ b/src/egl/egl-entrypoint-check
@@ -1,6 +1,11 @@
#!/usr/bin/env bash
set -e
+if [ -z "$srcdir" ]
+then
+ srcdir=$(dirname "$0")
+fi
+
entrypoints=$(grep EGL_ENTRYPOINT "$srcdir"/main/eglentrypoint.h)
sorted=$(sort <<< "$entrypoints")
test "$entrypoints" = "$sorted"
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)