~jan-kneschke/mysql-proxy/packet-tracking-assertions

« back to all changes in this revision

Viewing changes to tests/unit/Makefile.am

  • Committer: Kay Roepke
  • Author(s): Jan Kneschke
  • Date: 2008-01-23 22:00:28 UTC
  • Revision ID: kay@mysql.com-20080123220028-hq2xqb69apa75fnx
first round on mysql-shell based on the proxy code

this is mostly a verification if the proxy-code is flexible enough to handle 
all three scenarios of: client, server and forwarding (proxy)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#  $%BEGINLICENSE%$
2
 
#  Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
3
 
4
 
#  This program is free software; you can redistribute it and/or
5
 
#  modify it under the terms of the GNU General Public License as
6
 
#  published by the Free Software Foundation; version 2 of the
7
 
#  License.
8
 
9
 
#  This program is distributed in the hope that it will be useful,
10
 
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
 
#  GNU General Public License for more details.
13
 
14
 
#  You should have received a copy of the GNU General Public License
15
 
#  along with this program; if not, write to the Free Software
16
 
#  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
17
 
#  02110-1301  USA
18
 
19
 
#  $%ENDLICENSE%$
20
 
 
21
 
SUBDIRS=lua
22
 
 
23
 
TESTS=\
24
 
        check_sql_tokenizer \
25
 
        check_mysqld_proto \
26
 
        check_plugin \
27
 
        check_loadscript \
28
 
        check_chassis_log \
29
 
        t_network_socket \
30
 
        t_network_queue \
31
 
        t_network_address \
32
 
        t_network_backend \
33
 
        t_network_injection \
34
 
        t_network_mysqld_packet \
35
 
        t_network_mysqld_masterinfo \
36
 
        t_chassis_timings \
37
 
        t_chassis_shutdown_hooks \
38
 
        check_chassis_filemode \
39
 
        check_chassis_path
40
 
 
41
 
check_PROGRAMS=$(TESTS)
42
 
 
43
 
t_chassis_shutdown_hooks_SOURCES = t_chassis_shutdown_hooks.c \
44
 
        $(top_srcdir)/src/chassis-shutdown-hooks.c \
45
 
        $(top_srcdir)/src/glib-ext.c
46
 
 
47
 
t_chassis_shutdown_hooks_CPPFLAGS = \
48
 
        -I$(top_srcdir)/src/ $(GLIB_CFLAGS) -I$(top_srcdir) \
49
 
        $(MYSQL_CFLAGS)
50
 
 
51
 
t_chassis_shutdown_hooks_LDADD = $(GLIB_LIBS) $(GTHREAD_LIBS)
52
 
 
53
 
 
54
 
check_chassis_filemode_SOURCES = check_chassis_filemode.c \
55
 
        $(top_srcdir)/src/chassis-filemode.c
56
 
 
57
 
check_chassis_filemode_CPPFLAGS = \
58
 
        -I$(top_srcdir)/src/ $(GLIB_CFLAGS) -I$(top_srcdir) \
59
 
        $(MYSQL_CFLAGS)
60
 
 
61
 
check_chassis_filemode_LDADD = $(GLIB_LIBS) $(GTHREAD_LIBS)
62
 
 
63
 
check_sql_tokenizer_SOURCES  = check_sql_tokenizer.c \
64
 
        $(top_srcdir)/lib/sql-tokenizer.l \
65
 
        $(top_srcdir)/lib/sql-tokenizer-tokens.c \
66
 
        $(top_builddir)/lib/sql-tokenizer-keywords.c \
67
 
        $(top_srcdir)/src/glib-ext.c
68
 
 
69
 
check_sql_tokenizer_CPPFLAGS = -I$(top_srcdir)/lib/ $(GLIB_CFLAGS) -I$(top_srcdir)/src/
70
 
check_sql_tokenizer_LDADD    = $(GLIB_LIBS)
71
 
 
72
 
DISTCLEANFILES = \
73
 
        sql-tokenizer.c
74
 
 
75
 
check_mysqld_proto_SOURCES  = \
76
 
        check_mysqld_proto.c \
77
 
        $(top_srcdir)/src/network-mysqld-binlog.c \
78
 
        $(top_srcdir)/src/network-mysqld-proto.c \
79
 
        $(top_srcdir)/src/glib-ext.c
80
 
 
81
 
check_mysqld_proto_CPPFLAGS = -I$(top_srcdir)/src/ $(GLIB_CFLAGS) $(MYSQL_CFLAGS)
82
 
check_mysqld_proto_LDADD    = $(GLIB_LIBS)
83
 
 
84
 
t_network_mysqld_packet_SOURCES  = \
85
 
        t_network_mysqld_packet.c \
86
 
        $(top_srcdir)/src/network-mysqld-packet.c \
87
 
        $(top_srcdir)/src/network-mysqld-proto.c \
88
 
        $(top_srcdir)/src/network-queue.c \
89
 
        $(top_srcdir)/src/network-socket.c \
90
 
        $(top_srcdir)/src/network-address.c \
91
 
        $(top_srcdir)/src/glib-ext.c
