~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
202.1.20 by Monty Taylor
Changed subdir build order so that we get mysys done before comp_err in include.
18
SUBDIRS = . vio \
212.5.4 by Monty Taylor
Renamed strings to mystrings, for include/lib naming consistency.
19
	  mystrings \
187 by Brian Aker
Fixed tab issue
20
	  mysys \
21
	  extra \
22
	  libdrizzle \
23
	  client \
24
	  storage \
25
	  plugin \
214 by Brian Aker
Rename of fields (fix issue with string and decimal .h clashing).
26
	  drizzled \
187 by Brian Aker
Fixed tab issue
27
	  tests \
28
	  support-files
29
30
DIST_SUBDIRS = $(SUBDIRS) \
31
	       mysys/tests \
212.5.4 by Monty Taylor
Renamed strings to mystrings, for include/lib naming consistency.
32
	       mystrings/tests
187 by Brian Aker
Fixed tab issue
33
34
DISTCLEANFILES = ac_available_languages_fragment
1 by brian
clean slate
35
142.2.1 by Monty Taylor
Fixed Bug#248136 - We create the datadir now on install and chown it to
36
# Create empty datadir 
37
install-data-local:
202.1.24 by Monty Taylor
Changed MKDIR_P to mkinstalldir
38
	$(mkinstalldirs) $(DESTDIR)$(localstatedir) 
187 by Brian Aker
Fixed tab issue
39
	@if test `id -u` = 0 ; then \
202.1.24 by Monty Taylor
Changed MKDIR_P to mkinstalldir
40
		chown $(MYSQLD_USER) $(DESTDIR)$(localstatedir) ;\
41
	fi
142.2.1 by Monty Taylor
Fixed Bug#248136 - We create the datadir now on install and chown it to
42
77.1.106 by Monty Taylor
Another batch of distclean fixes.
43
distclean-local:
187 by Brian Aker
Fixed tab issue
44
	@RM@ -r -f autom4te.cache
77.1.106 by Monty Taylor
Another batch of distclean fixes.
45
187 by Brian Aker
Fixed tab issue
46
.PHONY: test \
47
    test-force \
48
    test-full \
49
    test-force-full \
50
    test-force-mem \
51
    test-pl \
52
    test-force-pl \
53
    test-full-pl \
54
    test-force-full-pl \
55
    test-force-pl-mem \
56
    test-ps test-nr \
57
    test-pr test-ns \
58
    test-binlog-statement \
59
    test-ext-funcs \
60
    test-ext-rpl \
61
    test-ext-jp \
62
    test-ext-stress \
63
    test-ext \
64
    test-embedded \
65
    test-fast \
66
    test-fast-cursor \
67
    test-fast-view \
68
    test-full-qa
1 by brian
clean slate
69
70
# Target 'test' will run the regression test suite using the built server.
71
#
72
# If you are running in a shared environment, users can avoid clashing
73
# port numbers by setting individual small numbers 1-100 to the
168 by Brian Aker
Rename of test (better tab completion!)
74
# environment variable MTR_BUILD_THREAD. The script "test-run"
1 by brian
clean slate
75
# will then calculate the various port numbers it needs from this,
76
# making sure each user use different ports.
77
78
test-nr:
187 by Brian Aker
Fixed tab issue
79
	cd tests ; \
80
	  ./test-run $(force) --mysqld=--binlog-format=row
1 by brian
clean slate
81
82
test-ns:
187 by Brian Aker
Fixed tab issue
83
	cd tests ; \
84
	  ./test-run $(force) $(mem) --mysqld=--binlog-format=mixed
1 by brian
clean slate
85
86
test-binlog-statement:
187 by Brian Aker
Fixed tab issue
87
	cd tests ; \
88
	  ./test-run $(force) --mysqld=--binlog-format=statement
1 by brian
clean slate
89
53.2.5 by Monty Taylor
Add Jay's test optoins at the target of make test.
90
test: test-drizzle
91
92
test-drizzle:
187 by Brian Aker
Fixed tab issue
93
	cd tests ; \
236.1.22 by Monty Taylor
A couple of changes to move the actual test code to the tests dir and attempt
94
	$(MAKE) $(AM_MAKEFLAGS) test