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
21
testdir = $(testroot)/mysql-test
30
lib/v1/mysql-test-run.pl \
33
lib/v1/mtr_report.pl \
37
lib/v1/mtr_stress.pl \
38
lib/v1/ndb_config_1_node.ini \
39
lib/v1/ndb_config_2_node.ini \
44
lib/v1/mtr_process.pl \
45
lib/v1/mtr_unique.pl \
56
lib/My/ConfigFactory.pm \
63
lib/My/SafeProcess.pm \
67
lib/My/SafeProcess/Base.pm \
68
lib/My/SafeProcess/safe_process.pl
70
SUBDIRS = lib/My/SafeProcess
76
# List of directories containing test + result files and the
77
# related test data files that should be copied
78
TEST_DIRS = t r include std_data std_data/parts collections \
79
std_data/ndb_backup50 std_data/ndb_backup51 \
80
std_data/ndb_backup51_data_be std_data/ndb_backup51_data_le \
82
extra/binlog_tests/ extra/rpl_tests \
83
suite/binlog suite/binlog/t suite/binlog/r suite/binlog/std_data \
84
suite/bugs suite/bugs/data suite/bugs/t suite/bugs/r \
86
suite/funcs_1 suite/funcs_1/bitdata \
87
suite/funcs_1/include suite/funcs_1/lib suite/funcs_1/r \
88
suite/funcs_1/t suite/funcs_1/views suite/funcs_1/cursors \
89
suite/funcs_1/datadict suite/funcs_1/storedproc suite/funcs_1/triggers \
90
suite/funcs_2 suite/funcs_2/charset suite/funcs_2/data \
91
suite/funcs_2/include suite/funcs_2/lib suite/funcs_2/r \
93
suite/jp suite/jp/t suite/jp/r suite/jp/std_data suite/jp/include \
94
suite/manual/t suite/manual/r \
95
suite/ndb_team suite/ndb_team/t suite/ndb_team/r \
96
suite/rpl suite/rpl/include suite/rpl/r \
98
suite/stress/include suite/stress/t suite/stress/r \
99
suite/ndb suite/ndb/t suite/ndb/r \
100
suite/rpl_ndb suite/rpl_ndb/t suite/rpl_ndb/r \
101
suite/parts suite/parts/t suite/parts/r suite/parts/inc \
102
suite/innodb suite/innodb/t suite/innodb/r suite/innodb/include
104
# Used by dist-hook and install-data-local to copy all
105
# test files into either dist or install directory
107
@if test -z "$(INSTALL_TO_DIR)"; then \
108
echo "Set INSTALL_TO_DIR!" && exit 1; \
110
@for dir in $(TEST_DIRS); do \
111
from_dir="$(srcdir)/$$dir"; \
112
to_dir="$(INSTALL_TO_DIR)/$$dir"; \
113
$(mkinstalldirs) "$$to_dir"; \
114
for f in `(cd $$from_dir && ls)`; do \
115
if test -f "$$from_dir/$$f"; then \
116
$(INSTALL_DATA) "$$from_dir/$$f" "$$to_dir/$$f" ; \
122
$(MAKE) INSTALL_TO_DIR="$(distdir)" install_test_files
125
$(MAKE) INSTALL_TO_DIR="$(DESTDIR)$(testdir)" install_test_files
128
@RM@ -f -r $(DESTDIR)$(testdir)
130
# mtr - a shortcut for executing mysql-test-run.pl
133
$(LN_S) mysql-test-run.pl mtr
135
# mysql-test-run - a shortcut for executing mysql-test-run.pl
137
$(RM) -f mysql-test-run
138
$(LN_S) mysql-test-run.pl mysql-test-run
140
# Don't update the files from bitkeeper