~drizzle-trunk/drizzle/development

1311.1.3 by Brian Aker
Small update for test-run.pl
1
# vim:ft=automake
1 by brian
clean slate
2
# Copyright (C) 2000-2006 MySQL AB
1999.6.1 by kalebral at gmail
update Copyright strings to a more common format to help with creating the master debian copyright file
3
# Copyright (C) 2010 Monty Taylor
1 by brian
clean slate
4
#
5
# This library is free software; you can redistribute it and/or
6
# modify it under the terms of the GNU Library General Public
7
# License as published by the Free Software Foundation; version 2
8
# of the License.
9
#
10
# This library is distributed in the hope that it will be useful,
11
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
# Library General Public License for more details.
14
#
15
# You should have received a copy of the GNU Library General Public
16
# License along with this library; if not, write to the Free
1802.10.2 by Monty Taylor
Update all of the copyright headers to include the correct address.
17
# Software Foundation, Inc., 51 Franklin Place - Suite 330, Boston,
18
# MA 02110-1301, USA
1 by brian
clean slate
19
20
benchdir_root=		$(prefix)
21
testdir =	        $(benchdir_root)/mysql-test
1192.3.55 by Robert Collins
Merged from Robert: changed subdir make files to be included makefiles.
22
EXTRA_SCRIPTS = 	tests/valgrind.supp $(PRESCRIPTS)
1241.11.2 by Monty Taylor
Fixed symlinks.
23
GENSCRIPTS =		tests/dtr tests/mtr tests/test-run
1192.3.55 by Robert Collins
Merged from Robert: changed subdir make files to be included makefiles.
24
PRESCRIPTS =		tests/test-run.pl tests/stress-test.pl
1093.9.13 by Monty Taylor
pandora-build v0.42 - Started splitting out plugin system into pandora-build
25
PLUGIN_TESTS =		$(pandora_plugin_test_list)
1890.2.53 by Stewart Smith
merge trunk
26
NORMAL_TESTS =		main,bool_type,cast,ddl_transactions,flush_tables,identifiers,jp,mysql_compatibility,regression,tamil,time_type,unsigned_integer_type,uuid_type,microtime_type,$(PLUGIN_TESTS)
2057.2.7 by Brian Aker
Remove need for committed type for microtime in proto.
27
ALL_TESTS =		main,big,jp,tamil,regression,microtime_type,$(PLUGIN_TESTS)
236.1.36 by Monty Taylor
Removed mysql-test from the install.
28
noinst_SCRIPTS =	$(GENSCRIPTS) $(PRESCRIPTS)
1192.3.55 by Robert Collins
Merged from Robert: changed subdir make files to be included makefiles.
29
CLEANFILES += 		$(GENSCRIPTS) tests/mtr
77.1.32 by Monty Taylor
Merged from trunk.
30
1192.3.60 by Monty Taylor
Fixed distcheck.
31
TEST_RUN= $(PERL) -I../$(top_srcdir)/tests/lib \
32
		../${top_srcdir}/tests/test-run.pl \
1627.2.3 by Monty Taylor
Just added top_srcdir and top_builddir support to test-run.pl.
33
		--top-srcdir=../${top_srcdir} \
34
		--top-builddir=../${top_builddir} \
1976.6.3 by Brian Aker
Updating the test system to allow for "make test-mem"
35
		--vardir=../${top_builddir}/tests/var \
2092 by Brian Aker
Add in reorder and see if this will speed up builds at all.
36
		--reorder \
1192.3.60 by Monty Taylor
Fixed distcheck.
37
		--suitepath=../${top_srcdir}/plugin \
38
		--testdir=../${top_srcdir}/tests \
1819.3.1 by patrick crews
Fixed include file causing test failure + updated tests/include.am to use dtr vs. mtr
39
		--dtr-build-thread=$$$$
685.1.13 by Monty Taylor
Attempt at some VPATH support for test suite.
40
1976.6.3 by Brian Aker
Updating the test system to allow for "make test-mem"
41
TEST_RUN_MEM= $(PERL) -I../$(top_srcdir)/tests/lib \
42
	      ../${top_srcdir}/tests/test-run.pl \
43
	      --top-srcdir=../${top_srcdir} \
44
	      --top-builddir=../${top_builddir} \
45
	      --mem \
2092 by Brian Aker
Add in reorder and see if this will speed up builds at all.
46
	      --reorder \
