~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
53.2.24 by Monty Taylor
Added an automake conditional to not build the dbug dir, since I don't want to keep seeing errors for it while cleaning up other parts of the tree.
18
if BUILD_DBUG
19
  d_dbug = dbug
20
endif
21
1 by brian
clean slate
22
SUBDIRS =		. include \
77.1.50 by Monty Taylor
First step of sql-common removal (the cheap way)
23
			vio \
53.2.24 by Monty Taylor
Added an automake conditional to not build the dbug dir, since I don't want to keep seeing errors for it while cleaning up other parts of the tree.
24
			strings mysys $(d_dbug) \
77.1.31 by Monty Taylor
Replaced regex lib with pcre. Reworked mysqltest to use it.
25
                        extra \
77.1.38 by Monty Taylor
Renamed more stuff to drizzle.
26
                        libdrizzle client storage plugin \
54.1.3 by Stewart Smith
sql => server (initial patch)
27
                        server \
77.1.47 by Monty Taylor
Moved test to tests...
28
			tests support-files
1 by brian
clean slate
29
28.1.34 by Monty Taylor
Removed ZLIB references and the craziness of whether to build the server or not.
30
DIST_SUBDIRS =		$(SUBDIRS) mysys/tests strings/tests
13 by brian
Incomming patch to clean up build.
31
77.1.106 by Monty Taylor
Another batch of distclean fixes.
32
DISTCLEANFILES = ac_available_languages_fragment
1 by brian
clean slate
33
142.2.1 by Monty Taylor
Fixed Bug#248136 - We create the datadir now on install and chown it to
34
# Create empty datadir 
35
install-data-local:
36
	$(MKDIR_P) $(DESTDIR)$(localstatedir) 
37
	@if test `id -u` = 0 ; then \
38
		chown $(MYSQLD_USER) $(DESTDIR)$(localstatedir) ;\
39
	fi
40
77.1.106 by Monty Taylor
Another batch of distclean fixes.
41
distclean-local:
42
	@RM@ -r -f autom4te.cache
43
142.2.1 by Monty Taylor
Fixed Bug#248136 - We create the datadir now on install and chown it to
44
.PHONY: test    test-force    test-full    test-force-full    test-force-mem \
1 by brian
clean slate
45
  test-pl test-force-pl test-full-pl test-force-full-pl test-force-pl-mem \
37.1.1 by Patrick Galbraith
Removed unittest in private remove_unittest branch
46
  test-ps test-nr test-pr test-ns test-binlog-statement \
1 by brian
clean slate
47
  test-ext-funcs test-ext-rpl test-ext-jp \
48
  test-ext-stress test-ext test-embedded \
49
  test-fast test-fast-cursor test-fast-view test-fast-prepare \
50
  test-full-qa
51
52
# Target 'test' will run the regression test suite using the built server.
53
#
54
# If you are running in a shared environment, users can avoid clashing
55
# port numbers by setting individual small numbers 1-100 to the
168 by Brian Aker
Rename of test (better tab completion!)
56
# environment variable MTR_BUILD_THREAD. The script "test-run"
1 by brian
clean slate
57
# will then calculate the various port numbers it needs from this,
58
# making sure each user use different ports.
59
60
test-nr:
77.1.47 by Monty Taylor
Moved test to tests...
61
	cd tests ; \
168 by Brian Aker
Rename of test (better tab completion!)
62
	    @PERL@ ./test-run.pl $(force) --mysqld=--binlog-format=row
1 by brian
clean slate
63
64
test-ns:
77.1.47 by Monty Taylor
Moved test to tests...
65
	cd tests ; \
168 by Brian Aker
Rename of test (better tab completion!)
66
	    @PERL@ ./test-run.pl $(force) $(mem) --mysqld=--binlog-format=mixed
1 by brian
clean slate
67
68
test-binlog-statement:
77.1.47 by Monty Taylor
Moved test to tests...
69
	cd tests ; \
168 by Brian Aker
Rename of test (better tab completion!)
70
	    @PERL@ ./test-run.pl $(force) --mysqld=--binlog-format=statement
1 by brian
clean slate
71
53.2.5 by Monty Taylor
Add Jay's test optoins at the target of make test.
72
test: test-drizzle
73
168 by Brian Aker
Rename of test (better tab completion!)
74
test-full:	test test-nr
1 by brian
clean slate
75
76
test-force:
77
	$(MAKE) force=--force test
78
79
test-force-full:
80
	$(MAKE) force=--force test-full
81
82
#used by autopush.pl to run memory based tests
83
test-force-mem:
84
	$(MAKE) force=--force mem=--mem test
85
86
test-bt:
77.1.47 by Monty Taylor
Moved test to tests...
87
	-cd tests ; MTR_BUILD_THREAD=auto \
