1
# Copyright (C) 2000-2006 MySQL AB
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.
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.
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
16
# Process this file with automake to create Makefile.in
18
AUTOMAKE_OPTIONS = foreign
20
# These are built from source in the Docs directory
26
@sql_union_dirs@ unittest storage plugin \
28
mysql-test support-files
30
DIST_SUBDIRS = . include \
33
strings mysys dbug extra regex libmysql libmysql_r client unittest storage plugin \
35
mysql-test support-files \
37
DISTCLEANFILES = ac_available_languages_fragment
39
# Create permission databases
41
$(top_builddir)/scripts/mysql_install_db
44
$(top_builddir)/scripts/make_binary_distribution @MAKE_BINARY_DISTRIBUTION_OPTIONS@
46
# Remove BK's "SCCS" subdirectories from source distribution
47
# Create initial database files for Windows installations.
49
rm -rf `find $(distdir) -type d -name SCCS -print`
50
mkdir -p $(distdir)/win
51
scripts/mysql_install_db --no-defaults --cross-bootstrap \
52
--builddir=$(top_builddir) \
53
--datadir=$(distdir)/win/data \
54
--srcdir=$(top_srcdir)
57
support-files/build-tags
59
.PHONY: init-db bin-dist \
60
test test-force test-full test-force-full test-force-mem \
61
test-pl test-force-pl test-full-pl test-force-full-pl test-force-pl-mem \
62
test-unit test-ps test-nr test-pr test-ns test-binlog-statement \
63
test-ext-funcs test-ext-rpl test-ext-jp \
64
test-ext-stress test-ext test-embedded \
65
test-fast test-fast-cursor test-fast-view test-fast-prepare \
68
# Target 'test' will run the regression test suite using the built server.
70
# If you are running in a shared environment, users can avoid clashing
71
# port numbers by setting individual small numbers 1-100 to the
72
# environment variable MTR_BUILD_THREAD. The script "mysql-test-run"
73
# will then calculate the various port numbers it needs from this,
74
# making sure each user use different ports.
77
cd unittest && $(MAKE) test
81
@PERL@ ./mysql-test-run.pl $(force) --ps-protocol --mysqld=--binlog-format=mixed
85
@PERL@ ./mysql-test-run.pl $(force) --mysqld=--binlog-format=row
89
@PERL@ ./mysql-test-run.pl $(force) $(mem) --ps-protocol --mysqld=--binlog-format=row
93
@PERL@ ./mysql-test-run.pl $(force) $(mem) --mysqld=--binlog-format=mixed
95
test-binlog-statement:
97
@PERL@ ./mysql-test-run.pl $(force) --mysqld=--binlog-format=statement
99
test: test-unit test-ns test-pr
101
test-full: test test-nr test-ps
104
$(MAKE) force=--force test
107
$(MAKE) force=--force test-full
109
#used by autopush.pl to run memory based tests
111
$(MAKE) force=--force mem=--mem test
114
-cd mysql-test ; MTR_BUILD_THREAD=auto \
115
@PERL@ ./mysql-test-run.pl --force --comment=funcs1_ps --ps-protocol --suite=funcs_1
116
-cd mysql-test ; MTR_BUILD_THREAD=auto \
117
@PERL@ ./mysql-test-run.pl --force --comment=funcs2 --suite=funcs_2
118
-cd mysql-test ; MTR_BUILD_THREAD=auto \
119
@PERL@ ./mysql-test-run.pl --force --comment=rpl --suite=rpl
120
-if [ -d mysql-test/suite/nist ] ; then \
121
cd mysql-test ; MTR_BUILD_THREAD=auto \
122
@PERL@ ./mysql-test-run.pl --comment=NIST+normal --force --suite=nist ; \
124
-if [ -d mysql-test/suite/nist ] ; then \
125
cd mysql-test ; MTR_BUILD_THREAD=auto \
126
@PERL@ ./mysql-test-run.pl --comment=NIST+ps --force --suite=nist --ps-protocol ; \
128
-cd mysql-test ; MTR_BUILD_THREAD=auto \
129
@PERL@ ./mysql-test-run.pl --force --comment=stress --suite=stress
131
# Re-enable the "jp" suite when bug#28563 is fixed
132
# -cd mysql-test ; MTR_BUILD_THREAD=auto \
133
# @PERL@ ./mysql-test-run.pl --force --comment=jp --suite=jp
136
-cd mysql-test ; MTR_BUILD_THREAD=auto \
137
@PERL@ ./mysql-test-run.pl --comment=debug --force --timer \
138
--skip-rpl --report-features
140
# Keep these for a while
142
test-full-pl: test-full
143
test-force-pl: test-force
144
test-force-pl-mem: test-force-mem
145
test-force-full-pl: test-force-full
149
@PERL@ ./mysql-test-run.pl --force --suite=funcs_1 ; \
150
@PERL@ ./mysql-test-run.pl --force --suite=funcs_2
154
@PERL@ ./mysql-test-run.pl --force --suite=rpl
158
@PERL@ ./mysql-test-run.pl --force --suite=jp
162
@PERL@ ./mysql-test-run.pl --force --big-test --suite=stress
164
test-ext: test-ext-funcs test-ext-rpl test-ext-jp test-ext-stress
168
@PERL@ ./mysql-test-run.pl $(subset) --force --skip-innodb --skip-im --skip-rpl ; \
169
@PERL@ ./mysql-test-run.pl $(subset) --force --suite=funcs_1 --do-test=myisam ; \
170
@PERL@ ./mysql-test-run.pl $(subset) --force --suite=stress --do-test=ddl_myisam
173
$(MAKE) subset=--view-protocol test-fast
176
$(MAKE) subset=--cursor-protocol test-fast
179
$(MAKE) subset=--ps-protocol test-fast
182
$(MAKE) force=--force test-pr \
183
test-binlog-statement test-ext test-fast-view \
184
test-fast-cursor test-unit
186
# Don't update the files from bitkeeper