~drizzle-trunk/drizzle/development

1 by brian
clean slate
1
# Copyright (C) 2000-2006 MySQL AB
2
# 
3
# This program is free software; you can redistribute it and/or modify
4
# it under the terms of the GNU General Public License as published by
5
# the Free Software Foundation; version 2 of the License.
6
# 
7
# This program is distributed in the hope that it will be useful,
8
# but WITHOUT ANY WARRANTY; without even the implied warranty of
9
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10
# GNU General Public License for more details.
11
# 
12
# You should have received a copy of the GNU General Public License
13
# along with this program; if not, write to the Free Software
14
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
15
16
# Process this file with automake to create Makefile.in
17
18
AUTOMAKE_OPTIONS =	foreign
19
20
# These are built from source in the Docs directory
21
EXTRA_DIST =		
22
23
SUBDIRS =		. include \
28.1.7 by Monty Taylor
Put errmsg.c in sql-common since it can be built only once and used twice.
24
			sql-common scripts vio \
1 by brian
clean slate
25
			@sql_union_dirs@ unittest storage plugin \
26
			@sql_server@ tests \
27
			mysql-test support-files
28
29
DIST_SUBDIRS =		. include \
28.1.7 by Monty Taylor
Put errmsg.c in sql-common since it can be built only once and used twice.
30
			sql-common scripts vio \
28.1.18 by Monty Taylor
Added reference to strings/tests
31
			strings mysys dbug mysys/tests strings/tests \
32
			extra regex \
28.1.2 by Monty Taylor
First stab at back porting libtool convenience lib patch from telco-6.2
33
			libmysql client unittest storage plugin \
28.1.7 by Monty Taylor
Put errmsg.c in sql-common since it can be built only once and used twice.
34
			sql tests \
13 by brian
Incomming patch to clean up build.
35
			mysql-test support-files
36
1 by brian
clean slate
37
DISTCLEANFILES = ac_available_languages_fragment
38
39
# Create permission databases
40
init-db:		all
41
	$(top_builddir)/scripts/mysql_install_db
42
43
bin-dist:		all
44
	$(top_builddir)/scripts/make_binary_distribution @MAKE_BINARY_DISTRIBUTION_OPTIONS@
45
46
tags:
47
	support-files/build-tags
48
49
.PHONY:	init-db bin-dist \
50
  test    test-force    test-full    test-force-full    test-force-mem \
51
  test-pl test-force-pl test-full-pl test-force-full-pl test-force-pl-mem \
52
  test-unit test-ps test-nr test-pr test-ns test-binlog-statement \
53
  test-ext-funcs test-ext-rpl test-ext-jp \
54
  test-ext-stress test-ext test-embedded \
55
  test-fast test-fast-cursor test-fast-view test-fast-prepare \
56
  test-full-qa
57
58
# Target 'test' will run the regression test suite using the built server.
59
#
60
# If you are running in a shared environment, users can avoid clashing
61
# port numbers by setting individual small numbers 1-100 to the
62
# environment variable MTR_BUILD_THREAD. The script "mysql-test-run"
63
# will then calculate the various port numbers it needs from this,
64
# making sure each user use different ports.
65
66
test-unit:
67
	cd unittest && $(MAKE) test
68
69
test-ps:
70
	cd mysql-test ; \
71
	    @PERL@ ./mysql-test-run.pl $(force) --ps-protocol --mysqld=--binlog-format=mixed
72
73
test-nr:
74
	cd mysql-test ; \
75
	    @PERL@ ./mysql-test-run.pl $(force) --mysqld=--binlog-format=row
76
77
test-pr:
78
	cd mysql-test ; \
79
	    @PERL@ ./mysql-test-run.pl $(force) $(mem) --ps-protocol --mysqld=--binlog-format=row
80
81
test-ns:
82
	cd mysql-test ; \
83
	    @PERL@ ./mysql-test-run.pl $(force) $(mem) --mysqld=--binlog-format=mixed
84
85
test-binlog-statement:
86
	cd mysql-test ; \
87
	    @PERL@ ./mysql-test-run.pl $(force) --mysqld=--binlog-format=statement
