~drizzle-trunk/drizzle/development

1 by brian
clean slate
1
# Copyright (C) 2000-2006 MySQL AB
2
#
3
# This library is free software; you can redistribute it and/or
4
# modify it under the terms of the GNU Library General Public
5
# License as published by the Free Software Foundation; version 2
6
# of the License.
7
#
8
# This library is distributed in the hope that it will be useful,
9
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11
# Library General Public License for more details.
12
#
13
# You should have received a copy of the GNU Library General Public
14
# License along with this library; if not, write to the Free
15
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
16
# MA 02111-1307, USA
17
685.1.35 by Monty Taylor
Added ${srcdir} to extra dist in tests. Weird.
18
srcdir=			${top_srcdir}/tests
1 by brian
clean slate
19
benchdir_root=		$(prefix)
20
testdir =	        $(benchdir_root)/mysql-test
77.1.32 by Monty Taylor
Merged from trunk.
21
EXTRA_SCRIPTS = 	valgrind.supp $(PRESCRIPTS)
168 by Brian Aker
Rename of test (better tab completion!)
22
GENSCRIPTS =		install_test_db dtr test-run
23
PRESCRIPTS =		test-run.pl stress-test.pl
236.1.36 by Monty Taylor
Removed mysql-test from the install.
24
noinst_SCRIPTS =	$(GENSCRIPTS) $(PRESCRIPTS)
77.1.105 by Monty Taylor
Added more things to distclean targets so that it really does a distclean.
25
CLEANFILES = 		$(GENSCRIPTS) mtr
77.1.32 by Monty Taylor
Merged from trunk.
26
noinst_PROGRAMS = 	resolve_stack_dump
590.2.19 by Super-User
Yay! Compiles on Solaris.
27
resolve_stack_dump_SOURCES = resolve_stack_dump.cc
77.1.32 by Monty Taylor
Merged from trunk.
28
264.1.3 by Monty Taylor
Removed libmysyslt.la, made mysys a noinst_ and made everything use it. It's
29
LDADD=			$(top_builddir)/mysys/libmysys.la \
266.4.3 by Monty Taylor
Removed mystringslt conv lib and replaced it with a noinst lib.
30
                        $(top_builddir)/mystrings/libmystrings.la \
264.1.20 by Monty Taylor
Added LIBINTL to tests for resolve_stack_dump.
31
			$(LIBINTL)
77.1.32 by Monty Taylor
Merged from trunk.
32
685.1.13 by Monty Taylor
Attempt at some VPATH support for test suite.
33
TEST_RUN= $(PERL) -I$(top_srcdir)/tests/lib \
34
		${top_srcdir}/tests/test-run.pl \
35
		--vardir=${top_builddir}/tests/var \
685.1.36 by Monty Taylor
Made make test rotate ports.
36
		--testdir=${top_srcdir}/tests \
37
		--mtr-build-thread=$$$$
685.1.13 by Monty Taylor
Attempt at some VPATH support for test suite.
38
685.1.8 by Monty Taylor
Added missing things to Makefiles for distcheck.
39
EXTRA_DIST = \
40
	$(EXTRA_SCRIPTS) \
685.1.17 by Monty Taylor
Makde mtr work in VPATH.
41
	suite \
722.2.35 by Monty Taylor
Added missing file to the dist.
42
	${srcdir}/t \
685.1.35 by Monty Taylor
Added ${srcdir} to extra dist in tests. Weird.
43
	${srcdir}/extra/rpl_tests/*.test \
44
	${srcdir}/extra/binlog_tests/*.test \
45
	${srcdir}/include/*.inc \
46
	${srcdir}/include/*.sql \
47
	${srcdir}/include/*.test \
48
	${srcdir}/r/*.result \
49
	${srcdir}/r/*.require \
50
	${srcdir}/std_data/Moscow_leap \
51
	${srcdir}/std_data/Index.xml \
52
	${srcdir}/std_data/*.dat \
53
	${srcdir}/std_data/*.000001 \
54
	${srcdir}/std_data/des_key_file \
55
	${srcdir}/std_data/*.pem \
722.2.4 by Monty Taylor
Fixed some distcheck build issues.
56
	${srcdir}/std_data/*.txt \
685.1.35 by Monty Taylor
Added ${srcdir} to extra dist in tests. Weird.
57
	${srcdir}/std_data/*.frm \
58
	${srcdir}/std_data/*.MY* \
59
	${srcdir}/std_data/*.cnf \
60
	${srcdir}/std_data/parts/part_* \
61
	${srcdir}/lib/*.pl \
62
	${srcdir}/lib/My/*.pm
685.1.8 by Monty Taylor
Added missing things to Makefiles for distcheck.
63
656.1.21 by Monty Taylor
Hooked test-suite into make check.
64
check: test-drizzle
1 by brian
clean slate
65
168 by Brian Aker
Rename of test (better tab completion!)
66
# dtr - a shortcut for executing test-run.pl
77.1.40 by Monty Taylor
More naming changes.
67
dtr:
68
	$(RM) -f mtr dtr
685.1.22 by Monty Taylor
Added testdir setting support to drizzletest.
69
	$(LN_S) ${top_srcdir}/tests/test-run.pl mtr
70
	$(LN_S) ${top_srcdir}/tests/test-run.pl dtr
760.1.1 by Kristian Nielsen
Use mkdir_p instead of MKDIR_P to not require as new autotool versions.
71
	$(mkdir_p) ${top_builddir}/tests/var
1 by brian
clean slate
72
168 by Brian Aker
Rename of test (better tab completion!)
73
# test-run - a shortcut for executing test-run.pl
74
test-run:
75
	$(RM) -f test-run
685.1.22 by Monty Taylor
Added testdir setting support to drizzletest.
76
	$(LN_S) ${top_srcdir}/tests/test-run.pl test-run
1 by brian
clean slate
77
236.1.22 by Monty Taylor
A couple of changes to move the actual test code to the tests dir and attempt
78
79
.PHONY: test \
80
    test-force \
81
    test-full \
82
    test-force-full \
83
    test-force-mem \
84
    test-pl \
85
    test-force-pl \
86
    test-full-pl \
87
    test-force-full-pl \
88
    test-force-pl-mem \
89
    test-ps test-nr \
90
    test-pr test-ns \
91
    test-binlog-statement \
92
    test-ext-funcs \
93
    test-ext-rpl \
94
    test-ext-jp \
95
    test-ext-stress \
96
    test-ext \
97
    test-embedded \
98
    test-fast \
99
    test-fast-cursor \
100
    test-fast-view \
101
    test-full-qa
102
103
# Target 'test' will run the regression test suite using the built server.
104
#
105
# If you are running in a shared environment, users can avoid clashing
106
# port numbers by setting individual small numbers 1-100 to the
107
# environment variable MTR_BUILD_THREAD. The script "test-run"
108
# will then calculate the various port numbers it needs from this,
109
# making sure each user use different ports.
110
111
test: test-drizzle
112
370.1.1 by arjen at com
Initial mods for making all tests work again. Some tests adapted+added.
113
# Please keep the list of tests in alphabetical order for ease of
114
# maintenance and verification
115
236.1.22 by Monty Taylor
A couple of changes to move the actual test code to the tests dir and attempt
116
test-drizzle:
798.2.11 by Brian Aker
Factor test-run for binlog removal
117
	  $(TEST_RUN) --fast --force --suite=main,vcol
755.1.8 by Monty Taylor
Remove tests/var on distclean to make distcheck happy.
118
119
distclean-local:
120
	rm -rf var