From: Matt Turner Date: Wed, 30 Jan 2013 01:37:02 +0000 (-0800) Subject: gles2: Add an ABI-check test X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=322c840bea5838782f927a2c1d1711b0d7d50d29;p=mesa.git gles2: Add an ABI-check test Checks that no functions are exported that are not part of the ABI. Note that currently we are exporting functions that are aliased to functions that are part of the ABI. They shouldn't be exported, but the XML descriptions don't adequately describe this case. --- diff --git a/src/mapi/es2api/ABI-check b/src/mapi/es2api/ABI-check new file mode 100755 index 00000000000..4a61050059b --- /dev/null +++ b/src/mapi/es2api/ABI-check @@ -0,0 +1,292 @@ +#!/bin/bash + +# Print defined gl.* functions not in GL ES 3.0 or in +# (FIXME, none of these should be part of the ABI) +# GL_EXT_discard_framebuffer +# GL_EXT_map_buffer_range +# GL_EXT_multi_draw_arrays +# GL_NV_draw_buffers +# GL_NV_read_buffer +# GL_OES_EGL_image +# GL_OES_get_program_binary +# GL_OES_mapbuffer +# GL_OES_texture_3D +# GL_OES_vertex_array_object + +FUNCS=$(nm -D --defined-only ${1-.libs/libGLESv2.so.2} | grep -o 'T gl.*' | cut -c 3- | while read func; do +( grep -q "^$func$" || echo $func ) <