summaryrefslogtreecommitdiff
path: root/mysql-test/Makefile.am
blob: 58b63383a0f593bcc10f48ca9f1400cbfe8d11a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# Copyright (C) 2000-2006 MySQL AB
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; version 2
# of the License.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Library General Public License for more details.
#
# You should have received a copy of the GNU Library General Public
# License along with this library; if not, write to the Free
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA

## Process this file with automake to create Makefile.in

testdir =	$(prefix)/mysql-test

test_SCRIPTS =	mtr \
		mysql-test-run \
		mysql-test-run.pl \
		mysql-stress-test.pl

nobase_test_DATA = lib/mtr_cases.pm \
	lib/mtr_gcov.pl \
	lib/mtr_gprof.pl \
	lib/mtr_io.pl \
	lib/mtr_match.pl \
	lib/mtr_misc.pl \
	lib/mtr_process.pl \
	lib/mtr_report.pm \
	lib/mtr_stress.pl \
	lib/mtr_unique.pl \
	lib/My/ConfigFactory.pm \
	lib/My/Config.pm \
	lib/My/Find.pm \
	lib/My/Options.pm \
	lib/My/Platform.pm \
	lib/My/SafeProcess.pm \
	lib/My/File/Path.pm \
	lib/My/SafeProcess/Base.pm \
	lib/My/SafeProcess/safe_process.pl

SUBDIRS =	lib/My/SafeProcess

EXTRA_DIST =	README \
		valgrind.supp \
		$(test_SCRIPTS) \
		$(nobase_test_DATA)

# List of directories containing test + result files and the
# related test data files that should be copied
TEST_DIRS = t r include std_data std_data/parts \
	std_data/ndb_backup50 std_data/ndb_backup51 \
	std_data/ndb_backup51_data_be std_data/ndb_backup51_data_le \
	extra/binlog_tests/ extra/rpl_tests \
	suite/binlog suite/binlog/t suite/binlog/r suite/binlog/std_data \
	suite/bugs/data suite/bugs/t suite/bugs/r \
	suite/federated \
	suite/funcs_1 suite/funcs_1/bitdata suite/funcs_1/data \
	suite/funcs_1/include suite/funcs_1/lib suite/funcs_1/r \
	suite/funcs_1/t suite/funcs_1/views suite/funcs_1/cursors \
	suite/funcs_1/datadict suite/funcs_1/storedproc suite/funcs_1/triggers \
	suite/funcs_2 suite/funcs_2/charset suite/funcs_2/data \
	suite/funcs_2/include suite/funcs_2/lib suite/funcs_2/r \
	suite/funcs_2/t \
	suite/jp suite/jp/t suite/jp/r suite/jp/std_data \
	suite/manual/t suite/manual/r \
	suite/ndb_team suite/ndb_team/t suite/ndb_team/r \
	suite/rpl suite/rpl/data suite/rpl/include suite/rpl/r \
	suite/rpl/t \
	suite/stress/include suite/stress/t suite/stress/r \
	suite/ndb suite/ndb/t suite/ndb/r \
	suite/rpl_ndb suite/rpl_ndb/t suite/rpl_ndb/r \
	suite/parts suite/parts/t suite/parts/r suite/parts/inc

# Used by dist-hook and install-data-local to copy all
# test files into either dist or install directory
install_test_files:
	@if test -z "$(INSTALL_TO_DIR)"; then \
	  echo "Set INSTALL_TO_DIR!" && exit 1; \
	fi
	@for dir in $(TEST_DIRS); do \
	  from_dir="$(srcdir)/$$dir"; \
	  to_dir="$(INSTALL_TO_DIR)/$$dir"; \
	  $(mkinstalldirs) "$$to_dir"; \
	  for f in `(cd $$from_dir && ls)`; do \
	    if test -f "$$from_dir/$$f"; then \
	      $(INSTALL_DATA) "$$from_dir/$$f" "$$to_dir/$$f" ; \
	    fi; \
	  done \
	done

dist-hook:
	$(MAKE)	INSTALL_TO_DIR="$(distdir)" install_test_files

install-data-local:
	$(MAKE)	INSTALL_TO_DIR="$(DESTDIR)$(testdir)" install_test_files

uninstall-local:
	@RM@ -f -r $(DESTDIR)$(testdir)

# mtr - a shortcut for executing mysql-test-run.pl
mtr:
	$(RM) -f mtr
	$(LN_S) mysql-test-run.pl mtr

# mysql-test-run - a shortcut for executing mysql-test-run.pl
mysql-test-run:
	$(RM) -f mysql-test-run
	$(LN_S) mysql-test-run.pl mysql-test-run

# Don't update the files from bitkeeper
%::SCCS/s.%