diff options
author | Eric Engestrom <[email protected]> | 2017-02-26 01:17:25 +0000 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2017-02-26 13:39:45 +0000 |
commit | 5b5ffb795f68e5a762130d7d3fcae68fb188d8b5 (patch) | |
tree | a2bda4fdf09d61f56409bd4e44a241917876bffc | |
parent | cd35a119adbe1dec7d5d3e59b9e4ff0bd936e927 (diff) |
check: add support for running test as standalone
Signed-off-by: Eric Engestrom <[email protected]>
-rwxr-xr-x | src/egl/egl-entrypoint-check | 5 | ||||
-rwxr-xr-x | src/glx/tests/dispatch-index-check | 5 |
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) |