Remove final flush logic
[awesomized/libmemcached] / tests / include.am
1 # vim:ft=automake
2 # Copyright (C) 2011 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 TESTS_LDADDS=
12 TESTS_LDADDS+= libmemcached/libmemcached.la
13 TESTS_LDADDS+= libmemcached/libmemcachedutil.la
14 TESTS_LDADDS+= libtest/libtest.la
15
16 DEBUG_COMMAND= $(LIBTOOL) --mode=execute gdb
17
18 PAHOLE_COMMAND= $(LIBTOOL) --mode=execute pahole
19
20 EXTRA_DIST+= tests/cpp_example.cc
21
22 noinst_HEADERS+= tests/exist.h
23 noinst_HEADERS+= tests/keys.hpp
24 noinst_HEADERS+= tests/hash_results.h
25 noinst_HEADERS+= tests/libmemcached_world.h
26 noinst_HEADERS+= tests/libmemcached_world_socket.h
27 noinst_HEADERS+= tests/runner.h
28
29 # Cycle should always run first
30 tests_cycle_CFLAGS= $(AM_CFLAGS) $(NO_CONVERSION) $(NO_STRICT_ALIASING)
31 tests_cycle_CXXFLAGS= $(AM_CXXFLAGS)
32 tests_cycle_CXXFLAGS+= ${PTHREAD_CFLAGS}
33 tests_cycle_SOURCES= tests/cycle.cc
34 tests_cycle_DEPENDENCIES= $(TESTS_LDADDS)
35 tests_cycle_LDADD= $(tests_cycle_DEPENDENCIES)
36 tests_cycle_LDADD+= ${PTHREAD_LIBS}
37 check_PROGRAMS+= tests/cycle
38 noinst_PROGRAMS+= tests/cycle
39
40 include tests/libmemcached-1.0/include.am
41
42 tests_failure_SOURCES=
43 tests_failure_SOURCES+= tests/failure.cc
44 tests_failure_SOURCES+= clients/execute.cc
45 tests_failure_SOURCES+= clients/generator.cc
46 tests_failure_SOURCES+= tests/libmemcached-1.0/callback_counter.cc
47 tests_failure_SOURCES+= tests/libmemcached-1.0/fetch_all_results.cc
48 tests_failure_SOURCES+= tests/libmemcached-1.0/generate.cc
49
50 tests_failure_CXXFLAGS = $(AM_CXXFLAGS)
51 tests_failure_DEPENDENCIES= $(TESTS_LDADDS)
52 tests_failure_LDADD= $(tests_failure_DEPENDENCIES)
53 check_PROGRAMS+= tests/failure
54 noinst_PROGRAMS+= tests/failure
55
56 tests_testhashkit_SOURCES = tests/hashkit_functions.cc
57 tests_testhashkit_DEPENDENCIES = libtest/libtest.la libhashkit/libhashkit.la $(TESTS_LDADDS)
58 tests_testhashkit_LDADD = $(tests_testhashkit_DEPENDENCIES)
59 check_PROGRAMS+= tests/testhashkit
60 noinst_PROGRAMS+= tests/testhashkit
61
62 tests_hash_plus_SOURCES= tests/hash_plus.cc
63 tests_hash_plus_CXXFLAGS= $(AM_CXXFLAGS) $(NO_EFF_CXX)
64 tests_hash_plus_DEPENDENCIES= $(tests_testhashkit_DEPENDENCIES)
65 tests_hash_plus_LDADD= $(tests_testhashkit_DEPENDENCIES)
66 check_PROGRAMS+= tests/hash_plus
67 noinst_PROGRAMS+= tests/hash_plus
68
69 include tests/cli.am
70
71 test: check
72
73 check-local: $(TEST_DOCS)
74 @echo "Tests completed"
75
76 test-mem: tests/libmemcached-1.0/testapp
77 @tests/libmemcached-1.0/testapp
78
79 test-sasl: tests/sasl
80 @tests/sasl
81
82 test-atom: tests/atomsmasher
83 @tests/atomsmasher
84
85 test-plus: tests/testplus
86 @tests/testplus
87
88 test-hash: tests/testhashkit
89 @tests/testhashkit
90
91 test-hashplus: tests/hash_plus
92 @tests/hash_plus
93
94 test-cycle: tests/cycle
95 @tests/cycle
96
97 test-memcapable: tests/memcapable
98 @tests/memcapable
99
100 pahole-mem: tests/testapp
101 @$(PAHOLE_COMMAND) tests/testapp
102
103 gdb-mem: tests/libmemcached-1.0/testapp
104 @$(DEBUG_COMMAND) tests/libmemcached-1.0/testapp
105
106 gdb-sasl: tests/sasl
107 @$(DEBUG_COMMAND) tests/sasl
108
109 gdb-atom: tests/atomsmasher
110 @$(DEBUG_COMMAND) tests/atomsmasher
111
112 gdb-plus: tests/testplus
113 $(DEBUG_COMMAND) tests/testplus
114
115 gdb-hash: tests/testhashkit
116 @$(DEBUG_COMMAND) tests/testhashkit
117
118 gdb-hashplus: tests/hash_plus
119 @$(DEBUG_COMMAND) tests/hash_plus
120
121 gdb-cycle: tests/cycle
122 @$(DEBUG_COMMAND) tests/cycle
123
124 gdb-failure: tests/failure
125 @$(DEBUG_COMMAND) tests/failure
126
127 valgrind-cycle: tests/cycle
128 $(VALGRIND_COMMAND) tests/cycle
129
130 valgrind-mem: tests/libmemcached-1.0/testapp
131 @$(VALGRIND_COMMAND) tests/libmemcached-1.0/testapp
132
133 valgrind-failure: tests/failure
134 @$(VALGRIND_COMMAND) tests/failure
135
136 valgrind-atom: tests/atomsmasher
137 $(VALGRIND_COMMAND) tests/atomsmasher
138
139 valgrind-plus: tests/testplus
140 @$(VALGRIND_COMMAND) tests/testplus
141
142 valgrind-sasl: tests/sasl
143 @$(VALGRIND_COMMAND) tests/sasl
144
145 valgrind-hash: tests/testhashkit
146 @$(VALGRIND_COMMAND) tests/testhashkit
147
148 valgrind-hashplus: tests/hash_plus
149 @$(VALGRIND_COMMAND) tests/hash_plus
150
151 helgrind-cycle: tests/cycle
152 @$(HELGRIND_COMMAND) tests/cycle
153
154 helgrind-mem: tests/libmemcached-1.0/testapp
155 @$(HELGRIND_COMMAND) tests/libmemcached-1.0/testapp
156
157 helgrind-atom: tests/atomsmasher
158 @$(HELGRIND_COMMAND) tests/atomsmasher
159
160 helgrind-plus: tests/testplus
161 @$(HELGRIND_COMMAND) tests/testplus
162
163 helgrind-hash: tests/testhashkit
164 @$(HELGRIND_COMMAND) tests/testhashkit
165
166 helgrind-hashplus: tests/hash_plus
167 @$(HELGRIND_COMMAND) tests/hash_plus