Skip to content

Commit 9b22a0d

Browse files
author
Christian Hergert
committed
tests: run tests on distcheck.
1 parent 1410c42 commit 9b22a0d

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

tests/Makefile.am

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@ endif
1212
TEST_PROGS = test-libmongoc
1313

1414

15-
if OS_LINUX
16-
TEST_PROGS += tests/abicheck.sh
17-
endif
18-
19-
2015
TEST_CFLAGS = \
2116
-DMONGOC_COMPILATION \
2217
$(BSON_CFLAGS) \
@@ -113,6 +108,8 @@ tests/trust_dir/done: $(top_srcdir)/tests/make_ca.pl $(top_srcdir)/tests/trust_d
113108
$< $(top_srcdir)/tests/trust_dir $(top_srcdir)/tests/trust_dir.cnf
114109
touch $(top_srcdir)/tests/trust_dir/done
115110

111+
check: test
112+
116113
TEST_ARGS = -f -p
117114

118115
if ENABLE_SSL
@@ -123,6 +120,11 @@ endif
123120
@ for TEST_PROG in $(TEST_PROGS) ; do \
124121
./$$TEST_PROG $(TEST_ARGS) -F test.log; \
125122
done
123+
if OS_LINUX
124+
@ $(top_srcdir)/tests/abicheck.sh "$(top_srcdir)/src/libmongoc.symbols"
125+
endif
126+
127+
DISTCLEANFILES += test.log
126128

127129
.PHONY: test_certs
128130

tests/abicheck.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /bin/sh
22

3-
cpp -P ${cppargs} ${top_srcdir:-.}/src/libmongoc.symbols | sed -e '/^$/d' -e 's/ G_GNUC.*$//' -e 's/ PRIVATE//' -e 's/ DATA//' | sort > expected-abi
3+
cpp -P ${cppargs} ${1:-./src/libmongoc.symbols} | sed -e '/^$/d' -e 's/ G_GNUC.*$//' -e 's/ PRIVATE//' -e 's/ DATA//' | sort > expected-abi
44

55
nm -D -g --defined-only .libs/libmongoc-1.0.so | cut -d ' ' -f 3 | egrep -v '^(__bss_start|_edata|_end)' | sort > actual-abi
66
diff -u expected-abi actual-abi && rm -f expected-abi actual-abi

0 commit comments

Comments
 (0)