88
89
test:	test-unit test-ns test-pr
90
91
test-full:	test test-nr test-ps
92
93
test-force:
94
	$(MAKE) force=--force test
95
96
test-force-full:
97
	$(MAKE) force=--force test-full
98
99
#used by autopush.pl to run memory based tests
100
test-force-mem:
101
	$(MAKE) force=--force mem=--mem test
102
103
test-bt:
104
	-cd mysql-test ; MTR_BUILD_THREAD=auto \
105
	    @PERL@ ./mysql-test-run.pl --force --comment=funcs1_ps --ps-protocol --suite=funcs_1
106
	-cd mysql-test ; MTR_BUILD_THREAD=auto \
107
	    @PERL@ ./mysql-test-run.pl --force --comment=funcs2 --suite=funcs_2
108
	-cd mysql-test ; MTR_BUILD_THREAD=auto \
109
	    @PERL@ ./mysql-test-run.pl --force --comment=rpl --suite=rpl
110
	-if [ -d mysql-test/suite/nist ] ; then \
111
	  cd mysql-test ; MTR_BUILD_THREAD=auto \
112
	      @PERL@ ./mysql-test-run.pl --comment=NIST+normal --force --suite=nist ; \
113
	fi
114
	-if [ -d mysql-test/suite/nist ] ; then \
115
	  cd mysql-test ; MTR_BUILD_THREAD=auto \
116
	      @PERL@ ./mysql-test-run.pl --comment=NIST+ps --force --suite=nist --ps-protocol ; \
117
	fi
118
	-cd mysql-test ; MTR_BUILD_THREAD=auto \
119
	    @PERL@ ./mysql-test-run.pl --force --comment=stress --suite=stress
120
121
# Re-enable the "jp" suite when bug#28563 is fixed
122
#	-cd mysql-test ; MTR_BUILD_THREAD=auto \
123
#	    @PERL@ ./mysql-test-run.pl --force --comment=jp --suite=jp
124
125
test-bt-debug:
126
	-cd mysql-test ; MTR_BUILD_THREAD=auto \
127
	    @PERL@ ./mysql-test-run.pl --comment=debug  --force --timer \
128
	        --skip-rpl --report-features
129
130
# Keep these for a while
131
test-pl:	test
132
test-full-pl:	test-full
133
test-force-pl:	test-force
134
test-force-pl-mem:  test-force-mem
135
test-force-full-pl: test-force-full
136
137
test-ext-funcs:
138
	cd mysql-test ; \
139
	    @PERL@ ./mysql-test-run.pl --force --suite=funcs_1 ; \
140
	    @PERL@ ./mysql-test-run.pl --force --suite=funcs_2
141
142
test-ext-rpl:
143
	cd mysql-test ; \
144
	    @PERL@ ./mysql-test-run.pl --force --suite=rpl
145
146
test-ext-jp:
147
	cd mysql-test ; \
148
	    @PERL@ ./mysql-test-run.pl --force --suite=jp
149
150
test-ext-stress:
151
	cd mysql-test ; \
152
	    @PERL@ ./mysql-test-run.pl --force --big-test --suite=stress
153
154
test-ext:	test-ext-funcs test-ext-rpl test-ext-jp test-ext-stress
155
156
test-fast:
157
	cd mysql-test ; \
158
	    @PERL@ ./mysql-test-run.pl $(subset) --force --skip-innodb --skip-im --skip-rpl ; \
159
	    @PERL@ ./mysql-test-run.pl $(subset) --force --suite=funcs_1 --do-test=myisam ; \
160
	    @PERL@ ./mysql-test-run.pl $(subset) --force --suite=stress --do-test=ddl_myisam 
161
162
test-fast-view:
163
	$(MAKE) subset=--view-protocol test-fast
164
165
test-fast-cursor:
166
	$(MAKE) subset=--cursor-protocol test-fast
167
168
test-fast-prepare:
169
	$(MAKE) subset=--ps-protocol test-fast
170
171
test-full-qa:
172
	$(MAKE) force=--force test-pr \
173
	    test-binlog-statement test-ext test-fast-view \
174
	        test-fast-cursor test-unit