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