~brianaker/gearmand/osx9-fixes

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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
# vim:ft=automake
#
# Gearman server and library
# Copyright (C) 2011-2012 Data Differential, http://datadifferential.com/
# Copyright (C) 2008 Brian Aker, Eric Day
# All rights reserved.
#
# Use and distribution licensed under the BSD license.  See
# the COPYING file in the parent directory for full text.

noinst_HEADERS+= tests/basic.h
noinst_HEADERS+= tests/burnin.h
noinst_HEADERS+= tests/context.h
noinst_HEADERS+= tests/do.h
noinst_HEADERS+= tests/do_background.h
noinst_HEADERS+= tests/execute.h
noinst_HEADERS+= tests/gearman_client_do_job_handle.h
noinst_HEADERS+= tests/gearman_execute_partition.h
noinst_HEADERS+= tests/limits.h
noinst_HEADERS+= tests/protocol.h
noinst_HEADERS+= tests/regression.h
noinst_HEADERS+= tests/runner.h
noinst_HEADERS+= tests/server_options.h
noinst_HEADERS+= tests/start_worker.h
noinst_HEADERS+= tests/task.h
noinst_HEADERS+= tests/unique.h

CLIENT_LDADD=
CLIENT_LDADD+= libgearman/libgearman.la
CLIENT_LDADD+= libtest/libtest.la
CLIENT_LDADD+= tests/libstartworker.la

t_cycle_SOURCES=
t_cycle_LDADD=
EXTRA_t_cycle_DEPENDENCIES=

EXTRA_t_cycle_DEPENDENCIES+= gearmand/gearmand
t_cycle_SOURCES+= tests/cycle.cc
t_cycle_LDADD+= ${CLIENT_LDADD}
check_PROGRAMS+=t/cycle
noinst_PROGRAMS+=t/cycle

t_blobslap_client_SOURCES=
t_blobslap_client_LDADD=

t_blobslap_client_SOURCES+= tests/blobslap_client.cc
t_blobslap_client_LDADD+= ${CLIENT_LDADD}
noinst_PROGRAMS+= t/blobslap_client

# Vector tests
t_vector_SOURCES=
t_vector_LDADD=

t_vector_SOURCES+= tests/vector.cc
t_vector_LDADD+= libtest/libtest.la
t_vector_LDADD+= libgearman/libgearman-vector.la
check_PROGRAMS+= t/vector
noinst_PROGRAMS+= t/vector

test-vector: t/vector
	@t/vector

valgrind-vector: t/vector
	@$(VALGRIND_COMMAND) t/vector

# Vector tests
t_result_SOURCES=
t_result_LDADD=

t_result_SOURCES+= tests/result.cc
t_result_LDADD+= libtest/libtest.la
t_result_LDADD+= libgearman/libgearman-result.la
check_PROGRAMS+= t/result
noinst_PROGRAMS+= t/result

test-result: t/result
	@t/result

valgrind-result: t/result
	@$(VALGRIND_COMMAND) t/result


EXTRA_t_cli_DEPENDENCIES=
t_cli_SOURCES=
t_cli_LDADD=

t_cli_SOURCES+= tests/cli.cc
EXTRA_t_cli_DEPENDENCIES+= bin/gearman
EXTRA_t_cli_DEPENDENCIES+= bin/gearadmin
EXTRA_t_cli_DEPENDENCIES+= gearmand/gearmand
t_cli_LDADD+= ${CLIENT_LDADD}
check_PROGRAMS+= t/cli
noinst_PROGRAMS+= t/cli

EXTRA_t_gearmand_DEPENDENCIES=
t_gearmand_LDADD=
t_gearmand_SOURCES=

t_gearmand_SOURCES+= tests/gearmand.cc
t_gearmand_LDADD+= ${CLIENT_LDADD}
EXTRA_t_gearmand_DEPENDENCIES+= gearmand/gearmand
check_PROGRAMS+= t/gearmand
noinst_PROGRAMS+= t/gearmand

include tests/libgearman-1.0/include.am
include tests/stress.am
include tests/hostile.am
include tests/workers/include.am
include tests/protocol.mk

t_round_robin_SOURCES=
t_round_robin_LDADD=

t_round_robin_SOURCES+= tests/round_robin.cc
t_round_robin_LDADD+= ${CLIENT_LDADD}
t_round_robin_LDADD+= libgearman/libgearmancore.la
check_PROGRAMS+= t/round_robin
noinst_PROGRAMS+= t/round_robin

test-round-robin: t/round_robin gearmand/gearmand
	@t/round_robin

gdb-round-robin: t/round_robin gearmand/gearmand
	@$(GDB_COMMAND) t/round_robin

valgrind-round-robin: t/round_robin gearmand/gearmand
	@$(VALGRIND_COMMAND) t/round_robin

helgrind-round-robin: tests/round_robin gearmand/gearmand
	@$(HELGRIND_COMMAND) t/round_robin

# Test linking with C++ application
t_cpp_SOURCES=
t_cpp_LDADD=

t_cpp_SOURCES+= tests/cpp_test.cc
t_cpp_LDADD+= ${CLIENT_LDADD}
check_PROGRAMS+=t/cpp
noinst_PROGRAMS+=t/cpp

valgrind-cpp: t/cpp
	@$(VALGRIND_COMMAND) t/cpp

# Test linking with C application
t_c_SOURCES=
t_c_LDADD=

t_c_SOURCES+= tests/c_test.c
t_c_LDADD+= ${CLIENT_LDADD}
check_PROGRAMS+=t/c
noinst_PROGRAMS+=t/c

valgrind-c: t/c
	@$(VALGRIND_COMMAND) t/c

test-cycle: t/cycle gearmand/gearmand
	@t/cycle

test-cli: t/cli gearmand/gearmand
	@t/cli

test-gearmand: t/gearmand gearmand/gearmand
	@t/gearmand

tests-blobslap_client: t/blobslap_client gearmand/gearmand
	@t/blobslap_client

check-local:

gdb-cli: t/cli gearmand/gearmand
	@$(GDB_COMMAND) t/cli

gdb-blobslap_client: t/blobslap_client gearmand/gearmand
	@$(GDB_COMMAND) t/blobslap_client

gdb-cycle: t/cycle gearmand/gearmand
	@$(GDB_COMMAND) t/cycle

gdb-gearmand: t/gearmand gearmand/gearmand
	@$(GDB_COMMAND) t/gearmand

valgrind-cli: t/cli gearmand/gearmand
	@$(VALGRIND_COMMAND) t/cli

valgrind-burnin: t/burnin_test gearmand/gearmand
	@$(VALGRIND_COMMAND) t/burnin_test

valgrind-cycle: t/cycle gearmand/gearmand
	@$(VALGRIND_COMMAND) t/cycle

valgrind-gearmand: t/gearmand gearmand/gearmand
	@$(VALGRIND_COMMAND) t/gearmand

helgrind-client: t/client gearmand/gearmand
	@$(HELGRIND_COMMAND) t/client

helgrind-burnin: t/burnin gearmand/gearmand
	@$(HELGRIND_COMMAND) t/burnin

helgrind-cycle: t/cycle gearmand/gearmand
	@$(HELGRIND_COMMAND) t/cycle

drd-cycle: t/cycle gearmand/gearmand
	@$(DRD_COMMAND) t/cycle

include tests/ephemeral.am
include tests/libdrizzle.am
include tests/libmemcached.am
include tests/postgres.am
include tests/mysql.am
include tests/sqlite.am
include tests/tokyocabinet.am
include tests/redis.am
include tests/httpd.am
include tests/perl/include.am

bogus: