~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysql-test/Makefile.am

  • Committer: Monty Taylor
  • Date: 2008-07-05 23:05:08 UTC
  • mto: This revision was merged to the branch mainline in revision 77.
  • Revision ID: monty@inaugust.com-20080705230508-9txkg702oln6hxjl
First large swath at getting handler stuff clean.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
benchdir_root=          $(prefix)
23
23
testdir =               $(benchdir_root)/mysql-test
24
 
EXTRA_SCRIPTS =         valgrind.supp $(PRESCRIPTS)
 
24
EXTRA_SCRIPTS =         mysql-test-run-shell.sh install_test_db.sh \
 
25
                        valgrind.supp $(PRESCRIPTS)
25
26
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
31
 
 
32
 
LDADD=                  $(top_builddir)/mysys/libmysys.la \
33
 
                        $(top_builddir)/mystrings/libmystrings.la \
34
 
                        $(LIBINTL)
35
 
 
 
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)
 
31
 
 
32
AM_CPPFLAGS =           -I$(top_builddir)/include -I$(top_srcdir)/include -I..
36
33
 
37
34
 
38
35
dist-hook:
73
70
        $(INSTALL_DATA) $(srcdir)/lib/*.pl $(distdir)/lib
74
71
        $(INSTALL_DATA) $(srcdir)/lib/My/*.pm $(distdir)/lib/My
75
72
 
76
 
# dtr - a shortcut for executing test-run.pl
77
 
dtr:
78
 
        $(RM) -f mtr dtr
79
 
        $(LN_S) test-run.pl mtr
80
 
        $(LN_S) test-run.pl dtr
81
 
 
82
 
# test-run - a shortcut for executing test-run.pl
83
 
test-run:
84
 
        $(RM) -f test-run
85
 
        $(LN_S) test-run.pl test-run
86
 
 
87
 
 
88
 
.PHONY: test \
89
 
    test-force \
90
 
    test-full \
91
 
    test-force-full \
92
 
    test-force-mem \
93
 
    test-pl \
94
 
    test-force-pl \
95
 
    test-full-pl \
96
 
    test-force-full-pl \
97
 
    test-force-pl-mem \
98
 
    test-ps test-nr \
99
 
    test-pr test-ns \
100
 
    test-binlog-statement \
101
 
    test-ext-funcs \
102
 
    test-ext-rpl \
103
 
    test-ext-jp \
104
 
    test-ext-stress \
105
 
    test-ext \
106
 
    test-embedded \
107
 
    test-fast \
108
 
    test-fast-cursor \
109
 
    test-fast-view \
110
 
    test-full-qa
111
 
 
112
 
# Target 'test' will run the regression test suite using the built server.
113
 
#
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.
119
 
 
120
 
test-nr:
121
 
        cd tests ; \
122
 
          ./test-run $(force) --mysqld=--binlog-format=row
123
 
 
124
 
test-ns:
125
 
        cd tests ; \
126
 
          ./test-run $(force) $(mem) --mysqld=--binlog-format=mixed
127
 
 
128
 
test-binlog-statement:
129
 
        cd tests ; \
130
 
          ./test-run $(force) --mysqld=--binlog-format=statement
131
 
 
132
 
test: test-drizzle
133
 
 
134
 
# Please keep the list of tests in alphabetical order for ease of
135
 
# maintenance and verification
136
 
 
137
 
test-drizzle:
138
 
          $(PERL) -I$(top_srcdir)/tests/lib \
139
 
                $(top_srcdir)/tests/test-run.pl --fast --reorder --force \
140
 
        1st \
141
 
        alter_table \
142
 
        bench_count_distinct \
143
 
        bulk_replace \
144
 
        comment_column2 \
145
 
        comment_table \
146
 
        comments \
147
 
        consistent_snapshot \
148
 
        count_distinct \
149
 
        count_distinct2 \
150
 
        count_distinct3 \
151
 
        create_select_tmp \
152
 
        ctype_filename \
153
 
        delete \
154
 
        distinct \
155
 
        drizzleslap \
156
 
        endspace \
157
 
        flush2 \
158
 
        func_compress \
159
 
        func_concat \
160
 
        func_crc32 \
161
 
        func_date_add \
162
 
        func_default \
163
 
        func_equal \
164
 
        func_gconcat \
165
 
        func_group \
166
 
        func_group_innodb \
167
 
        func_if \
168
 
        func_in \
169
 
        func_isnull \
170
 
        func_like \
171
 
        func_math \
172
 
        func_misc \
173
 
        func_op \
174
 
        func_sapdb \
175
 
        func_str \
176
 
        func_time \
177
 
        func_weight_string \
178
 
        greedy_optimizer \
179
 
        group_min_max_innodb \
180
 
        heap_auto_increment \
181
 
        heap_btree \
182
 
        heap_var \
183
 
        information_schema \
184
 
        innodb-lock \
185
 
        innodb-semi-consistent \
186
 
        innodb_timeout_rollback \
187
 
        insert \
188
 
        join \
189
 
        join_crash \
190
 
        join_nested \
191
 
        join_outer \
192
 
        join_outer_innodb \
193
 
        key \
194
 
        key_diff \
195
 
        key_primary \
196
 
        keywords \
197
 
        lock \
198
 
        limit \
199
 
        lock_tables_lost_commit \
200
 
        order_by \
201
 
        order_fill_sortbuf \
202
 
        overflow \
203
 
        pool_of_threads \
204
 
        rollback \
205
 
        select \
206
 
        subselect \
207
 
        subselect3 \
208
 
        subselect_innodb \
209
 
        sum_distinct \
210
 
        tablelock \
211
 
        type_blob \
212
 
        type_date \
213
 
        type_datetime \
214
 
        type_float \
215
 
        type_newdecimal \
216
 
        type_ranges \
217
 
        type_time \
218
 
        type_timestamp \
219
 
        type_uint \
220
 
        type_varchar \
221
 
        unsafe_binlog_innodb \
222
 
        update \
223
 
        variables-notembedded
224
 
          $(PERL) -I$(top_srcdir)/tests/lib \
225
 
                $(top_srcdir)/tests/test-run.pl --fast --reorder --force \
226
 
                --suite=vcol
 
73
install-data-local:
 
74
        $(mkinstalldirs) \
 
75
                $(DESTDIR)$(testdir)/t \
 
76
                $(DESTDIR)$(testdir)/extra/binlog_tests \
 
77
                $(DESTDIR)$(testdir)/extra/rpl_tests \
 
78
                $(DESTDIR)$(testdir)/r \
 
79
                $(DESTDIR)$(testdir)/include \
 
80
                $(DESTDIR)$(testdir)/std_data \
 
81
                $(DESTDIR)$(testdir)/std_data/parts \
 
82
                $(DESTDIR)$(testdir)/lib \
 
83
                $(DESTDIR)$(testdir)/lib/My
 
84
        $(INSTALL_DATA) $(srcdir)/README $(DESTDIR)$(testdir)
 
85
        -$(INSTALL_DATA) $(srcdir)/t/*.def $(DESTDIR)$(testdir)/t
 
86
        $(INSTALL_DATA) $(srcdir)/t/*.test $(DESTDIR)$(testdir)/t
 
87
        -$(INSTALL_DATA) $(srcdir)/t/*.imtest $(DESTDIR)$(testdir)/t
 
88
        $(INSTALL_DATA) $(srcdir)/t/*.sql $(DESTDIR)$(testdir)/t
 
89
        -$(INSTALL_DATA) $(srcdir)/t/*.disabled $(DESTDIR)$(testdir)/t
 
90
        -$(INSTALL_DATA) $(srcdir)/t/*.opt $(DESTDIR)$(testdir)/t
 
91
        -$(INSTALL_SCRIPT) $(srcdir)/t/*.sh $(DESTDIR)$(testdir)/t
 
92
        -$(INSTALL_DATA) $(srcdir)/t/*.slave-mi $(DESTDIR)$(testdir)/t
 
93
        $(INSTALL_DATA) $(srcdir)/r/*.result $(DESTDIR)$(testdir)/r
 
94
        $(INSTALL_DATA) $(srcdir)/r/*.require $(DESTDIR)$(testdir)/r
 
95
        $(INSTALL_DATA) $(srcdir)/extra/binlog_tests/*.test $(DESTDIR)$(testdir)/extra/binlog_tests
 
96
        $(INSTALL_DATA) $(srcdir)/extra/rpl_tests/*.test $(DESTDIR)$(testdir)/extra/rpl_tests
 
97
        -$(INSTALL_DATA) $(srcdir)/extra/binlog_tests/*.opt $(DESTDIR)$(testdir)/extra/binlog_tests
 
98
        -$(INSTALL_DATA) $(srcdir)/extra/rpl_tests/*.opt $(DESTDIR)$(testdir)/extra/rpl_tests
 
99
        $(INSTALL_DATA) $(srcdir)/include/*.inc $(DESTDIR)$(testdir)/include
 
100
        $(INSTALL_DATA) $(srcdir)/include/*.sql $(DESTDIR)$(testdir)/include
 
101
        $(INSTALL_DATA) $(srcdir)/include/*.test $(DESTDIR)$(testdir)/include
 
102
        $(INSTALL_DATA) $(srcdir)/std_data/*.dat $(DESTDIR)$(testdir)/std_data
 
103
        $(INSTALL_DATA) $(srcdir)/std_data/*.*001 $(DESTDIR)$(testdir)/std_data
 
104
        $(INSTALL_DATA) $(srcdir)/std_data/*.cnf $(DESTDIR)$(testdir)/std_data
 
105
        $(INSTALL_DATA) $(srcdir)/std_data/des_key_file $(DESTDIR)$(testdir)/std_data
 
106
        $(INSTALL_DATA) $(srcdir)/std_data/Moscow_leap $(DESTDIR)$(testdir)/std_data
 
107
        $(INSTALL_DATA) $(srcdir)/std_data/Index.xml $(DESTDIR)$(testdir)/std_data
 
108
        $(INSTALL_DATA) $(srcdir)/std_data/*.pem $(DESTDIR)$(testdir)/std_data
 
109
        $(INSTALL_DATA) $(srcdir)/std_data/*.frm $(DESTDIR)$(testdir)/std_data
 
110
        $(INSTALL_DATA) $(srcdir)/std_data/*.MY* $(DESTDIR)$(testdir)/std_data
 
111
        $(INSTALL_DATA) $(srcdir)/std_data/*.cnf $(DESTDIR)$(testdir)/std_data
 
112
        $(INSTALL_DATA) $(srcdir)/std_data/parts/part_* $(DESTDIR)$(testdir)/std_data/parts
 
113
        $(INSTALL_DATA) $(srcdir)/lib/*.pl $(DESTDIR)$(testdir)/lib
 
114
        $(INSTALL_DATA) $(srcdir)/lib/My/*.pm $(DESTDIR)$(testdir)/lib/My
 
115
        for f in `(cd $(srcdir); find suite -type f | egrep -v 'SCCS|row_lock')`; \
 
116
        do \
 
117
          d=$(DESTDIR)$(testdir)/`dirname $$f`; \
 
118
          mkdir -p $$d ; \
 
119
          $(INSTALL_DATA) $(srcdir)/$$f $$d ; \
 
120
        done
 
121
 
 
122
uninstall-local:
 
123
        @RM@ -f -r $(DESTDIR)$(testdir)
 
124
 
 
125
# mtr - a shortcut for executing mysql-test-run.pl
 
126
mtr:
 
127
        $(RM) -f mtr
 
128
        $(LN_S) mysql-test-run.pl mtr
 
129
 
 
130
# mysql-test-run - a shortcut for executing mysql-test-run.pl
 
131
mysql-test-run:
 
132
        $(RM) -f mysql-test-run
 
133
        $(LN_S) mysql-test-run.pl mysql-test-run
 
134
 
 
135
SUFFIXES = .sh
 
136
 
 
137
.sh:
 
138
        @RM@ -f $@ $@-t
 
139
        @SED@ \
 
140
          -e 's!@''testdir''@!$(testdir)!g' \
 
141
          -e 's!@''bindir''@!$(bindir)!g' \
 
142
          -e 's!@''scriptdir''@!$(bindir)!g' \
 
143
          -e 's!@''prefix''@!$(prefix)!g' \
 
144
          -e 's!@''datadir''@!$(datadir)!g' \
 
145
          -e 's!@''localstatedir''@!$(localstatedir)!g' \
 
146
          -e 's!@''libexecdir''@!$(libexecdir)!g' \
 
147
          -e 's!@''PERL''@!@PERL@!' \
 
148
          -e 's!@''VERSION''@!@VERSION@!' \
 
149
          -e 's!@''MYSQL_TCP_PORT''@!@MYSQL_TCP_PORT@!' \
 
150
          -e 's!@''MYSQL_TCP_PORT_DEFAULT''@!@MYSQL_TCP_PORT_DEFAULT@!' \
 
151
          -e 's!@''MYSQL_BASE_VERSION''@!@MYSQL_BASE_VERSION@!' \
 
152
          -e 's!@''MYSQL_TCP_PORT''@!@MYSQL_TCP_PORT@!' \
 
153
          -e 's!@''MYSQL_NO_DASH_VERSION''@!@MYSQL_NO_DASH_VERSION@!' \
 
154
          -e 's!@''MYSQL_SERVER_SUFFIX''@!@MYSQL_SERVER_SUFFIX@!' \
 
155
          -e 's!@''USE_NDBCLUSTER''@!@TEST_NDBCLUSTER@!g' \
 
156
          $< > $@-t
 
157
        @CHMOD@ +x $@-t
 
158
        @MV@ $@-t $@