92
 
 
93
 
t_network_mysqld_packet_CPPFLAGS = -I$(top_srcdir)/src/ $(GLIB_CFLAGS) $(MYSQL_CFLAGS) $(LUA_CFLAGS)
94
 
t_network_mysqld_packet_LDADD    = $(GLIB_LIBS) $(LUA_LIBS) $(EVENT_LIBS)
95
 
 
96
 
t_chassis_timings_SOURCES  = \
97
 
        t_chassis_timings.c \
98
 
        $(top_srcdir)/src/chassis-timings.c \
99
 
        $(top_srcdir)/src/glib-ext.c \
100
 
        $(top_srcdir)/src/my_rdtsc.c 
101
 
 
102
 
t_chassis_timings_CPPFLAGS = -I$(top_srcdir)/src/ $(GLIB_CFLAGS) 
103
 
t_chassis_timings_LDADD    = $(GLIB_LIBS)
104
 
if USE_SUNCC_ASSEMBLY
105
 
t_chassis_timings_CPPFLAGS += \
106
 
        ${top_srcdir}/src/my_timer_cycles.il
107
 
endif
108
 
 
109
 
 
110
 
 
111
 
 
112
 
check_plugin_SOURCES  = check_plugin.c $(top_srcdir)/src/chassis-plugin.c
113
 
check_plugin_CPPFLAGS = -I$(top_srcdir)/src/ $(GLIB_CFLAGS) $(MYSQL_CFLAGS) $(GMODULE_CFLAGS)
114
 
check_plugin_LDADD    = $(GLIB_LIBS) $(GMODULE_LIBS)
115
 
 
116
 
check_chassis_log_SOURCES  = check_chassis_log.c $(top_srcdir)/src/chassis-log.c
117
 
check_chassis_log_CPPFLAGS = -I$(top_srcdir)/src/ $(GLIB_CFLAGS) $(MYSQL_CFLAGS) $(GMODULE_CFLAGS)
118
 
check_chassis_log_LDADD    = $(GLIB_LIBS) $(GMODULE_LIBS)
119
 
 
120
 
check_loadscript_SOURCES  = check_loadscript.c $(top_srcdir)/src/lua-scope.c $(top_srcdir)/src/lua-load-factory.c $(top_srcdir)/src/chassis-stats.c
121
 
check_loadscript_CPPFLAGS = -I$(top_srcdir)/src/ $(LUA_CFLAGS) $(GLIB_CFLAGS) $(MYSQL_CFLAGS) $(GMODULE_CFLAGS)
122
 
check_loadscript_LDADD    = $(GLIB_LIBS) $(GMODULE_LIBS) $(GTHREAD_LIBS) $(LUA_LIBS)
123
 
 
124
 
t_network_socket_SOURCES  = \
125
 
        t_network_socket.c \
126
 
        $(top_srcdir)/src/glib-ext.c \
127
 
        $(top_srcdir)/src/network-mysqld-proto.c \
128
 
        $(top_srcdir)/src/network-mysqld-packet.c \
129
 
        $(top_srcdir)/src/network-address.c \
130
 
        $(top_srcdir)/src/network-queue.c \
131
 
        $(top_srcdir)/src/network-socket.c
132
 
 
133
 
t_network_socket_CPPFLAGS = -I$(top_srcdir)/src/ $(GLIB_CFLAGS) $(MYSQL_CFLAGS) $(GMODULE_CFLAGS) $(EVENT_CFLAGS) $(LUA_CFLAGS)
134
 
t_network_socket_LDADD    = $(GLIB_LIBS) $(GMODULE_LIBS) $(GTHREAD_LIBS) $(EVENT_LIBS) $(LUA_LIBS)
135
 
 
136
 
t_network_queue_SOURCES  = \
137
 
        t_network_queue.c \
138
 
        $(top_srcdir)/src/glib-ext.c \
139
 
        $(top_srcdir)/src/network-queue.c
140
 
 
141
 
t_network_queue_CPPFLAGS = -I$(top_srcdir)/src/ $(GLIB_CFLAGS) $(MYSQL_CFLAGS) $(GMODULE_CFLAGS) $(EVENT_CFLAGS) $(LUA_CFLAGS)
142
 
t_network_queue_LDADD    = $(GLIB_LIBS) $(GMODULE_LIBS) $(GTHREAD_LIBS) $(EVENT_LIBS) $(LUA_LIBS)
143
 
 
144
 
t_network_address_SOURCES  = \
145
 
        t_network_address.c \
146
 
        $(top_srcdir)/src/glib-ext.c \
147
 
        $(top_srcdir)/src/network-address.c 
148
 
 
149
 
t_network_address_CPPFLAGS = -I$(top_srcdir)/src/ $(GLIB_CFLAGS) $(MYSQL_CFLAGS) $(GMODULE_CFLAGS) $(EVENT_CFLAGS) $(LUA_CFLAGS)
150
 
t_network_address_LDADD    = $(GLIB_LIBS) $(GMODULE_LIBS) $(GTHREAD_LIBS) $(EVENT_LIBS) $(LUA_LIBS)
151
 
 
152
 
 
153
 
