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 = mysql-test-run-shell.sh install_test_db.sh \
25
valgrind.supp $(PRESCRIPTS)
26
EXTRA_DIST = $(EXTRA_SCRIPTS) suite
27
GENSCRIPTS = mysql-test-run-shell install_test_db mtr mysql-test-run
28
PRESCRIPTS = mysql-test-run.pl mysql-stress-test.pl
29
test_SCRIPTS = $(GENSCRIPTS) $(PRESCRIPTS)
30
CLEANFILES = $(GENSCRIPTS)
32
INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I..
38
$(distdir)/extra/binlog_tests \
39
$(distdir)/extra/rpl_tests \
43
$(distdir)/std_data/parts \
46
-$(INSTALL_DATA) $(srcdir)/t/*.def $(distdir)/t
47
$(INSTALL_DATA) $(srcdir)/t/*.test $(distdir)/t
48
-$(INSTALL_DATA) $(srcdir)/t/*.imtest $(distdir)/t
49
$(INSTALL_DATA) $(srcdir)/t/*.sql $(distdir)/t
50
-$(INSTALL_DATA) $(srcdir)/t/*.disabled $(distdir)/t
51
-$(INSTALL_DATA) $(srcdir)/t/*.opt $(srcdir)/t/*.slave-mi $(distdir)/t
52
-$(INSTALL_SCRIPT) $(srcdir)/t/*.sh $(distdir)/t
53
$(INSTALL_DATA) $(srcdir)/extra/binlog_tests/*.test $(distdir)/extra/binlog_tests
54
$(INSTALL_DATA) $(srcdir)/extra/rpl_tests/*.test $(distdir)/extra/rpl_tests
55
-$(INSTALL_DATA) $(srcdir)/extra/binlog_tests/*.opt $(distdir)/extra/binlog_tests
56
-$(INSTALL_DATA) $(srcdir)/extra/rpl_tests/*.opt $(distdir)/extra/rpl_tests
57
$(INSTALL_DATA) $(srcdir)/include/*.inc $(distdir)/include
58
$(INSTALL_DATA) $(srcdir)/include/*.sql $(distdir)/include
59
$(INSTALL_DATA) $(srcdir)/include/*.test $(distdir)/include
60
$(INSTALL_DATA) $(srcdir)/r/*.result $(srcdir)/r/*.require $(distdir)/r
61
$(INSTALL_DATA) $(srcdir)/std_data/Moscow_leap $(distdir)/std_data
62
$(INSTALL_DATA) $(srcdir)/std_data/Index.xml $(distdir)/std_data
63
$(INSTALL_DATA) $(srcdir)/std_data/*.dat $(srcdir)/std_data/*.000001 $(distdir)/std_data
64
$(INSTALL_DATA) $(srcdir)/std_data/des_key_file $(distdir)/std_data
65
$(INSTALL_DATA) $(srcdir)/std_data/*.pem $(distdir)/std_data
66
$(INSTALL_DATA) $(srcdir)/std_data/*.frm $(distdir)/std_data
67
$(INSTALL_DATA) $(srcdir)/std_data/*.MY* $(distdir)/std_data
68
$(INSTALL_DATA) $(srcdir)/std_data/*.cnf $(distdir)/std_data
69
$(INSTALL_DATA) $(srcdir)/std_data/parts/part_* $(distdir)/std_data/parts
70
$(INSTALL_DATA) $(srcdir)/lib/*.pl $(distdir)/lib
71
$(INSTALL_DATA) $(srcdir)/lib/My/*.pm $(distdir)/lib/My
72
-rm -rf `find $(distdir)/suite -type d -name SCCS` $(distdir)/suite/row_lock
76
$(DESTDIR)$(testdir)/t \
77
$(DESTDIR)$(testdir)/extra/binlog_tests \
78
$(DESTDIR)$(testdir)/extra/rpl_tests \
79
$(DESTDIR)$(testdir)/r \
80
$(DESTDIR)$(testdir)/include \
81
$(DESTDIR)$(testdir)/std_data \
82
$(DESTDIR)$(testdir)/std_data/parts \
83
$(DESTDIR)$(testdir)/lib \
84
$(DESTDIR)$(testdir)/lib/My
85
$(INSTALL_DATA) $(srcdir)/README $(DESTDIR)$(testdir)
86
-$(INSTALL_DATA) $(srcdir)/t/*.def $(DESTDIR)$(testdir)/t
87
$(INSTALL_DATA) $(srcdir)/t/*.test $(DESTDIR)$(testdir)/t
88
-$(INSTALL_DATA) $(srcdir)/t/*.imtest $(DESTDIR)$(testdir)/t
89
$(INSTALL_DATA) $(srcdir)/t/*.sql $(DESTDIR)$(testdir)/t
90
-$(INSTALL_DATA) $(srcdir)/t/*.disabled $(DESTDIR)$(testdir)/t
91
-$(INSTALL_DATA) $(srcdir)/t/*.opt $(DESTDIR)$(testdir)/t
92
-$(INSTALL_SCRIPT) $(srcdir)/t/*.sh $(DESTDIR)$(testdir)/t
93
-$(INSTALL_DATA) $(srcdir)/t/*.slave-mi $(DESTDIR)$(testdir)/t
94
$(INSTALL_DATA) $(srcdir)/r/*.result $(DESTDIR)$(testdir)/r
95
$(INSTALL_DATA) $(srcdir)/r/*.require $(DESTDIR)$(testdir)/r
96
$(INSTALL_DATA) $(srcdir)/extra/binlog_tests/*.test $(DESTDIR)$(testdir)/extra/binlog_tests
97
$(INSTALL_DATA) $(srcdir)/extra/rpl_tests/*.test $(DESTDIR)$(testdir)/extra/rpl_tests
98
-$(INSTALL_DATA) $(srcdir)/extra/binlog_tests/*.opt $(DESTDIR)$(testdir)/extra/binlog_tests
99
-$(INSTALL_DATA) $(srcdir)/extra/rpl_tests/*.opt $(DESTDIR)$(testdir)/extra/rpl_tests
100
$(INSTALL_DATA) $(srcdir)/include/*.inc $(DESTDIR)$(testdir)/include
101
$(INSTALL_DATA) $(srcdir)/include/*.sql $(DESTDIR)$(testdir)/include
102
$(INSTALL_DATA) $(srcdir)/include/*.test $(DESTDIR)$(testdir)/include
103
$(INSTALL_DATA) $(srcdir)/std_data/*.dat $(DESTDIR)$(testdir)/std_data
104
$(INSTALL_DATA) $(srcdir)/std_data/*.*001 $(DESTDIR)$(testdir)/std_data
105
$(INSTALL_DATA) $(srcdir)/std_data/*.cnf $(DESTDIR)$(testdir)/std_data
106
$(INSTALL_DATA) $(srcdir)/std_data/des_key_file $(DESTDIR)$(testdir)/std_data
107
$(INSTALL_DATA) $(srcdir)/std_data/Moscow_leap $(DESTDIR)$(testdir)/std_data
108
$(INSTALL_DATA) $(srcdir)/std_data/Index.xml $(DESTDIR)$(testdir)/std_data
109
$(INSTALL_DATA) $(srcdir)/std_data/*.pem $(DESTDIR)$(testdir)/std_data
110
$(INSTALL_DATA) $(srcdir)/std_data/*.frm $(DESTDIR)$(testdir)/std_data
111
$(INSTALL_DATA) $(srcdir)/std_data/*.MY* $(DESTDIR)$(testdir)/std_data
112
$(INSTALL_DATA) $(srcdir)/std_data/*.cnf $(DESTDIR)$(testdir)/std_data
113
$(INSTALL_DATA) $(srcdir)/std_data/parts/part_* $(DESTDIR)$(testdir)/std_data/parts
114
$(INSTALL_DATA) $(srcdir)/lib/*.pl $(DESTDIR)$(testdir)/lib
115
$(INSTALL_DATA) $(srcdir)/lib/My/*.pm $(DESTDIR)$(testdir)/lib/My
116
for f in `(cd $(srcdir); find suite -type f | egrep -v 'SCCS|row_lock')`; \
118
d=$(DESTDIR)$(testdir)/`dirname $$f`; \
120
$(INSTALL_DATA) $(srcdir)/$$f $$d ; \
124
@RM@ -f -r $(DESTDIR)$(testdir)
126
# mtr - a shortcut for executing mysql-test-run.pl
129
$(LN_S) mysql-test-run.pl mtr
131
# mysql-test-run - a shortcut for executing mysql-test-run.pl
133
$(RM) -f mysql-test-run
134
$(LN_S) mysql-test-run.pl mysql-test-run
141
-e 's!@''testdir''@!$(testdir)!g' \
142
-e 's!@''bindir''@!$(bindir)!g' \
143
-e 's!@''scriptdir''@!$(bindir)!g' \
144
-e 's!@''prefix''@!$(prefix)!g' \
145
-e 's!@''datadir''@!$(datadir)!g' \
146
-e 's!@''localstatedir''@!$(localstatedir)!g' \
147
-e 's!@''libexecdir''@!$(libexecdir)!g' \
148
-e 's!@''PERL''@!@PERL@!' \
149
-e 's!@''VERSION''@!@VERSION@!' \
150
-e 's!@''MYSQL_TCP_PORT''@!@MYSQL_TCP_PORT@!' \
151
-e 's!@''MYSQL_TCP_PORT_DEFAULT''@!@MYSQL_TCP_PORT_DEFAULT@!' \
152
-e 's!@''MYSQL_BASE_VERSION''@!@MYSQL_BASE_VERSION@!' \
153
-e 's!@''MYSQL_TCP_PORT''@!@MYSQL_TCP_PORT@!' \
154
-e 's!@''MYSQL_NO_DASH_VERSION''@!@MYSQL_NO_DASH_VERSION@!' \
155
-e 's!@''MYSQL_SERVER_SUFFIX''@!@MYSQL_SERVER_SUFFIX@!' \
156
-e 's!@''USE_NDBCLUSTER''@!@TEST_NDBCLUSTER@!g' \
161
# Don't update the files from bitkeeper