1
# Copyright (C) 2006-2008 MySQL AB
3
# This program is free software; you can redistribute it and/or modify
4
# it under the terms of the GNU General Public License as published by
5
# the Free Software Foundation; version 2 of the License.
7
# This program is distributed in the hope that it will be useful,
8
# but WITHOUT ANY WARRANTY; without even the implied warranty of
9
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
# GNU General Public License for more details.
12
# You should have received a copy of the GNU General Public License
13
# along with this program; if not, write to the Free Software
14
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
AM_CPPFLAGS = @ZLIB_INCLUDES@ -I$(top_builddir)/include \
17
-I$(top_srcdir)/include -I$(top_srcdir)/unittest/mytap
18
INCLUDES = @ZLIB_INCLUDES@ -I$(top_builddir)/include \
19
-I$(top_srcdir)/include -I$(top_srcdir)/unittest/mytap
20
EXTRA_DIST= ma_test_all-t CMakeLists.txt \
21
ma_test_recovery.pl ma_test_recovery.expected
22
# Only reason to link with libmyisam.a here is that it's where some fulltext
23
# pieces are (but soon we'll remove fulltext dependencies from Maria).
24
LDADD= $(top_builddir)/unittest/mytap/libmytap.a \
25
$(top_builddir)/storage/maria/libmaria.a \
26
$(top_builddir)/storage/myisam/libmyisam.a \
27
$(top_builddir)/mysys/libmysys.a \
28
$(top_builddir)/dbug/libdbug.a \
29
$(top_builddir)/strings/libmystrings.a @ZLIB_LIBS@
30
noinst_PROGRAMS = ma_control_file-t trnman-t \
31
ma_pagecache_single_1k-t ma_pagecache_single_8k-t \
32
ma_pagecache_single_64k-t \
33
ma_pagecache_consist_1k-t \
34
ma_pagecache_consist_64k-t \
35
ma_pagecache_consist_1kHC-t \
36
ma_pagecache_consist_64kHC-t \
37
ma_pagecache_consist_1kRD-t \
38
ma_pagecache_consist_64kRD-t \
39
ma_pagecache_consist_1kWR-t \
40
ma_pagecache_consist_64kWR-t \
41
ma_pagecache_rwconsist_1k-t \
42
ma_test_loghandler-t \
43
ma_test_loghandler_multigroup-t \
44
ma_test_loghandler_multithread-t \
45
ma_test_loghandler_multiflush-t \
46
ma_test_loghandler_pagecache-t \
47
ma_test_loghandler_long-t \
48
ma_test_loghandler_noflush-t \
49
ma_test_loghandler_first_lsn-t \
50
ma_test_loghandler_max_lsn-t \
51
ma_test_loghandler_purge-t \
52
ma_test_loghandler_readonly-t\
53
ma_test_loghandler_nologs-t
55
ma_test_loghandler_t_SOURCES = ma_test_loghandler-t.c ma_maria_log_cleanup.c ma_loghandler_examples.c
56
ma_test_loghandler_multigroup_t_SOURCES = ma_test_loghandler_multigroup-t.c ma_maria_log_cleanup.c ma_loghandler_examples.c sequence_storage.c sequence_storage.h
57
ma_test_loghandler_multithread_t_SOURCES = ma_test_loghandler_multithread-t.c ma_maria_log_cleanup.c ma_loghandler_examples.c
58
ma_test_loghandler_multiflush_t_SOURCES = ma_test_loghandler_multithread-t.c ma_maria_log_cleanup.c ma_loghandler_examples.c
59
ma_test_loghandler_multiflush_t_CPPFLAGS = -DMULTIFLUSH_TEST
60
ma_test_loghandler_pagecache_t_SOURCES = ma_test_loghandler_pagecache-t.c ma_maria_log_cleanup.c ma_loghandler_examples.c
61
ma_test_loghandler_long_t_SOURCES = ma_test_loghandler-t.c ma_maria_log_cleanup.c ma_loghandler_examples.c
62
ma_test_loghandler_long_t_CPPFLAGS = -DLONG_LOG_TEST
63
ma_test_loghandler_noflush_t_SOURCES = ma_test_loghandler_noflush-t.c ma_maria_log_cleanup.c ma_loghandler_examples.c
64
ma_test_loghandler_first_lsn_t_SOURCES = ma_test_loghandler_first_lsn-t.c ma_maria_log_cleanup.c ma_loghandler_examples.c
65
ma_test_loghandler_max_lsn_t_SOURCES = ma_test_loghandler_max_lsn-t.c ma_maria_log_cleanup.c ma_loghandler_examples.c
66
ma_test_loghandler_purge_t_SOURCES = ma_test_loghandler_purge-t.c ma_maria_log_cleanup.c ma_loghandler_examples.c
67
ma_test_loghandler_readonly_t_SOURCES = ma_test_loghandler_multigroup-t.c ma_maria_log_cleanup.c ma_loghandler_examples.c sequence_storage.c sequence_storage.h
68
ma_test_loghandler_readonly_t_CPPFLAGS = -DREADONLY_TEST
69
ma_test_loghandler_nologs_t_SOURCES = ma_test_loghandler_nologs-t.c ma_maria_log_cleanup.c ma_loghandler_examples.c
71
ma_pagecache_single_src = ma_pagecache_single.c test_file.c test_file.h
72
ma_pagecache_consist_src = ma_pagecache_consist.c test_file.c test_file.h
73
ma_pagecache_common_cppflags = -DEXTRA_DEBUG -DPAGECACHE_DEBUG -DMAIN
75
ma_pagecache_single_1k_t_SOURCES = $(ma_pagecache_single_src)
76
ma_pagecache_single_8k_t_SOURCES = $(ma_pagecache_single_src)
77
ma_pagecache_single_64k_t_SOURCES = $(ma_pagecache_single_src)
78
ma_pagecache_single_1k_t_CPPFLAGS = $(ma_pagecache_common_cppflags) -DTEST_PAGE_SIZE=1024
79
ma_pagecache_single_8k_t_CPPFLAGS = $(ma_pagecache_common_cppflags) -DTEST_PAGE_SIZE=8192
80
ma_pagecache_single_64k_t_CPPFLAGS = $(ma_pagecache_common_cppflags) -DTEST_PAGE_SIZE=65536 -DBIG
82
ma_pagecache_consist_1k_t_SOURCES = $(ma_pagecache_consist_src)
83
ma_pagecache_consist_1k_t_CPPFLAGS = $(ma_pagecache_common_cppflags) -DTEST_PAGE_SIZE=1024
84
ma_pagecache_consist_64k_t_SOURCES = $(ma_pagecache_consist_src)
85
ma_pagecache_consist_64k_t_CPPFLAGS = $(ma_pagecache_common_cppflags) -DTEST_PAGE_SIZE=65536
87
ma_pagecache_consist_1kHC_t_SOURCES = $(ma_pagecache_consist_src)
88
ma_pagecache_consist_1kHC_t_CPPFLAGS = $(ma_pagecache_common_cppflags) -DTEST_PAGE_SIZE=1024 -DTEST_HIGH_CONCURENCY
89
ma_pagecache_consist_64kHC_t_SOURCES = $(ma_pagecache_consist_src)
90
ma_pagecache_consist_64kHC_t_CPPFLAGS = $(ma_pagecache_common_cppflags) -DTEST_PAGE_SIZE=65536 -DTEST_HIGH_CONCURENCY
92
ma_pagecache_consist_1kRD_t_SOURCES = $(ma_pagecache_consist_src)
93
ma_pagecache_consist_1kRD_t_CPPFLAGS = $(ma_pagecache_common_cppflags) -DTEST_PAGE_SIZE=1024 -DTEST_READERS
94
ma_pagecache_consist_64kRD_t_SOURCES = $(ma_pagecache_consist_src)
95
ma_pagecache_consist_64kRD_t_CPPFLAGS = $(ma_pagecache_common_cppflags) -DTEST_PAGE_SIZE=65536 -DTEST_READERS
97
ma_pagecache_consist_1kWR_t_SOURCES = $(ma_pagecache_consist_src)
98
ma_pagecache_consist_1kWR_t_CPPFLAGS = $(ma_pagecache_common_cppflags) -DTEST_PAGE_SIZE=1024 -DTEST_WRITERS
99
ma_pagecache_consist_64kWR_t_SOURCES = $(ma_pagecache_consist_src)
100
ma_pagecache_consist_64kWR_t_CPPFLAGS = $(ma_pagecache_common_cppflags) -DTEST_PAGE_SIZE=65536 -DTEST_WRITERS
102
ma_pagecache_rwconsist_1k_t_SOURCES = ma_pagecache_rwconsist.c
103
ma_pagecache_rwconsist_1k_t_CPPFLAGS = -DTEST_PAGE_SIZE=1024
105
# the generic lock manager may not be used in the end and lockman1-t crashes,
106
# and lockman2-t takes at least quarter an hour,
107
# so we don't build lockman-t and lockman1-t and lockman2-t
108
CLEANFILES = maria_log_control page_cache_test_file_1 \
111
# Don't update the files from bitkeeper