forked from mongodb/libbson
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
166 lines (148 loc) · 4.06 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
noinst_PROGRAMS += test-libbson
TEST_PROGS = test-libbson
test_libbson_SOURCES = \
tests/TestSuite.c \
tests/TestSuite.h \
tests/test-libbson.c \
tests/test-atomic.c \
tests/test-bson.c \
tests/test-endian.c \
tests/test-clock.c \
tests/test-decimal128.c \
tests/test-error.c \
tests/test-iso8601.c \
tests/test-iter.c \
tests/test-json.c \
tests/test-oid.c \
tests/test-reader.c \
tests/test-string.c \
tests/test-type.c \
tests/test-utf8.c \
tests/test-value.c \
tests/test-version.c \
tests/test-writer.c \
tests/test-bcon-basic.c \
tests/test-bcon-extract.c \
tests/json-test.c \
tests/json-test.h
test_libbson_CPPFLAGS = \
-I$(top_srcdir)/src \
-I$(top_srcdir)/src/bson \
-I$(top_builddir)/src/bson \
$(PTHREAD_CFLAGS) \
$(COVERAGE_CFLAGS) \
-DBSON_COMPILATION \
-DBINARY_DIR="\"$(top_srcdir)/tests/binary\"" \
-DJSON_DIR="\"$(top_srcdir)/tests/json\""
test_libbson_LDFLAGS = $(COVERAGE_LDFLAGS)
test_libbson_LDADD = \
$(PTHREAD_LIBS) \
libbson-1.0.la \
libbson.la
check: test
if OS_DARWIN
DEBUGGER = lldb --
else
DEBUGGER = gdb --args
endif
if OS_DARWIN
TEST_ARGS = --no-fork
else
TEST_ARGS = --threads --no-fork
endif
test: $(TEST_PROGS)
@ for TEST_PROG in $(TEST_PROGS) ; do \
$(LIBTOOL) --mode=execute $$VALGRIND ./$$TEST_PROG $(TEST_ARGS) -F test-results.json; \
done
valgrind: $(TEST_PROGS)
$(LIBTOOL) --mode=execute valgrind --error-exitcode=1 --leak-check=full ./test-libbson $(TEST_ARGS) --no-fork
debug: $(TEST_PROGS)
$(LIBTOOL) --mode=execute $(DEBUGGER) ./test-libbson $(TEST_ARGS)
DISTCLEANFILES += test.log
CLEANFILES += \
tests/*.gcda \
tests/*.gcno
EXTRA_DIST += \
tests/bson-tests.h \
tests/binary/binary_deprecated.bson \
tests/binary/codewscope.bson \
tests/binary/dollarquery.bson \
tests/binary/dotkey.bson \
tests/binary/dotquery.bson \
tests/binary/empty_key.bson \
tests/binary/eurokey.bson \
tests/binary/overflow1.bson \
tests/binary/overflow2.bson \
tests/binary/overflow3.bson \
tests/binary/overflow4.bson \
tests/binary/readergrow.bson \
tests/binary/stackoverflow.bson \
tests/binary/stream.bson \
tests/binary/stream_corrupt.bson \
tests/binary/test10.bson \
tests/binary/test11.bson \
tests/binary/test12.bson \
tests/binary/test13.bson \
tests/binary/test14.bson \
tests/binary/test15.bson \
tests/binary/test16.bson \
tests/binary/test17.bson \
tests/binary/test18.bson \
tests/binary/test19.bson \
tests/binary/test1.bson \
tests/binary/test20.bson \
tests/binary/test21.bson \
tests/binary/test22.bson \
tests/binary/test23.bson \
tests/binary/test24.bson \
tests/binary/test25.bson \
tests/binary/test26.bson \
tests/binary/test27.bson \
tests/binary/test28.bson \
tests/binary/test29.bson \
tests/binary/test2.bson \
tests/binary/test30.bson \
tests/binary/test31.bson \
tests/binary/test32.bson \
tests/binary/test33.bson \
tests/binary/test34.bson \
tests/binary/test35.bson \
tests/binary/test36.bson \
tests/binary/test37.bson \
tests/binary/test38.bson \
tests/binary/test39.bson \
tests/binary/test3.bson \
tests/binary/test40.bson \
tests/binary/test41.bson \
tests/binary/test42.bson \
tests/binary/test43.bson \
tests/binary/test44.bson \
tests/binary/test45.bson \
tests/binary/test46.bson \
tests/binary/test47.bson \
tests/binary/test48.bson \
tests/binary/test49.bson \
tests/binary/test4.bson \
tests/binary/test50.bson \
tests/binary/test51.bson \
tests/binary/test52.bson \
tests/binary/test53.bson \
tests/binary/test54.bson \
tests/binary/test55.bson \
tests/binary/test56.bson \
tests/binary/test57.bson \
tests/binary/test58.bson \
tests/binary/test5.bson \
tests/binary/test6.bson \
tests/binary/test7.bson \
tests/binary/test8.bson \
tests/binary/test9.bson \
tests/binary/trailingnull.bson \
tests/json/test.json \
tests/json/type/decimal128/decimal128-1.json \
tests/json/type/decimal128/decimal128-2.json \
tests/json/type/decimal128/decimal128-3.json \
tests/json/type/decimal128/decimal128-4.json \
tests/json/type/decimal128/decimal128-5.json \
tests/json/type/decimal128/decimal128-6.json \
tests/json/type/decimal128/decimal128-7.json