~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 16:23:40 UTC
  • mto: This revision was merged to the branch mainline in revision 63.
  • Revision ID: monty@inaugust.com-20080705162340-an09yicpupdtwo2m
Fixed simple signdedness problem.

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
 
resolve_stack_dump_SOURCES = resolve_stack_dump.cc
32
 
 
33
 
LDADD=                  $(top_builddir)/mysys/libmysys.la \
34
 
                        $(top_builddir)/mystrings/libmystrings.la \
35
 
                        $(LIBINTL)
36
 
 
 
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..
37
33
 
38
34
 
39
35
dist-hook:
74
70
        $(INSTALL_DATA) $(srcdir)/lib/*.pl $(distdir)/lib
75
71
        $(INSTALL_DATA) $(srcdir)/lib/My/*.pm $(distdir)/lib/My
76
72
 
77
 
# dtr - a shortcut for executing test-run.pl
78
 
dtr:
79
 
        $(RM) -f mtr dtr
80
 
        $(LN_S) test-run.pl mtr
81
 
        $(LN_S) test-run.pl dtr
82
 
 
83
 
# test-run - a shortcut for executing test-run.pl
84
 
test-run:
85
 
        $(RM) -f test-run
86
 
        $(LN_S) test-run.pl test-run
87
 
 
88
 
 
89
 
.PHONY: test \
90
 
    test-force \
91
 
    test-full \
92
 
    test-force-full \
93
 
    test-force-mem \
94
 
    test-pl \
95
 
    test-force-pl \
96
 
    test-full-pl \
97
 
    test-force-full-pl \
98
 
    test-force-pl-mem \
99
 
    test-ps test-nr \
100
 
    test-pr test-ns \
101
 
    test-binlog-statement \
102
 
    test-ext-funcs \
103
 
    test-ext-rpl \
104
 
    test-ext-jp \
105
 
    test-ext-stress \
106
 
    test-ext \
107
 
    test-embedded \
108
 
    test-fast \
109
 
    test-fast-cursor \
110
 
    test-fast-view \
111
 
    test-full-qa
112
 
 
113
 
# Target 'test' will run the regression test suite using the built server.
114
 
#
115
 
# If you are running in a shared environment, users can avoid clashing
116
 
# port numbers by setting individual small numbers 1-100 to the
117
 
# environment variable MTR_BUILD_THREAD. The script "test-run"
118
 
# will then calculate the various port numbers it needs from this,
119
 
# making sure each user use different ports.
120
 
 
121
 
test-nr:
122
 
        cd tests ; \
123
 
          ./test-run $(force) --mysqld=--binlog-format=row
124
 
 
125
 
test-ns:
126
 
        cd tests ; \
127
 
          ./test-run $(force) $(mem) --mysqld=--binlog-format=mixed
128
 
 
129
 
test-binlog-statement:
130
 
        cd tests ; \
131
 
          ./test-run $(force) --mysqld=--binlog-format=statement
132
 
 
133
 
test: test-drizzle
134
 
 
135
 
# Please keep the list of tests in alphabetical order for ease of
136
 
# maintenance and verification
137
 
 
138
 
test-drizzle:
139
 
          $(PERL) -I$(top_srcdir)/tests/lib \
140
 
                $(top_srcdir)/tests/test-run.pl --fast --reorder --force \
141
 
        1st \
142
 
        alter_table \
143
 
        bench_count_distinct \
144
 
        bigint \
145
 
        binlog_index \
146
 
        bulk_replace \
147
 
        comment_column \
148
 
        comment_column2 \
149
 
        comment_index \
150
 
        comment_table \
151
 
        comments \
152
 
        commit_1innodb \
153
 
        compare \
154
 
        consistent_snapshot \
155
 
        constraints \
156
 
        count_distinct \
157
 
        count_distinct2 \
158
 
        count_distinct3 \
159
 
        create_select_tmp \
160
 
        ctype_filename \
161
 
        date_formats \
162
 
        delete \
163
 
        distinct \
164
 
        drizzleslap \
165
 
        drop_table \
166
 
        drop_table_if_exists \
167
 
        drop_table_temp \
168
 
        empty_table \
169
 
        endspace \
170
 
        flush2 \
171
 
        func_compress \
172
 
        func_concat \
173
 
        func_crc32 \
174
 
        func_date_add \
175
 
        func_default \
176
 
        func_equal \
177
 
        func_gconcat \
178
 
        func_group \
179
 
        func_group_innodb \
180
 
        func_if \
181
 
        func_in \
182
 
        func_isnull \
183
 
        func_like \
184
 
        func_math \
185
 
        func_misc \
186
 
        func_op \
187
 
        func_sapdb \
188
 
        func_str \
189
 
        func_time \
190
 
        func_weight_string \
191
 
        greedy_optimizer \
192
 
        group_by \
193
 
        group_min_max_innodb \
194
 
        having \
195
 
        heap \
196
 
        heap_auto_increment \
197
 
        heap_btree \
198
 
        heap_hash \
199
 
        heap_var \
200
 
        information_schema \
201
 
        innodb_autoinc_lock_mode_zero \
202
 
        innodb_mysql \
203
 
        innodb_notembedded \
204
 
        innodb_trx_weight \
205
 
        innodb-lock \
206
 
        innodb-semi-consistent \
207
 
        innodb_timeout_rollback \
208
 
        insert \
209
 
        insert_select \
210
 
        insert_update \
211
 
        join \
212
 
        join_crash \
213
 
        join_nested \
214
 
        join_outer \
215
 
        join_outer_innodb \
216
 
        key \
217
 
        key_diff \
218
 
        key_primary \
219
 
        keywords \
220
 
        kill \
221
 
        lock \
222
 
        limit \
223
 
        lock_tables_lost_commit \
224
 
        main.myisam-blob \
225
 
        mysqldump-compat \
226
 
        mysqldump-max \
227
 
        order_by \
228
 
        order_fill_sortbuf \
229
 
        overflow \
230
 
        parser \
231
 
        parser_bug21114_innodb \
232
 
        parser_precedence \
233
 
        pool_of_threads \
234
 
        range \
235
 
        replace \
236
 
        rollback \
237
 
        round \
238
 
        row \
239
 
        rowid_order_innodb \
240
 
        schema \
241
 
        select \
242
 
        subselect \
243
 
        subselect3 \
244
 
        subselect_innodb \
245
 
        sum_distinct \
246
 
        synchronization \
247
 
        tablelock \
248
 
        type_blob \
249
 
        type_date \
250
 
        type_datetime \
251
 
        type_float \
252
 
        type_newdecimal \
253
 
        type_ranges \
254
 
        type_time \
255
 
        type_timestamp \
256
 
        type_uint \
257
 
        type_varchar \
258
 
        unsafe_binlog_innodb \
259
 
        update \
260
 
        variables-notembedded
261
 
          $(PERL) -I$(top_srcdir)/tests/lib \
262
 
                $(top_srcdir)/tests/test-run.pl --fast --reorder --force \
263
 
                --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 $@