@@ -14,6 +14,7 @@ TEST_PROGS = test-libmongoc
14
14
15
15
TEST_CFLAGS = \
16
16
-DMONGOC_COMPILATION \
17
+ -DBINARY_DIR="\"$(srcdir ) /tests/binary\"" \
17
18
$(BSON_CFLAGS ) \
18
19
-I$(top_srcdir ) /src/mongoc \
19
20
-I$(top_builddir ) /src/mongoc
@@ -102,20 +103,19 @@ test_sharded_cluster_SOURCES = \
102
103
test_sharded_cluster_CFLAGS = $(TEST_CFLAGS )
103
104
test_sharded_cluster_LDADD = $(TEST_LIBS )
104
105
105
- test_certs : $( top_builddir ) / tests/trust_dir/done
106
+ test_certs : tests/trust_dir/done
106
107
107
108
tests/trust_dir/done : $(top_srcdir ) /tests/make_ca.pl $(top_srcdir ) /tests/trust_dir.cnf
108
- $< $(top_srcdir ) /tests/trust_dir $(top_srcdir ) /tests/trust_dir.cnf
109
- touch $(top_srcdir ) /tests/trust_dir/done
109
+ $< $(top_builddir ) /tests/trust_dir $(top_srcdir ) /tests/trust_dir.cnf
110
+ touch $(top_builddir ) /tests/trust_dir/done
110
111
111
- if WITH_LIBBSON
112
112
libbson_check :
113
+ if WITH_LIBBSON
113
114
@ $(MAKE) -C src/libbson check
114
- check : libbson_check test
115
- else
116
- check : test
117
115
endif
118
116
117
+ check : libbson_check test abicheck
118
+
119
119
TEST_ARGS = -f -p
120
120
121
121
if ENABLE_SSL
@@ -126,8 +126,12 @@ endif
126
126
@ for TEST_PROG in $(TEST_PROGS) ; do \
127
127
./$$TEST_PROG $(TEST_ARGS) -F test.log; \
128
128
done
129
+
129
130
if OS_LINUX
131
+ abicheck :
130
132
@ $(srcdir ) /tests/abicheck.sh " $( srcdir) /src/libmongoc.symbols"
133
+ else
134
+ abicheck :
131
135
endif
132
136
133
137
DISTCLEANFILES += test.log
@@ -146,7 +150,10 @@ EXTRA_DIST += \
146
150
tests/binary/reply1.dat \
147
151
tests/binary/reply2.dat \
148
152
tests/binary/update1.dat \
153
+ tests/certificates/ca.pem \
154
+ tests/certificates/client.pem \
149
155
tests/mock-server.c \
150
156
tests/mock-server.h \
151
157
tests/mongoc-tests.c \
152
- tests/mongoc-tests.h
158
+ tests/mongoc-tests.h \
159
+ tests/trust_dir.cnf
0 commit comments