commit 605048710c132f71d5f4bf53cf4e50b7233b94ac Author: Nathaniel McCallum npmccallum@redhat.com Date: Thu Jun 30 07:13:39 2011 -0700
[tests/abi] added abi check
tests/Makefile.am | 7 ++++--- tests/abi | 6 ++++++ 2 files changed, 10 insertions(+), 3 deletions(-) --- diff --git a/tests/Makefile.am b/tests/Makefile.am index fac612f..305eee9 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -16,6 +16,7 @@ if WITH_TEVENT AM_CFLAGS += -DHAVE_TEVENT=1 endif
-TESTS = timeout idle child signal read write -noinst_PROGRAMS = $(TESTS) -EXTRA_DIST = test.h \ No newline at end of file +check_PROGRAMS = timeout idle child signal read write +EXTRA_DIST = test.h +TESTS = abi $(check_PROGRAMS) +TESTS_ENVIRONMENT = env LIBVERTO=$(top_builddir)/src/.libs/libverto.so diff --git a/tests/abi b/tests/abi new file mode 100755 index 0000000..8e70d33 --- /dev/null +++ b/tests/abi @@ -0,0 +1,6 @@ +#!/bin/sh -e + +echo "Library Path: $LIBVERTO" >&2 + +HASH=`objdump -x $LIBVERTO | awk '/^[0-9a-fA-F]+ g/ { print $NF; }' | sort | md5sum | cut -d' ' -f1` +test $HASH == 6910468a2981605ab75fd3c21150e400
libverto-commits@lists.fedorahosted.org