168 by Brian Aker
Rename of test (better tab completion!)
88
	    @PERL@ ./test-run.pl --force --comment=funcs1_ps --ps-protocol --suite=funcs_1
89
	-cd tests ; MTR_BUILD_THREAD=auto \
90
	    @PERL@ ./test-run.pl --force --comment=funcs2 --suite=funcs_2
91
	-cd tests ; MTR_BUILD_THREAD=auto \
92
	    @PERL@ ./test-run.pl --force --comment=rpl --suite=rpl
93
	-if [ -d test/suite/nist ] ; then \
94
	  cd tests ; MTR_BUILD_THREAD=auto \
95
	      @PERL@ ./test-run.pl --comment=NIST+normal --force --suite=nist ; \
96
	fi
97
	-if [ -d test/suite/nist ] ; then \
98
	  cd tests ; MTR_BUILD_THREAD=auto \
99
	      @PERL@ ./test-run.pl --comment=NIST+ps --force --suite=nist --ps-protocol ; \
100
	fi
101
	-cd tests ; MTR_BUILD_THREAD=auto \
102
	    @PERL@ ./test-run.pl --force --comment=stress --suite=stress
1 by brian
clean slate
103
104
# Re-enable the "jp" suite when bug#28563 is fixed
77.1.47 by Monty Taylor
Moved test to tests...
105
#	-cd tests ; MTR_BUILD_THREAD=auto \
168 by Brian Aker
Rename of test (better tab completion!)
106
#	    @PERL@ ./test-run.pl --force --comment=jp --suite=jp
1 by brian
clean slate
107
108
test-bt-debug:
77.1.47 by Monty Taylor
Moved test to tests...
109
	-cd tests ; MTR_BUILD_THREAD=auto \
168 by Brian Aker
Rename of test (better tab completion!)
110
	    @PERL@ ./test-run.pl --comment=debug  --force --timer \
1 by brian
clean slate
111
	        --skip-rpl --report-features
112
113
# Keep these for a while
114
test-pl:	test
115
test-full-pl:	test-full
116
test-force-pl:	test-force
117
test-force-pl-mem:  test-force-mem
118
test-force-full-pl: test-force-full
119
120
test-ext-funcs:
77.1.47 by Monty Taylor
Moved test to tests...
121
	cd tests ; \
168 by Brian Aker
Rename of test (better tab completion!)
122
	    @PERL@ ./test-run.pl --force --suite=funcs_1 ; \
123
	    @PERL@ ./test-run.pl --force --suite=funcs_2
1 by brian
clean slate
124
125
test-ext-rpl:
77.1.47 by Monty Taylor
Moved test to tests...
126
	cd tests ; \
168 by Brian Aker
Rename of test (better tab completion!)
127
	    @PERL@ ./test-run.pl --force --suite=rpl
1 by brian
clean slate
128
129
test-ext-jp:
77.1.47 by Monty Taylor
Moved test to tests...
130
	cd tests ; \
168 by Brian Aker
Rename of test (better tab completion!)
131
	    @PERL@ ./test-run.pl --force --suite=jp
1 by brian
clean slate
132
133
test-ext-stress:
77.1.47 by Monty Taylor
Moved test to tests...
134
	cd tests ; \
168 by Brian Aker
Rename of test (better tab completion!)
135
	    @PERL@ ./test-run.pl --force --big-test --suite=stress
1 by brian
clean slate
136
137
test-ext:	test-ext-funcs test-ext-rpl test-ext-jp test-ext-stress
138
139
test-full-qa:
140
	$(MAKE) force=--force test-pr \
168 by Brian Aker
Rename of test (better tab completion!)
141
	    test-binlog-statement test-ext
53.2.5 by Monty Taylor
Add Jay's test optoins at the target of make test.
142
143
test-drizzle:
77.1.47 by Monty Taylor
Moved test to tests...
144
	cd tests ; \
168 by Brian Aker
Rename of test (better tab completion!)
145
	@PERL@ ./test-run.pl --fast --reorder --force \
53.2.5 by Monty Taylor
Add Jay's test optoins at the target of make test.
146
		join_crash \
147
		join_nested \
148
		join_outer_innodb \
149
		delete \
150
		join_outer \
157 by Brian Aker
Second pass cleanup on removal of my_uint types
151
		distinct \
53.2.5 by Monty Taylor
Add Jay's test optoins at the target of make test.
152
		join \
153
		subselect \
77.1.98 by Monty Taylor
Added two more passing tests.
154
		subselect3 \
155
		subselect_innodb \
53.2.5 by Monty Taylor
Add Jay's test optoins at the target of make test.
156
		insert \
157
		select \
158
		update \
159
		information_schema \
160
		mysqlslap \
161
		lock \
162
		lock_tables_lost_commit