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) |
2055.1.1
by Lee Bieber
Merge Stewart - add in more tests from the suites directory |
26 |
NORMAL_TESTS = main,bool_type,cast,flush_tables,identifiers,jp,mysql_compatibility,regression,tamil,time_type,unsigned_integer_type,uuid_type,$(PLUGIN_TESTS) |
1812.4.1
by Brian Aker
This fixes the IS key_column_usage table to correctly respond to FK. |
27 |
ALL_TESTS = main,big,jp,tamil,regression,$(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 \ |
1192.3.60
by Monty Taylor
Fixed distcheck. |
36 |
--suitepath=../${top_srcdir}/plugin \ |
37 |
--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 |
38 |
--dtr-build-thread=$$$$ |
685.1.13
by Monty Taylor
Attempt at some VPATH support for test suite. |
39 |
|
1976.6.3
by Brian Aker
Updating the test system to allow for "make test-mem" |
40 |
TEST_RUN_MEM= $(PERL) -I../$(top_srcdir)/tests/lib \ |
41 |
../${top_srcdir}/tests/test-run.pl \ |
|
42 |
--top-srcdir=../${top_srcdir} \ |
|
43 |
--top-builddir=../${top_builddir} \ |
|
44 |
--mem \
|
|
45 |
--suitepath=../${top_srcdir}/plugin \ |
|
46 |
--testdir=../${top_srcdir}/tests \ |
|
47 |
--dtr-build-thread=$$$$ |
|
48 |
||
1192.3.55
by Robert Collins
Merged from Robert: changed subdir make files to be included makefiles. |
49 |
EXTRA_DIST += \ |
685.1.8
by Monty Taylor
Added missing things to Makefiles for distcheck. |
50 |
$(EXTRA_SCRIPTS) \ |
1530.2.2
by Monty Taylor
Removed cruft from the tree that we don't need. Also, add things to |
51 |
${srcdir}/tests/README.stress \ |
1192.3.62
by Monty Taylor
Removed a bunch of files that are cruft, useless or just plain suck. |
52 |
${srcdir}/tests/suite \ |
53 |
${srcdir}/tests/t \ |
|
54 |
${srcdir}/tests/include/*.inc \ |
|
55 |
${srcdir}/tests/include/*.sql \ |
|
56 |
${srcdir}/tests/include/*.test \ |
|
57 |
${srcdir}/tests/r/*.result \ |
|
58 |
${srcdir}/tests/r/*.require \ |
|
1530.2.2
by Monty Taylor
Removed cruft from the tree that we don't need. Also, add things to |
59 |
${srcdir}/tests/r/pbxt/*result \ |
1192.3.62
by Monty Taylor
Removed a bunch of files that are cruft, useless or just plain suck. |
60 |
${srcdir}/tests/std_data \ |
61 |
${srcdir}/tests/lib/*.pl \ |
|
1840.1.3
by Monty Taylor
Added support for valgrind suppressions. |
62 |
${srcdir}/tests/lib/My/*.pm \ |
63 |
tests/strip-valgrind |
|
685.1.8
by Monty Taylor
Added missing things to Makefiles for distcheck. |
64 |
|
1471.3.1
by Monty Taylor
Latest pandora-build. Moves the lint check to only run distcheck. |
65 |
check-local: test-drizzle |
1
by brian
clean slate |
66 |
|
168
by Brian Aker
Rename of test (better tab completion!) |
67 |
# 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. |
68 |
tests/dtr: |
1241.11.2
by Monty Taylor
Fixed symlinks. |
69 |
$(RM) -f tests/dtr |
70 |
$(LN_S) test-run.pl tests/dtr |
|
71 |
||
72 |
tests/var: |
|
73 |
$(mkdir_p) tests/var |
|
74 |
||
75 |
tests/mtr: |
|
76 |
$(RM) -f tests/mtr |
|
77 |
$(LN_S) test-run.pl tests/mtr |
|
1
by brian
clean slate |
78 |
|
168
by Brian Aker
Rename of test (better tab completion!) |
79 |
# test-run - a shortcut for executing test-run.pl
|
1241.11.2
by Monty Taylor
Fixed symlinks. |
80 |
tests/test-run: tests/var |
1192.3.55
by Robert Collins
Merged from Robert: changed subdir make files to be included makefiles. |
81 |
$(RM) -f tests/test-run |
1241.11.2
by Monty Taylor
Fixed symlinks. |
82 |
$(LN_S) test-run.pl tests/test-run |
1
by brian
clean slate |
83 |
|
236.1.22
by Monty Taylor
A couple of changes to move the actual test code to the tests dir and attempt |
84 |
|
85 |
.PHONY: test \ |
|
1014.5.8
by Lee Bieber
added a test-all target that runs all the test suites specified by macro |
86 |
test-all \ |
87 |
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. |
88 |
test-drizzle \ |
1014.5.8
by Lee Bieber
added a test-all target that runs all the test suites specified by macro |
89 |
test-plugins |
236.1.22
by Monty Taylor
A couple of changes to move the actual test code to the tests dir and attempt |
90 |
|
91 |
# Target 'test' will run the regression test suite using the built server.
|
|
92 |
#
|
|
93 |
# If you are running in a shared environment, users can avoid clashing
|
|
94 |
# port numbers by setting individual small numbers 1-100 to the
|
|
95 |
# environment variable MTR_BUILD_THREAD. The script "test-run"
|
|
96 |
# will then calculate the various port numbers it needs from this,
|
|
97 |
# making sure each user use different ports.
|
|
98 |
||
1471.3.1
by Monty Taylor
Latest pandora-build. Moves the lint check to only run distcheck. |
99 |
test: check |
236.1.22
by Monty Taylor
A couple of changes to move the actual test code to the tests dir and attempt |
100 |
|
370.1.1
by arjen at com
Initial mods for making all tests work again. Some tests adapted+added. |
101 |
# Please keep the list of tests in alphabetical order for ease of
|
102 |
# maintenance and verification
|
|
103 |
||
1014.5.8
by Lee Bieber
added a test-all target that runs all the test suites specified by macro |
104 |
test-all: |
1192.3.60
by Monty Taylor
Fixed distcheck. |
105 |
( 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 |
106 |
|
1976.6.3
by Brian Aker
Updating the test system to allow for "make test-mem" |
107 |
test-mem: |
108 |
( cd tests && $(TEST_RUN_MEM) $(TEST_RUN_EXTRA_OPTIONS) --fast --force --suite=$(NORMAL_TESTS)) |
|
109 |
||
236.1.22
by Monty Taylor
A couple of changes to move the actual test code to the tests dir and attempt |
110 |
test-drizzle: |
1798.2.6
by Monty Taylor
Run jp and tamil suites by default. Then also fix the broken tests. |
111 |
( 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. |
112 |
|
1237.7.1
by Monty Taylor
Added Makefile-based valgrind run. |
113 |
test-valgrind: |
1840.1.3
by Monty Taylor
Added support for valgrind suppressions. |
114 |
( 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. |
115 |
|
1241.4.2
by Monty Taylor
Added make target for generating suppressions. |
116 |
test-valgrind-suppressions: |
1840.1.3
by Monty Taylor
Added support for valgrind suppressions. |
117 |
( 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. |
118 |
|
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. |
119 |
test-junitxml: |
1798.2.6
by Monty Taylor
Run jp and tamil suites by default. Then also fix the broken tests. |
120 |
( 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. |
121 |
|
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. |
122 |
test-big: |
1192.3.60
by Monty Taylor
Fixed distcheck. |
123 |
( 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. |
124 |
|
125 |
test-big-junitxml: |
|
1192.3.60
by Monty Taylor
Fixed distcheck. |
126 |
( 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. |
127 |
|
1277.1.1
by Lee Bieber
add target to japanese tests |
128 |
test-jp: |
129 |
( cd tests && $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --fast --force --suite=jp ) |
|
130 |
||
1014.5.5
by Lee Bieber
add tests for hello_world plugin and add target in tests/Makefile to run all plugin tests |
131 |
test-plugins: |
1192.3.60
by Monty Taylor
Fixed distcheck. |
132 |
( 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 |
133 |
|
1192.3.55
by Robert Collins
Merged from Robert: changed subdir make files to be included makefiles. |
134 |
distclean-local: nukevar |
135 |
||
136 |
nukevar: |
|
1192.3.62
by Monty Taylor
Removed a bunch of files that are cruft, useless or just plain suck. |
137 |
rm -rf tests/var |
1192.3.55
by Robert Collins
Merged from Robert: changed subdir make files to be included makefiles. |
138 |
|
139 |
.PHONY: nukevar |