egl: make sure entrypoints list is always sorted

Starting with the next commit, badly sorting this list will break the
eglGetProcAddress().

Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
Eric Engestrom 2017-02-21 23:56:51 +00:00 committed by Eric Engestrom
parent 557f3181bf
commit d25dea0c68
2 changed files with 7 additions and 1 deletions

View File

@ -126,7 +126,8 @@ egl_HEADERS = \
$(top_srcdir)/include/EGL/eglmesaext.h \
$(top_srcdir)/include/EGL/eglplatform.h
TESTS = egl-symbols-check
TESTS = egl-symbols-check \
egl-entrypoint-check
EXTRA_DIST = \
$(TESTS) \

5
src/egl/egl-entrypoint-check Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
entrypoints=$(grep EGL_ENTRYPOINT "$srcdir"/main/eglentrypoint.h)
sorted=$(sort <<< "$entrypoints")
test "$entrypoints" = "$sorted"