Merge in build trunk.
[awesomized/libmemcached] / tests / cli.am
1 # vim:ft=automake
2 # Copyright (C) 2012 Data Differential
3 # All rights reserved.
4 #
5 # Use and distribution licensed under the BSD license. See
6 # the COPYING file in the parent directory for full text.
7 #
8 # included from Top Level Makefile.am
9 # All paths should be given relative to the root
10
11
12 tests_memcapable_SOURCES= tests/memcapable.cc
13 tests_memcapable_CXXFLAGS= $(AM_CXXFLAGS) $(NO_EFF_CXX)
14 tests_memcapable_DEPENDENCIES= libtest/libtest.la $(TESTS_LDADDS) clients/memcapable
15 tests_memcapable_LDADD= libtest/libtest.la $(TESTS_LDADDS)
16 check_PROGRAMS+= tests/memcapable
17 noinst_PROGRAMS+= tests/memcapable
18
19 tests_memstat_SOURCES= tests/memstat.cc
20 tests_memstat_CXXFLAGS= $(AM_CXXFLAGS) $(NO_EFF_CXX)
21 tests_memstat_DEPENDENCIES= libtest/libtest.la $(TESTS_LDADDS) clients/memstat
22 tests_memstat_LDADD= libtest/libtest.la $(TESTS_LDADDS)
23 check_PROGRAMS+= tests/memstat
24 noinst_PROGRAMS+= tests/memstat
25
26 tests_memcp_SOURCES= tests/memcp.cc
27 tests_memcp_CXXFLAGS= $(AM_CXXFLAGS) $(NO_EFF_CXX)
28 tests_memcp_DEPENDENCIES= libtest/libtest.la $(TESTS_LDADDS) clients/memcp
29 tests_memcp_LDADD= libtest/libtest.la $(TESTS_LDADDS)
30 check_PROGRAMS+= tests/memcp
31 noinst_PROGRAMS+= tests/memcp
32
33 tests_memflush_SOURCES= tests/memflush.cc
34 tests_memflush_CXXFLAGS= $(AM_CXXFLAGS) $(NO_EFF_CXX)
35 tests_memflush_DEPENDENCIES= libtest/libtest.la $(TESTS_LDADDS) clients/memflush
36 tests_memflush_LDADD= libtest/libtest.la $(TESTS_LDADDS)
37 check_PROGRAMS+= tests/memflush
38 noinst_PROGRAMS+= tests/memflush
39
40 tests_memrm_SOURCES= tests/memrm.cc
41 tests_memrm_CXXFLAGS= $(AM_CXXFLAGS) $(NO_EFF_CXX)
42 tests_memrm_DEPENDENCIES= libtest/libtest.la $(TESTS_LDADDS) clients/memrm
43 tests_memrm_LDADD= libtest/libtest.la $(TESTS_LDADDS)
44 check_PROGRAMS+= tests/memrm
45 noinst_PROGRAMS+= tests/memrm
46
47 tests_memexist_SOURCES= tests/memexist.cc
48 tests_memexist_CXXFLAGS= $(AM_CXXFLAGS) $(NO_EFF_CXX)
49 tests_memexist_DEPENDENCIES= libtest/libtest.la $(TESTS_LDADDS) clients/memexist
50 tests_memexist_LDADD= libtest/libtest.la $(TESTS_LDADDS)
51 check_PROGRAMS+= tests/memexist
52 noinst_PROGRAMS+= tests/memexist
53
54 tests_memtouch_SOURCES= tests/memtouch.cc
55 tests_memtouch_CXXFLAGS= $(AM_CXXFLAGS) $(NO_EFF_CXX)
56 tests_memtouch_DEPENDENCIES= libtest/libtest.la $(TESTS_LDADDS) clients/memtouch
57 tests_memtouch_LDADD= libtest/libtest.la $(TESTS_LDADDS)
58 check_PROGRAMS+= tests/memtouch
59 noinst_PROGRAMS+= tests/memtouch
60
61 tests_memcat_SOURCES= tests/memcat.cc
62 tests_memcat_CXXFLAGS= $(AM_CXXFLAGS) $(NO_EFF_CXX)
63 tests_memcat_DEPENDENCIES= libtest/libtest.la $(TESTS_LDADDS) clients/memcat
64 tests_memcat_LDADD= libtest/libtest.la $(TESTS_LDADDS)
65 check_PROGRAMS+= tests/memcat
66 noinst_PROGRAMS+= tests/memcat
67
68 tests_memerror_SOURCES= tests/memerror.cc
69 tests_memerror_CXXFLAGS= $(AM_CXXFLAGS) $(NO_EFF_CXX)
70 tests_memerror_DEPENDENCIES= libtest/libtest.la $(TESTS_LDADDS) clients/memerror
71 tests_memerror_LDADD= libtest/libtest.la $(TESTS_LDADDS)
72 check_PROGRAMS+= tests/memerror
73 noinst_PROGRAMS+= tests/memerror
74
75 tests_memslap_SOURCES= tests/memslap.cc
76 tests_memslap_CXXFLAGS= $(AM_CXXFLAGS) $(NO_EFF_CXX)
77 tests_memslap_DEPENDENCIES= libtest/libtest.la $(TESTS_LDADDS) clients/memslap
78 tests_memslap_LDADD= libtest/libtest.la $(TESTS_LDADDS)
79 check_PROGRAMS+= tests/memslap
80 noinst_PROGRAMS+= tests/memslap
81
82 tests_memdump_SOURCES= tests/memdump.cc
83 tests_memdump_CXXFLAGS= $(AM_CXXFLAGS) $(NO_EFF_CXX)
84 tests_memdump_DEPENDENCIES= libtest/libtest.la $(TESTS_LDADDS) clients/memdump
85 tests_memdump_LDADD= libtest/libtest.la $(TESTS_LDADDS)
86 check_PROGRAMS+= tests/memdump
87 noinst_PROGRAMS+= tests/memdump
88
89 test-memerror: clients/memerror
90 tests/memerror
91
92 valgrind-memerror: clients/memerror
93 @$(VALGRIND_COMMAND) tests/memerror
94
95 test-memcp: clients/memcp
96 @echo "Testing memcp"
97 @@MEMC_BINARY@ -d -u root -P `pwd`/tests/Xumemc.pid -p 12555
98 @clients/memcp --servers="localhost:12555" clients/memcp clients/memcat clients/memstat
99 @cat tests/Xumemc.pid | xargs kill || echo "Failed to kill memcached server"
100 @rm tests/Xumemc.pid
101
102 valgrind-memcp: clients/memcat clients/memcp
103 @echo "Testing memcp"
104 @@MEMC_BINARY@ -d -u root -P `pwd`/tests/Xumemc.pid -p 12555
105 @$(VALGRIND_COMMAND) clients/memcp --servers="localhost:12555" clients/memcp clients/memcat clients/memstat
106 @cat tests/Xumemc.pid | xargs kill || echo "Failed to kill memcached server"
107 @rm tests/Xumemc.pid
108
109 test-memflush: clients/memflush
110 @echo "Testing memflush"
111 @$(MEMC_BINARY) -d -u root -P `pwd`/tests/Xumemc.pid -p 12555
112 @clients/memflush --servers="localhost:12555"
113 @cat tests/Xumemc.pid | xargs kill || echo "Failed to kill memcached server"
114 @rm tests/Xumemc.pid
115
116 valgrind-memflush: clients/memflush
117 @echo "Testing memflush"
118 @$(MEMC_BINARY) -d -u root -P `pwd`/tests/Xumemc.pid -p 12555
119 @$(VALGRIND_COMMAND) clients/memflush --servers="localhost:12555"
120 @cat tests/Xumemc.pid | xargs kill || echo "Failed to kill memcached server"
121 @rm tests/Xumemc.pid
122
123 test-memdump: clients/memdump clients/memcp
124 @echo "Testing memdump"
125 @$(MEMC_BINARY) -d -u root -P `pwd`/tests/Xumemc.pid -p 12555
126 @clients/memcp --servers="localhost:12555" clients/memcat
127 @clients/memdump --servers="localhost:12555" > /dev/null
128 @cat tests/Xumemc.pid | xargs kill || echo "Failed to kill memcached server"
129 @rm tests/Xumemc.pid
130
131 valgrind-memdump: clients/memcat clients/memcp
132 @echo "Testing memdump"
133 @$(MEMC_BINARY) -d -u root -P `pwd`/tests/Xumemc.pid -p 12555
134 @clients/memcp --servers="localhost:12555" clients/memcat
135 @$(VALGRIND_COMMAND) clients/memdump --servers="localhost:12555" > /dev/null
136 @cat tests/Xumemc.pid | xargs kill || echo "Failed to kill memcached server"
137 @rm tests/Xumemc.pid
138
139 test-memstat: clients/memstat
140 @echo "Testing memstat"
141 @$(MEMC_BINARY) -d -u root -P `pwd`/tests/Xumemc.pid -p 12555
142 @clients/memstat --servers="localhost:12555" > /dev/null
143 @cat tests/Xumemc.pid | xargs kill || echo "Failed to kill memcached server"
144 @rm tests/Xumemc.pid
145
146 valgrind-memstat: clients/memstat
147 @echo "Testing memstat"
148 @$(MEMC_BINARY) -d -u root -P `pwd`/tests/Xumemc.pid -p 12555
149 @$(VALGRIND_COMMAND) clients/memstat --servers="localhost:12555" > /dev/null
150 @cat tests/Xumemc.pid | xargs kill || echo "Failed to kill memcached server"
151 @rm tests/Xumemc.pid
152