1
1
# Gearman server and library
2
# Copyright (C) 2008 Brian Aker
4
# This program is free software; you can redistribute it and/or modify
5
# it under the terms of the GNU General Public License as published by
6
# the Free Software Foundation; either version 2 of the License, or
7
# (at your option) any later version.
9
# This program is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
# GNU General Public License for more details.
14
# You should have received a copy of the GNU General Public License along
15
# with this program; if not, write to the Free Software Foundation, Inc.,
16
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
2
# Copyright (C) 2008 Brian Aker, Eric Day
5
# Use and distribution licensed under the BSD license. See
6
# the COPYING file in the parent directory for full text.
18
8
AM_CFLAGS= -I$(top_builddir)
21
noinst_PROGRAMS= client_test
22
#noinst_PROGRAMS= client_test worker_test
11
noinst_PROGRAMS= client_test worker_test
23
12
noinst_HEADERS= test.h
25
14
client_test_SOURCES= test.c client_test.c
28
17
worker_test_SOURCES= test.c worker_test.c
29
18
worker_test_LDFLAGS= $(top_builddir)/libgearman/libgearman.la
32
./client_test > output.res
35
./client_test > output.cmp
36
diff output.res output.cmp
20
record: client_test worker_test
21
./client_test > client_test.rec
22
./worker_test > worker_test.rec
24
test: client_test worker_test
25
./client_test > client_test.res
26
./worker_test > worker_test.res
27
diff client_test.rec client_test.res
28
diff worker_test.rec worker_test.res
30
valgrind: client_test worker_test
39
31
libtool --mode=execute valgrind --leak-check=yes --show-reachable=yes client_test
40
32
libtool --mode=execute valgrind --leak-check=yes --show-reachable=yes worker_test