check: add support for running test as standalone
Signed-off-by: Eric Engestrom <eric@engestrom.ch>
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user