~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to mysql-test/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright (C) 2000-2006 MySQL AB
 
2
#
 
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
 
6
# of the License.
 
7
#
 
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.
 
12
#
 
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,
 
16
# MA 02111-1307, USA
 
17
 
 
18
## Process this file with automake to create Makefile.in
 
19
 
 
20
testroot =      $(prefix)
 
21
testdir =       $(testroot)/mysql-test
 
22
 
 
23
test_SCRIPTS =  mtr \
 
24
                mysql-test-run \
 
25
                mysql-test-run.pl \
 
26
                mysql-stress-test.pl
 
27
 
 
28
nobase_test_DATA = \
 
29
        valgrind.supp \
 
30
        lib/v1/mysql-test-run.pl \
 
31
        lib/v1/mtr_cases.pl \
 
32
        lib/v1/mtr_io.pl \
 
33
        lib/v1/mtr_report.pl \
 
34
        lib/v1/My/Config.pm \
 
35
        lib/v1/mtr_gcov.pl \
 
36
        lib/v1/mtr_match.pl \
 
37
        lib/v1/mtr_stress.pl \
 
38
        lib/v1/ndb_config_1_node.ini \
 
39
        lib/v1/ndb_config_2_node.ini \
 
40
        lib/v1/mtr_gprof.pl \
 
41
        lib/v1/mtr_misc.pl \
 
42
        lib/v1/mtr_timer.pl \
 
43
        lib/v1/mtr_im.pl \
 
44
        lib/v1/mtr_process.pl \
 
45
        lib/v1/mtr_unique.pl \
 
46
        lib/mtr_cases.pm \
 
47
        lib/mtr_gcov.pl \
 
48
        lib/mtr_gprof.pl \
 
49
        lib/mtr_io.pl \
 
50
        lib/mtr_match.pm \
 
51
        lib/mtr_misc.pl \
 
52
        lib/mtr_process.pl \
 
53
        lib/mtr_report.pm \
 
54
        lib/mtr_stress.pl \
 
55
        lib/mtr_unique.pm \
 
56
        lib/My/ConfigFactory.pm \
 
57
        lib/My/Config.pm \
 
58
        lib/My/Find.pm \
 
59
        lib/My/Handles.pm \
 
60
        lib/My/Options.pm \
 
61
        lib/My/Test.pm \
 
62
        lib/My/Platform.pm \
 
63
        lib/My/SafeProcess.pm \
 
64
        lib/My/File/Path.pm \
 
65
        lib/My/SysInfo.pm \
 
66
        lib/My/CoreDump.pm \
 
67
        lib/My/SafeProcess/Base.pm \
 
68
        lib/My/SafeProcess/safe_process.pl
 
69
 
 
70
SUBDIRS =       lib/My/SafeProcess
 
71
 
 
72
EXTRA_DIST =    README \
 
73
                $(test_SCRIPTS) \
 
74
                $(nobase_test_DATA)
 
75
 
 
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 \
 
81
        std_data/funcs_1 \
 
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 \
 
85
        suite/federated \
 
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 \
 
92
        suite/funcs_2/t \
 
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 \
 
97
        suite/rpl/t \
 
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
 
103
 
 
104
# Used by dist-hook and install-data-local to copy all
 
105
# test files into either dist or install directory
 
106
install_test_files:
 
107
        @if test -z "$(INSTALL_TO_DIR)"; then \
 
108
          echo "Set INSTALL_TO_DIR!" && exit 1; \
 
109
        fi
 
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" ; \
 
117
            fi; \
 
118
          done \
 
119
        done
 
120
 
 
121
dist-hook:
 
122
        $(MAKE) INSTALL_TO_DIR="$(distdir)" install_test_files
 
123
 
 
124
install-data-local:
 
125
        $(MAKE) INSTALL_TO_DIR="$(DESTDIR)$(testdir)" install_test_files
 
126
 
 
127
uninstall-local:
 
128
        @RM@ -f -r $(DESTDIR)$(testdir)
 
129
 
 
130
# mtr - a shortcut for executing mysql-test-run.pl
 
131
mtr:
 
132
        $(RM) -f mtr
 
133
        $(LN_S) mysql-test-run.pl mtr
 
134
 
 
135
# mysql-test-run - a shortcut for executing mysql-test-run.pl
 
136
mysql-test-run:
 
137
        $(RM) -f mysql-test-run
 
138
        $(LN_S) mysql-test-run.pl mysql-test-run
 
139
 
 
140
# Don't update the files from bitkeeper
 
141
%::SCCS/s.%