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