Add memcapable, a tool to test memcached capabilities
[awesomized/libmemcached] / clients / Makefile.am
1 LDADDS = libutilities.la $(top_builddir)/libmemcached/libmemcached.la
2
3 bin_PROGRAMS = memcat memdump memcp memstat memrm memflush memslap memerror memcapable
4
5 noinst_HEADERS = client_options.h \
6 utilities.h \
7 generator.h \
8 execute.h
9
10 noinst_LTLIBRARIES= libutilities.la libgenexec.la
11
12 libutilities_la_SOURCES= utilities.c
13 libgenexec_la_SOURCES= generator.c execute.c
14
15 memcat_SOURCES = memcat.c
16 memcat_LDADD = $(LDADDS)
17
18 memcp_SOURCES = memcp.c
19 memcp_LDADD = $(LDADDS)
20
21 memdump_SOURCES = memdump.c
22 memdump_LDADD = $(LDADDS)
23
24 memstat_SOURCES = memstat.c
25 memstat_LDADD = $(LDADDS)
26
27 memrm_SOURCES = memrm.c
28 memrm_LDADD = $(LDADDS)
29
30 memflush_SOURCES = memflush.c
31 memflush_LDADD = $(LDADDS)
32
33 memerror_SOURCES = memerror.c
34 memerror_LDADD = $(LDADDS)
35
36 memslap_SOURCES = memslap.c
37 memslap_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS)
38 memslap_LDADD = $(PTHREAD_LIBS) libgenexec.la $(LDADDS)
39
40 memcapable_SOURCES = memcapable.c
41 if BUILD_BYTEORDER
42 memcapable_LDADD=$(top_builddir)/libmemcached/libbyteorder.la
43 endif
44
45 test-start-server:
46 memflush --servers=localhost
47 memcp --servers=localhost /etc/services
48 memcat --servers=localhost /etc/services
49 memrm --servers=localhost /etc/services
50 memstat --servers=localhost
51 memslap --servers=localhost
52 memslap --servers=localhost --concurrency=10
53 memslap --servers=localhost --concurrency=10 --initial-load=1000
54 memslap --servers=localhost --concurrency=10 --initial-load=1000 --execute-number=10
55 memslap --servers=localhost --concurrency=10 --initial-load=1000 --execute-number=10 --test=get
56 memslap --servers=localhost --concurrency=10 --initial-load=1000 --execute-number=10 --test=set
57 memslap --servers=localhost --concurrency=10 --initial-load=1000 --execute-number=10 --test=set --non-blocking
58
59 valgrind:
60 libtool --mode=execute valgrind --leak-check=yes --show-reachable=yes memslap --servers=localhost
61 libtool --mode=execute valgrind --leak-check=yes --show-reachable=yes memslap --servers=localhost --concurrency=10
62 libtool --mode=execute valgrind --leak-check=yes --show-reachable=yes memslap --servers=localhost --concurrency=10 --initial-load=1000
63 libtool --mode=execute valgrind --leak-check=yes --show-reachable=yes memslap --servers=localhost --concurrency=10 --initial-load=1000 --execute-number=10
64 libtool --mode=execute valgrind --leak-check=yes --show-reachable=yes memslap --servers=localhost --concurrency=10 --initial-load=1000 --execute-number=10 --test=get
65 libtool --mode=execute valgrind --leak-check=yes --show-reachable=yes memslap --servers=localhost --concurrency=10 --initial-load=1000 --execute-number=10 --test=set
66 libtool --mode=execute valgrind --leak-check=yes --show-reachable=yes memslap --servers=localhost --concurrency=10 --initial-load=1000 --execute-number=10 --test=set --non-blocking