Merge lp:~tangent-org/libmemcached/1.0-build/ Build: jenkins-Libmemcached-164
[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 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_DEPENDENCIES= $(TESTS_LDADDS)
33 tests_cycle_LDADD= $(tests_cycle_DEPENDENCIES)
34 tests_cycle_LDADD+= ${PTHREAD_LIBS}
35 check_PROGRAMS+= tests/cycle
36 noinst_PROGRAMS+= tests/cycle
37
38 include tests/libmemcached-1.0/include.am
39
40 include tests/parser.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 tests_failure_SOURCES+= tests/libmemcached-1.0/print.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 test-failure: tests/failure
58 @tests/failure
59
60 gdb-failure: tests/failure
61 @$(GDB_COMMAND) tests/failure
62
63
64 tests_testhashkit_SOURCES= tests/hashkit_functions.cc
65 tests_testhashkit_DEPENDENCIES= libtest/libtest.la libhashkit/libhashkit.la $(TESTS_LDADDS)
66 tests_testhashkit_LDADD= $(tests_testhashkit_DEPENDENCIES)
67 check_PROGRAMS+= tests/testhashkit
68 noinst_PROGRAMS+= tests/testhashkit
69
70 test-hash: tests/testhashkit
71 @tests/testhashkit
72
73
74 tests_hash_plus_SOURCES= tests/hash_plus.cc
75 tests_hash_plus_CXXFLAGS= $(AM_CXXFLAGS) $(NO_EFF_CXX)
76 tests_hash_plus_DEPENDENCIES= $(tests_testhashkit_DEPENDENCIES)
77 tests_hash_plus_LDADD= $(tests_testhashkit_DEPENDENCIES)
78 check_PROGRAMS+= tests/hash_plus
79 noinst_PROGRAMS+= tests/hash_plus
80
81 include tests/cli.am
82
83 test: check
84
85 test-mem: tests/libmemcached-1.0/testapp
86 @tests/libmemcached-1.0/testapp
87
88 test-atom: tests/atomsmasher
89 @tests/atomsmasher
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 valgrind-memcapable: tests/memcapable
101 $(VALGRIND_COMMAND) tests/memcapable
102
103 pahole-mem: tests/testapp
104 @$(PAHOLE_COMMAND) tests/testapp
105
106 gdb-mem: tests/libmemcached-1.0/testapp
107 @$(GDB_COMMAND) tests/libmemcached-1.0/testapp
108
109 gdb-atom: tests/atomsmasher
110 @$(GDB_COMMAND) tests/atomsmasher
111
112 gdb-hash: tests/testhashkit
113 @$(GDB_COMMAND) tests/testhashkit
114
115 gdb-hashplus: tests/hash_plus
116 @$(GDB_COMMAND) tests/hash_plus
117
118 gdb-cycle: tests/cycle
119 @$(GDB_COMMAND) tests/cycle
120
121 valgrind-cycle: tests/cycle
122 $(VALGRIND_COMMAND) tests/cycle
123
124 valgrind-mem: tests/libmemcached-1.0/testapp
125 @$(VALGRIND_COMMAND) tests/libmemcached-1.0/testapp
126
127 valgrind-failure: tests/failure
128 @$(VALGRIND_COMMAND) tests/failure
129
130 valgrind-atom: tests/atomsmasher
131 $(VALGRIND_COMMAND) tests/atomsmasher
132
133 valgrind-sasl: tests/sasl
134 @$(VALGRIND_COMMAND) tests/sasl
135
136 valgrind-hash: tests/testhashkit
137 @$(VALGRIND_COMMAND) tests/testhashkit
138
139 valgrind-hashplus: tests/hash_plus
140 @$(VALGRIND_COMMAND) tests/hash_plus
141
142 helgrind-cycle: tests/cycle
143 @$(HELGRIND_COMMAND) tests/cycle
144
145 helgrind-mem: tests/libmemcached-1.0/testapp
146 @$(HELGRIND_COMMAND) tests/libmemcached-1.0/testapp
147
148 helgrind-atom: tests/atomsmasher
149 @$(HELGRIND_COMMAND) tests/atomsmasher
150
151 helgrind-hash: tests/testhashkit
152 @$(HELGRIND_COMMAND) tests/testhashkit
153
154 helgrind-hashplus: tests/hash_plus
155 @$(HELGRIND_COMMAND) tests/hash_plus