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 \ |
|
24 |
sql-common scripts \
|
|
25 |
@sql_union_dirs@ unittest storage plugin \
|
|
26 |
@sql_server@ tests \
|
|
27 |
mysql-test support-files |
|
28 |
||
29 |
DIST_SUBDIRS = . include \ |
|
30 |
sql-common scripts \
|
|
12.4.3
by Stewart Smith
remove non-thread safe client library. client lib is now *always* thread safe. |
31 |
strings mysys dbug extra regex libmysql client unittest storage plugin \
|
1
by brian
clean slate |
32 |
vio sql tests \
|
13
by brian
Incomming patch to clean up build. |
33 |
mysql-test support-files |
34 |
||
1
by brian
clean slate |
35 |
DISTCLEANFILES = ac_available_languages_fragment |
36 |
||
37 |
# Create permission databases
|
|
38 |
init-db: all |
|
39 |
$(top_builddir)/scripts/mysql_install_db |
|
40 |
||
41 |
bin-dist: all |
|
42 |
$(top_builddir)/scripts/make_binary_distribution @MAKE_BINARY_DISTRIBUTION_OPTIONS@ |
|
43 |
||
44 |
# Remove BK's "SCCS" subdirectories from source distribution
|
|
45 |
# Create initial database files for Windows installations.
|
|
46 |
dist-hook: |
|
47 |
rm -rf `find $(distdir) -type d -name SCCS -print` |
|
48 |
mkdir -p $(distdir)/win |
|
49 |
scripts/mysql_install_db --no-defaults --cross-bootstrap \
|
|
50 |
--builddir=$(top_builddir) \ |
|
51 |
--datadir=$(distdir)/win/data \ |
|
52 |
--srcdir=$(top_srcdir) |
|
53 |
||
54 |
tags: |
|
55 |
support-files/build-tags |
|
56 |
||
57 |
.PHONY: init-db bin-dist \ |
|
58 |
test test-force test-full test-force-full test-force-mem \ |
|
59 |
test-pl test-force-pl test-full-pl test-force-full-pl test-force-pl-mem \ |
|
60 |
test-unit test-ps test-nr test-pr test-ns test-binlog-statement \ |
|
61 |
test-ext-funcs test-ext-rpl test-ext-jp \ |
|
62 |
test-ext-stress test-ext test-embedded \ |
|
63 |
test-fast test-fast-cursor test-fast-view test-fast-prepare \ |
|
64 |
test-full-qa |
|
65 |
||
66 |
# Target 'test' will run the regression test suite using the built server.
|
|
67 |
#
|
|
68 |
# If you are running in a shared environment, users can avoid clashing
|
|
69 |
# port numbers by setting individual small numbers 1-100 to the
|
|
70 |
# environment variable MTR_BUILD_THREAD. The script "mysql-test-run"
|
|
71 |
# will then calculate the various port numbers it needs from this,
|
|
72 |
# making sure each user use different ports.
|
|
73 |
||
74 |
test-unit: |
|
75 |
cd unittest && $(MAKE) test |
|
76 |
||
77 |
test-ps: |
|
78 |
cd mysql-test ; \ |
|
79 |
@PERL@ ./mysql-test-run.pl $(force) --ps-protocol --mysqld=--binlog-format=mixed |
|
80 |
||
81 |
test-nr: |
|
82 |
cd mysql-test ; \ |
|
83 |
@PERL@ ./mysql-test-run.pl $(force) --mysqld=--binlog-format=row |
|
84 |
||
85 |
test-pr: |
|
86 |
cd mysql-test ; \ |
|
87 |
@PERL@ ./mysql-test-run.pl $(force) $(mem) --ps-protocol --mysqld=--binlog-format=row |
|
88 |
||
89 |
test-ns: |
|
90 |
cd mysql-test ; \ |
|
91 |
@PERL@ ./mysql-test-run.pl $(force) $(mem) --mysqld=--binlog-format=mixed |
|
92 |
||
93 |
test-binlog-statement: |
|
94 |
cd mysql-test ; \ |
|
95 |
@PERL@ ./mysql-test-run.pl $(force) --mysqld=--binlog-format=statement |
|
96 |
||
97 |
test: test-unit test-ns test-pr |
|
98 |
||
99 |
test-full: test test-nr test-ps |
|
100 |
||
101 |
test-force: |
|
102 |
$(MAKE) force=--force test |
|
103 |
||
104 |
test-force-full: |
|
105 |
$(MAKE) force=--force test-full |
|
106 |
||
107 |
#used by autopush.pl to run memory based tests
|
|
108 |
test-force-mem: |
|
109 |
$(MAKE) force=--force mem=--mem test |
|
110 |
||
111 |
test-bt: |
|
112 |
-cd mysql-test ; MTR_BUILD_THREAD=auto \ |
|
113 |
@PERL@ ./mysql-test-run.pl --force --comment=funcs1_ps --ps-protocol --suite=funcs_1 |
|
114 |
-cd mysql-test ; MTR_BUILD_THREAD=auto \ |
|
115 |
@PERL@ ./mysql-test-run.pl --force --comment=funcs2 --suite=funcs_2 |
|
116 |
-cd mysql-test ; MTR_BUILD_THREAD=auto \ |
|
117 |
@PERL@ ./mysql-test-run.pl --force --comment=rpl --suite=rpl |
|
118 |
-if [ -d mysql-test/suite/nist ] ; then \ |
|
119 |
cd mysql-test ; MTR_BUILD_THREAD=auto \ |
|
120 |
@PERL@ ./mysql-test-run.pl --comment=NIST+normal --force --suite=nist ; \ |
|
121 |
fi
|
|
122 |
-if [ -d mysql-test/suite/nist ] ; then \ |
|
123 |
cd mysql-test ; MTR_BUILD_THREAD=auto \ |
|
124 |
@PERL@ ./mysql-test-run.pl --comment=NIST+ps --force --suite=nist --ps-protocol ; \ |
|
125 |
fi
|
|
126 |
-cd mysql-test ; MTR_BUILD_THREAD=auto \ |
|
127 |
@PERL@ ./mysql-test-run.pl --force --comment=stress --suite=stress |
|
128 |
||
129 |
# Re-enable the "jp" suite when bug#28563 is fixed
|
|
130 |
# -cd mysql-test ; MTR_BUILD_THREAD=auto \
|
|
131 |
# @PERL@ ./mysql-test-run.pl --force --comment=jp --suite=jp
|
|
132 |
||
133 |
test-bt-debug: |
|
134 |
-cd mysql-test ; MTR_BUILD_THREAD=auto \ |
|
135 |
@PERL@ ./mysql-test-run.pl --comment=debug --force --timer \ |
|
136 |
--skip-rpl --report-features |
|
137 |
||
138 |
# Keep these for a while
|
|
139 |
test-pl: test |
|
140 |
test-full-pl: test-full |
|
141 |
test-force-pl: test-force |
|
142 |
test-force-pl-mem: test-force-mem |
|
143 |
test-force-full-pl: test-force-full |
|
144 |
||
145 |
test-ext-funcs: |
|
146 |
cd mysql-test ; \ |
|
147 |
@PERL@ ./mysql-test-run.pl --force --suite=funcs_1 ; \ |
|
148 |
@PERL@ ./mysql-test-run.pl --force --suite=funcs_2
|
|
149 |
||
150 |
test-ext-rpl: |
|
151 |
cd mysql-test ; \ |
|
152 |
@PERL@ ./mysql-test-run.pl --force --suite=rpl
|
|
153 |
||
154 |
test-ext-jp: |
|
155 |
cd mysql-test ; \ |
|
156 |
@PERL@ ./mysql-test-run.pl --force --suite=jp
|
|
157 |
||
158 |
test-ext-stress: |
|
159 |
cd mysql-test ; \ |
|
160 |
@PERL@ ./mysql-test-run.pl --force --big-test --suite=stress
|
|
161 |
||
162 |
test-ext: test-ext-funcs test-ext-rpl test-ext-jp test-ext-stress |
|
163 |
||
164 |
test-fast: |
|
165 |
cd mysql-test ; \ |
|
166 |
@PERL@ ./mysql-test-run.pl $(subset) --force --skip-innodb --skip-im --skip-rpl ; \ |
|
167 |
@PERL@ ./mysql-test-run.pl $(subset) --force --suite=funcs_1 --do-test=myisam ; \ |
|
168 |
@PERL@ ./mysql-test-run.pl $(subset) --force --suite=stress --do-test=ddl_myisam |
|
169 |
||
170 |
test-fast-view: |
|
171 |
$(MAKE) subset=--view-protocol test-fast |
|
172 |
||
173 |
test-fast-cursor: |
|
174 |
$(MAKE) subset=--cursor-protocol test-fast |
|
175 |
||
176 |
test-fast-prepare: |
|
177 |
$(MAKE) subset=--ps-protocol test-fast |
|
178 |
||
179 |
test-full-qa: |
|
180 |
$(MAKE) force=--force test-pr \ |
|
181 |
test-binlog-statement test-ext test-fast-view \
|
|
182 |
test-fast-cursor test-unit |
|
183 |
||
184 |
# Don't update the files from bitkeeper
|
|
185 |
%::SCCS/s.% |