1976.6.3 by Brian Aker
Updating the test system to allow for "make test-mem"
47
	      --suitepath=../${top_srcdir}/plugin \
48
	      --testdir=../${top_srcdir}/tests \
49
	      --dtr-build-thread=$$$$
50
1192.3.55 by Robert Collins
Merged from Robert: changed subdir make files to be included makefiles.
51
EXTRA_DIST += \
685.1.8 by Monty Taylor
Added missing things to Makefiles for distcheck.
52
	$(EXTRA_SCRIPTS) \
1530.2.2 by Monty Taylor
Removed cruft from the tree that we don't need. Also, add things to
53
	${srcdir}/tests/README.stress \
1192.3.62 by Monty Taylor
Removed a bunch of files that are cruft, useless or just plain suck.
54
	${srcdir}/tests/suite \
55
	${srcdir}/tests/t \
56
	${srcdir}/tests/include/*.inc \
57
	${srcdir}/tests/include/*.sql \
58
	${srcdir}/tests/include/*.test \
59
	${srcdir}/tests/r/*.result \
60
	${srcdir}/tests/r/*.require \
1530.2.2 by Monty Taylor
Removed cruft from the tree that we don't need. Also, add things to
61
	${srcdir}/tests/r/pbxt/*result \
1192.3.62 by Monty Taylor
Removed a bunch of files that are cruft, useless or just plain suck.
62
	${srcdir}/tests/std_data \
63
	${srcdir}/tests/lib/*.pl \
1840.1.3 by Monty Taylor
Added support for valgrind suppressions.
64
	${srcdir}/tests/lib/My/*.pm \
65
	tests/strip-valgrind
685.1.8 by Monty Taylor
Added missing things to Makefiles for distcheck.
66
1471.3.1 by Monty Taylor
Latest pandora-build. Moves the lint check to only run distcheck.
67
check-local: test-drizzle
1 by brian
clean slate
68
168 by Brian Aker
Rename of test (better tab completion!)
69
# dtr - a shortcut for executing test-run.pl
1192.3.55 by Robert Collins
Merged from Robert: changed subdir make files to be included makefiles.
70
tests/dtr:
1241.11.2 by Monty Taylor
Fixed symlinks.
71
	$(RM) -f tests/dtr
72
	$(LN_S) test-run.pl tests/dtr
73
74
tests/var:
75
	$(mkdir_p) tests/var
76
77
tests/mtr:
78
	$(RM) -f tests/mtr
79
	$(LN_S) test-run.pl tests/mtr
1 by brian
clean slate
80
168 by Brian Aker
Rename of test (better tab completion!)
81
# test-run - a shortcut for executing test-run.pl
1241.11.2 by Monty Taylor
Fixed symlinks.
82
tests/test-run: tests/var
1192.3.55 by Robert Collins
Merged from Robert: changed subdir make files to be included makefiles.
83
	$(RM) -f tests/test-run
1241.11.2 by Monty Taylor
Fixed symlinks.
84
	$(LN_S) test-run.pl tests/test-run
1 by brian
clean slate
85
236.1.22 by Monty Taylor
A couple of changes to move the actual test code to the tests dir and attempt
86
87
.PHONY: test \
1014.5.8 by Lee Bieber
added a test-all target that runs all the test suites specified by macro
88
	test-all \
89
	test-big \
942.1.4 by Monty Taylor
Moved big tests to big suite. Added make target "make test-big" to allow for easy running of the big tests.
90
	test-drizzle \
1014.5.8 by Lee Bieber
added a test-all target that runs all the test suites specified by macro
91
	test-plugins
236.1.22 by Monty Taylor
A couple of changes to move the actual test code to the tests dir and attempt
92
93
# Target 'test' will run the regression test suite using the built server.
94
#
95
# If you are running in a shared environment, users can avoid clashing
96
# port numbers by setting individual small numbers 1-100 to the
97
# environment variable MTR_BUILD_THREAD. The script "test-run"
98
# will then calculate the various port numbers it needs from this,
99
# making sure each user use different ports.
100
1471.3.1 by Monty Taylor
Latest pandora-build. Moves the lint check to only run distcheck.
101
test: check
236.1.22 by Monty Taylor
A couple of changes to move the actual test code to the tests dir and attempt
102
370.1.1 by arjen at com
Initial mods for making all tests work again. Some tests adapted+added.
103
# Please keep the list of tests in alphabetical order for ease of
104
# maintenance and verification
105
1014.5.8 by Lee Bieber
added a test-all target that runs all the test suites specified by macro
106
test-all:
1192.3.60 by Monty Taylor
Fixed distcheck.
107
	( cd tests && $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --fast --force --suite=$(ALL_TESTS))
1014.5.8 by Lee Bieber
added a test-all target that runs all the test suites specified by macro
108
1976.6.3 by Brian Aker
Updating the test system to allow for "make test-mem"
109
test-mem:
110
	( cd tests && $(TEST_RUN_MEM) $(TEST_RUN_EXTRA_OPTIONS) --fast --force --suite=$(NORMAL_TESTS))
111
236.1.22 by Monty Taylor
A couple of changes to move the actual test code to the tests dir and attempt
112
test-drizzle:
1798.2.6 by Monty Taylor
Run jp and tamil suites by default. Then also fix the broken tests.
113
	( cd tests && $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --fast --force --suite=$(NORMAL_TESTS))
1111.1.1 by Monty Taylor
Added both direct subunit to junit output targets as well as the general ability to inject extra flags into test-run via environment.
114
1237.7.1 by Monty Taylor
Added Makefile-based valgrind run.
115
test-valgrind:
1840.1.3 by Monty Taylor
Added support for valgrind suppressions.
116
	( cd tests && $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --valgrind --force --suite=$(NORMAL_TESTS) && python strip-valgrind)
1237.7.1 by Monty Taylor
Added Makefile-based valgrind run.
117
1241.4.2 by Monty Taylor
Added make target for generating suppressions.
118
test-valgrind-suppressions:
1840.1.3 by Monty Taylor
Added support for valgrind suppressions.
119
	( cd tests && $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --valgrind --valgrind-option='--gen-suppressions=all' --valgrind-option='--show-reachable=yes' --force --suite=$(NORMAL_TESTS) && python strip-valgrind)
1241.4.2 by Monty Taylor
Added make target for generating suppressions.
120
1111.1.1 by Monty Taylor
Added both direct subunit to junit output targets as well as the general ability to inject extra flags into test-run via environment.
121
test-junitxml:
1798.2.6 by Monty Taylor
Run jp and tamil suites by default. Then also fix the broken tests.
122
	( cd tests && $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --fast --force --suite=$(NORMAL_TESTS) --subunit | subunit2junitxml --no-passthrough > junit-format.xml )
755.1.8 by Monty Taylor
Remove tests/var on distclean to make distcheck happy.
123
942.1.4 by Monty Taylor
Moved big tests to big suite. Added make target "make test-big" to allow for easy running of the big tests.
124
test-big:
1192.3.60 by Monty Taylor
Fixed distcheck.
125
	( cd tests && $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --fast --force --suite=big )
1111.1.1 by Monty Taylor
Added both direct subunit to junit output targets as well as the general ability to inject extra flags into test-run via environment.
126
127
test-big-junitxml:
1192.3.60 by Monty Taylor
Fixed distcheck.
128
	( cd tests && $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --fast --force --suite=big --subunit | subunit2junitxml --no-passthrough > junit-format-big.xml )
942.1.4 by Monty Taylor
Moved big tests to big suite. Added make target "make test-big" to allow for easy running of the big tests.
129
1277.1.1 by Lee Bieber
add target to japanese tests
130
test-jp:
131
	( cd tests && $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --fast --force --suite=jp )
132
1014.5.5 by Lee Bieber
add tests for hello_world plugin and add target in tests/Makefile to run all plugin tests
133
test-plugins:
1192.3.60 by Monty Taylor
Fixed distcheck.
134
	( cd tests && $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --fast --force --suite=$(PLUGIN_TESTS) )
1014.5.5 by Lee Bieber
add tests for hello_world plugin and add target in tests/Makefile to run all plugin tests
135
1192.3.55 by Robert Collins
Merged from Robert: changed subdir make files to be included makefiles.
136
distclean-local: nukevar
137
138
nukevar:
1192.3.62 by Monty Taylor
Removed a bunch of files that are cruft, useless or just plain suck.
139
	rm -rf tests/var
1192.3.55 by Robert Collins
Merged from Robert: changed subdir make files to be included makefiles.
140
141
.PHONY: nukevar