From 47429af325b6c32904c0b7e68e6ce3ff0d57aec0 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Tue, 31 Mar 2015 19:47:24 +0100 Subject: nouveau: add symbols test Signed-off-by: Emil Velikov --- nouveau/Makefile.am | 3 ++- nouveau/nouveau-symbol-check | 52 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+), 1 deletion(-) create mode 100755 nouveau/nouveau-symbol-check (limited to 'nouveau') diff --git a/nouveau/Makefile.am b/nouveau/Makefile.am index 1ca235d2..2f613517 100644 --- a/nouveau/Makefile.am +++ b/nouveau/Makefile.am @@ -21,4 +21,5 @@ libdrm_nouveauinclude_HEADERS = $(LIBDRM_NOUVEAU_H_FILES) pkgconfigdir = @pkgconfigdir@ pkgconfig_DATA = libdrm_nouveau.pc -EXTRA_DIST = Android.mk +TESTS = nouveau-symbol-check +EXTRA_DIST = Android.mk $(TESTS) diff --git a/nouveau/nouveau-symbol-check b/nouveau/nouveau-symbol-check new file mode 100755 index 00000000..0fef5632 --- /dev/null +++ b/nouveau/nouveau-symbol-check @@ -0,0 +1,52 @@ +#!/bin/bash + +# The following symbols (past the first five) are taken from the public headers. +# A list of the latter should be available Makefile.sources/LIBDRM_NOUVEAU_H_FILES + +FUNCS=$(nm -D --format=bsd --defined-only ${1-.libs/libdrm_nouveau.so} | awk '{print $3}'| while read func; do +( grep -q "^$func$" || echo $func ) <