From a418f2f89510f367eaef97b97c14c0cc573ae43a Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Tue, 31 Mar 2015 19:43:30 +0100 Subject: intel: add symbols test Signed-off-by: Emil Velikov --- intel/Makefile.am | 6 ++-- intel/intel-symbol-check | 88 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 92 insertions(+), 2 deletions(-) create mode 100755 intel/intel-symbol-check diff --git a/intel/Makefile.am b/intel/Makefile.am index 22a45f0d..09bfbae5 100644 --- a/intel/Makefile.am +++ b/intel/Makefile.am @@ -60,7 +60,8 @@ BATCHES = \ tests/gen7-3d.batch TESTS = \ - $(BATCHES:.batch=.batch.sh) + $(BATCHES:.batch=.batch.sh) \ + intel-symbol-check EXTRA_DIST = \ $(BATCHES) \ @@ -68,7 +69,8 @@ EXTRA_DIST = \ $(BATCHES:.batch=.batch-ref.txt) \ $(BATCHES:.batch=.batch-ref.txt) \ tests/test-batch.sh \ - Android.mk + Android.mk \ + $(TESTS) test_decode_LDADD = libdrm_intel.la ../libdrm.la diff --git a/intel/intel-symbol-check b/intel/intel-symbol-check new file mode 100755 index 00000000..c555e6da --- /dev/null +++ b/intel/intel-symbol-check @@ -0,0 +1,88 @@ +#!/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_INTEL_H_FILES + +FUNCS=$(nm -D --format=bsd --defined-only ${1-.libs/libdrm_intel.so} | awk '{print $3}' | while read func; do +( grep -q "^$func$" || echo $func ) <