From 322c840bea5838782f927a2c1d1711b0d7d50d29 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Tue, 29 Jan 2013 17:37:02 -0800 Subject: [PATCH] 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. --- src/mapi/es2api/ABI-check | 292 ++++++++++++++++++++++++++++++++++++ src/mapi/es2api/Makefile.am | 2 + 2 files changed, 294 insertions(+) create mode 100755 src/mapi/es2api/ABI-check 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 ) <