File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 12
12
TEST_PROGS = test-libmongoc
13
13
14
14
15
- if OS_LINUX
16
- TEST_PROGS += tests/abicheck.sh
17
- endif
18
-
19
-
20
15
TEST_CFLAGS = \
21
16
-DMONGOC_COMPILATION \
22
17
$(BSON_CFLAGS ) \
@@ -113,6 +108,8 @@ tests/trust_dir/done: $(top_srcdir)/tests/make_ca.pl $(top_srcdir)/tests/trust_d
113
108
$< $(top_srcdir ) /tests/trust_dir $(top_srcdir ) /tests/trust_dir.cnf
114
109
touch $(top_srcdir ) /tests/trust_dir/done
115
110
111
+ check : test
112
+
116
113
TEST_ARGS = -f -p
117
114
118
115
if ENABLE_SSL
@@ -123,6 +120,11 @@ endif
123
120
@ for TEST_PROG in $(TEST_PROGS) ; do \
124
121
./$$TEST_PROG $(TEST_ARGS) -F test.log; \
125
122
done
123
+ if OS_LINUX
124
+ @ $(top_srcdir)/tests/abicheck.sh "$(top_srcdir)/src/libmongoc.symbols"
125
+ endif
126
+
127
+ DISTCLEANFILES += test.log
126
128
127
129
.PHONY : test_certs
128
130
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
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
4
4
5
5
nm -D -g --defined-only .libs/libmongoc-1.0.so | cut -d ' ' -f 3 | egrep -v ' ^(__bss_start|_edata|_end)' | sort > actual-abi
6
6
diff -u expected-abi actual-abi && rm -f expected-abi actual-abi
You can’t perform that action at this time.
0 commit comments