check_chassis_path_SOURCES = \
154
 
        check_chassis_path.c \
155
 
        $(top_srcdir)/src/chassis-log.c \
156
 
        $(top_srcdir)/src/chassis-mainloop.c \
157
 
        $(top_srcdir)/src/chassis-shutdown-hooks.c \
158
 
        $(top_srcdir)/src/chassis-event-thread.c \
159
 
        $(top_srcdir)/src/chassis-plugin.c \
160
 
        $(top_srcdir)/src/chassis-path.c \
161
 
        $(top_srcdir)/src/chassis-stats.c \
162
 
        $(top_srcdir)/src/glib-ext.c \
163
 
        $(top_srcdir)/src/my_rdtsc.c \
164
 
        $(top_srcdir)/src/chassis-timings.c
165
 
check_chassis_path_CPPFLAGS = -I$(top_srcdir)/src $(GLIB_CFLAGS) $(MYSQL_CFLAGS) $(GMODULE_CFLAGS)
166
 
check_chassis_path_LDADD    = $(GLIB_LIBS) $(GMODULE_LIBS) $(EVENT_LIBS) $(GTHREAD_LIBS)
167
 
if USE_SUNCC_ASSEMBLY
168
 
check_chassis_path_CPPFLAGS += \
169
 
        ${top_srcdir}/src/my_timer_cycles.il
170
 
endif
171
 
 
172
 
 
173
 
t_network_backend_SOURCES  = \
174
 
        t_network_backend.c \
175
 
        $(top_srcdir)/src/chassis-timings.c \
176
 
        $(top_srcdir)/src/glib-ext.c \
177
 
        $(top_srcdir)/src/network-backend.c \
178
 
        $(top_srcdir)/src/network-mysqld-proto.c \
179
 
        $(top_srcdir)/src/network-mysqld-packet.c \
180
 
        $(top_srcdir)/src/network-conn-pool.c \
181
 
        $(top_srcdir)/src/network-address.c \
182
 
        $(top_srcdir)/src/network-queue.c \
183
 
        $(top_srcdir)/src/network-socket.c \
184
 
        $(top_srcdir)/src/my_rdtsc.c
185
 
 
186
 
t_network_backend_CPPFLAGS = -I$(top_srcdir)/src/ $(GLIB_CFLAGS) $(MYSQL_CFLAGS) $(GMODULE_CFLAGS) $(EVENT_CFLAGS) $(LUA_CFLAGS)
187
 
t_network_backend_LDADD    = $(GLIB_LIBS) $(GMODULE_LIBS) $(GTHREAD_LIBS) $(EVENT_LIBS) $(LUA_LIBS)
188
 
if USE_SUNCC_ASSEMBLY
189
 
t_network_backend_CPPFLAGS += \
190
 
        ${top_srcdir}/src/my_timer_cycles.il
191
 
endif
192
 
 
193
 
t_network_mysqld_masterinfo_SOURCES  = \
194
 
        t_network_mysqld_masterinfo.c \
195
 
        $(top_srcdir)/src/glib-ext.c \
196
 
        $(top_srcdir)/src/network-mysqld-proto.c \
197
 
        $(top_srcdir)/src/network-mysqld-masterinfo.c 
198
 
 
199
 
t_network_mysqld_masterinfo_CPPFLAGS = -I$(top_srcdir)/src/ $(GLIB_CFLAGS) $(MYSQL_CFLAGS) $(GMODULE_CFLAGS) $(EVENT_CFLAGS)
200
 
t_network_mysqld_masterinfo_LDADD    = $(GLIB_LIBS) $(GMODULE_LIBS) $(GTHREAD_LIBS) $(EVENT_LIBS)
201
 
 
202
 
t_network_injection_SOURCES  = \
203
 
        t_network_injection.c \
204
 
        $(top_srcdir)/src/glib-ext.c \
205
 
        $(top_srcdir)/src/network-mysqld-proto.c \
206
 
        $(top_srcdir)/src/network-mysqld-packet.c \
207
 
        $(top_srcdir)/src/network-injection.c \
208
 
        $(top_srcdir)/src/my_rdtsc.c \
209
 
        $(top_srcdir)/src/chassis-timings.c
210
 
 
211
 
t_network_injection_CPPFLAGS = -I$(top_srcdir)/src/ $(GLIB_CFLAGS) $(MYSQL_CFLAGS) $(GMODULE_CFLAGS) $(EVENT_CFLAGS) $(LUA_CFLAGS)
212
 
t_network_injection_LDADD    = $(GLIB_LIBS) $(GMODULE_LIBS) $(GTHREAD_LIBS) $(EVENT_LIBS) $(LUA_LIBS)
213
 
if USE_SUNCC_ASSEMBLY
214
 
t_network_injection_CPPFLAGS += \
215
 
        ${top_srcdir}/src/my_timer_cycles.il
216
 
endif
217
 
 
218
 
EXTRA_DIST = CMakeLists.txt
219
 
 
220
 
## remove the test-output
221
 
distclean-local:
222
 
        rm -f ${builddir}/test-*.txt