check: add support for running test as standalone

Signed-off-by: Eric Engestrom <eric@engestrom.ch>
This commit is contained in:
Eric Engestrom
2017-02-26 01:17:25 +00:00
parent cd35a119ad
commit 5b5ffb795f
2 changed files with 10 additions and 0 deletions
+5
View File
@@ -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"
+5
View File
@@ -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)