1
# Copyright (C) 2000-2006 MySQL AB
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
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.
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,
18
## Process this file with automake to create Makefile.in
22
benchdir_root= $(prefix)
23
testdir = $(benchdir_root)/mysql-test
24
EXTRA_SCRIPTS = valgrind.supp $(PRESCRIPTS)
25
EXTRA_DIST = $(EXTRA_SCRIPTS) suite
26
GENSCRIPTS = install_test_db dtr test-run
27
PRESCRIPTS = test-run.pl stress-test.pl
28
noinst_SCRIPTS = $(GENSCRIPTS) $(PRESCRIPTS)
29
CLEANFILES = $(GENSCRIPTS) mtr
30
noinst_PROGRAMS = resolve_stack_dump
32
LDADD= $(top_builddir)/mysys/libmysys.la \
33
$(top_builddir)/mystrings/libmystrings.la \
41
$(distdir)/extra/binlog_tests \
42
$(distdir)/extra/rpl_tests \
46
$(distdir)/std_data/parts \
49
-$(INSTALL_DATA) $(srcdir)/t/*.def $(distdir)/t
50
$(INSTALL_DATA) $(srcdir)/t/*.test $(distdir)/t
51
-$(INSTALL_DATA) $(srcdir)/t/*.imtest $(distdir)/t
52
$(INSTALL_DATA) $(srcdir)/t/*.sql $(distdir)/t
53
-$(INSTALL_DATA) $(srcdir)/t/*.disabled $(distdir)/t
54
-$(INSTALL_DATA) $(srcdir)/t/*.opt $(srcdir)/t/*.slave-mi $(distdir)/t
55
-$(INSTALL_SCRIPT) $(srcdir)/t/*.sh $(distdir)/t
56
$(INSTALL_DATA) $(srcdir)/extra/binlog_tests/*.test $(distdir)/extra/binlog_tests
57
$(INSTALL_DATA) $(srcdir)/extra/rpl_tests/*.test $(distdir)/extra/rpl_tests
58
-$(INSTALL_DATA) $(srcdir)/extra/binlog_tests/*.opt $(distdir)/extra/binlog_tests
59
-$(INSTALL_DATA) $(srcdir)/extra/rpl_tests/*.opt $(distdir)/extra/rpl_tests
60
$(INSTALL_DATA) $(srcdir)/include/*.inc $(distdir)/include
61
$(INSTALL_DATA) $(srcdir)/include/*.sql $(distdir)/include
62
$(INSTALL_DATA) $(srcdir)/include/*.test $(distdir)/include
63
$(INSTALL_DATA) $(srcdir)/r/*.result $(srcdir)/r/*.require $(distdir)/r
64
$(INSTALL_DATA) $(srcdir)/std_data/Moscow_leap $(distdir)/std_data
65
$(INSTALL_DATA) $(srcdir)/std_data/Index.xml $(distdir)/std_data
66
$(INSTALL_DATA) $(srcdir)/std_data/*.dat $(srcdir)/std_data/*.000001 $(distdir)/std_data
67
$(INSTALL_DATA) $(srcdir)/std_data/des_key_file $(distdir)/std_data
68
$(INSTALL_DATA) $(srcdir)/std_data/*.pem $(distdir)/std_data
69
$(INSTALL_DATA) $(srcdir)/std_data/*.frm $(distdir)/std_data
70
$(INSTALL_DATA) $(srcdir)/std_data/*.MY* $(distdir)/std_data
71
$(INSTALL_DATA) $(srcdir)/std_data/*.cnf $(distdir)/std_data
72
$(INSTALL_DATA) $(srcdir)/std_data/parts/part_* $(distdir)/std_data/parts
73
$(INSTALL_DATA) $(srcdir)/lib/*.pl $(distdir)/lib
74
$(INSTALL_DATA) $(srcdir)/lib/My/*.pm $(distdir)/lib/My
76
# dtr - a shortcut for executing test-run.pl
79
$(LN_S) test-run.pl mtr
80
$(LN_S) test-run.pl dtr
82
# test-run - a shortcut for executing test-run.pl
85
$(LN_S) test-run.pl test-run
100
test-binlog-statement \
112
# Target 'test' will run the regression test suite using the built server.
114
# If you are running in a shared environment, users can avoid clashing
115
# port numbers by setting individual small numbers 1-100 to the
116
# environment variable MTR_BUILD_THREAD. The script "test-run"
117
# will then calculate the various port numbers it needs from this,
118
# making sure each user use different ports.
122
./test-run $(force) --mysqld=--binlog-format=row
126
./test-run $(force) $(mem) --mysqld=--binlog-format=mixed
128
test-binlog-statement:
130
./test-run $(force) --mysqld=--binlog-format=statement
134
# Please keep the list of tests in alphabetical order for ease of
135
# maintenance and verification
138
$(PERL) -I$(top_srcdir)/tests/lib \
139
$(top_srcdir)/tests/test-run.pl --fast --reorder --force \
142
bench_count_distinct \
147
consistent_snapshot \
165
group_min_max_innodb \
166
heap_auto_increment \
171
innodb-semi-consistent \
172
innodb_timeout_rollback \
184
lock_tables_lost_commit \
194
unsafe_binlog_innodb \
196
variables-notembedded