2008-03-04 12:58:21 +01:00
|
|
|
# Copyright (C) 2006-2008 MySQL AB
|
WL#3234 Maria control file manager.
Fitting ma_control_file_test into the mytap unittest framework:
new directories:
- unittest/storage/ for unit tests of any storage engine
- unittest/storage/maria for ... Maria, containing ma_control_file-t.
Later, older tests like ma_test*, ma_test_all (but which is Unix
dependent in its current form) could move here too.
The plugins macro enable building of unittest/storage/X for any
enabled engine X which has such a directory.
If Falcon wants to have unit tests there too, I may have to merge
this patch into 5.x one day.
config/ac-macros/plugins.m4:
If a storage engine has a directory in unittest/storage, build this
directory.
configure.in:
build storage engines' unit tests.
storage/maria/Makefile.am:
ma_control_file_test moves to unittest/storage/maria
storage/maria/ma_control_file.c:
more error codes when opening the control file fails.
ma_control_file_end() may now return an error if my_close() failed.
storage/maria/ma_control_file.h:
more error codes when opening the control file fails.
unittest/Makefile.am:
adding unit tests for storage engines.
Note that unit.pl simply recurses into "storage", so if a unit test for
storage engine X has been built previously, and now you re-configure
(without making clean) to disable this engine, then the unit test of
X will not be rebuilt but will still be present in storage/X, so will
be run.
unittest/storage/maria/ma_control_file-t.c:
Making the test fit the mytap framework (return all the way up
the stack instead of assert(); use the mytap functions plan(), ok() etc).
Adding test of file too short/long.
unittest/storage/maria/Makefile.am:
a_control_file-t is added to the Maria unit tests.
Later, older tests (ma_test1 etc) could also move here.
unittest/storage/Makefile.am:
New BitKeeper file ``unittest/storage/Makefile.am''
2006-09-11 16:12:31 +02:00
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
2008-03-04 12:58:21 +01:00
|
|
|
# the Free Software Foundation; version 2 of the License.
|
WL#3234 Maria control file manager.
Fitting ma_control_file_test into the mytap unittest framework:
new directories:
- unittest/storage/ for unit tests of any storage engine
- unittest/storage/maria for ... Maria, containing ma_control_file-t.
Later, older tests like ma_test*, ma_test_all (but which is Unix
dependent in its current form) could move here too.
The plugins macro enable building of unittest/storage/X for any
enabled engine X which has such a directory.
If Falcon wants to have unit tests there too, I may have to merge
this patch into 5.x one day.
config/ac-macros/plugins.m4:
If a storage engine has a directory in unittest/storage, build this
directory.
configure.in:
build storage engines' unit tests.
storage/maria/Makefile.am:
ma_control_file_test moves to unittest/storage/maria
storage/maria/ma_control_file.c:
more error codes when opening the control file fails.
ma_control_file_end() may now return an error if my_close() failed.
storage/maria/ma_control_file.h:
more error codes when opening the control file fails.
unittest/Makefile.am:
adding unit tests for storage engines.
Note that unit.pl simply recurses into "storage", so if a unit test for
storage engine X has been built previously, and now you re-configure
(without making clean) to disable this engine, then the unit test of
X will not be rebuilt but will still be present in storage/X, so will
be run.
unittest/storage/maria/ma_control_file-t.c:
Making the test fit the mytap framework (return all the way up
the stack instead of assert(); use the mytap functions plan(), ok() etc).
Adding test of file too short/long.
unittest/storage/maria/Makefile.am:
a_control_file-t is added to the Maria unit tests.
Later, older tests (ma_test1 etc) could also move here.
unittest/storage/Makefile.am:
New BitKeeper file ``unittest/storage/Makefile.am''
2006-09-11 16:12:31 +02:00
|
|
|
#
|
|
|
|
# This program 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 General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
|
2007-02-02 09:41:32 +02:00
|
|
|
AM_CPPFLAGS = @ZLIB_INCLUDES@ -I$(top_builddir)/include \
|
|
|
|
-I$(top_srcdir)/include -I$(top_srcdir)/unittest/mytap
|
|
|
|
INCLUDES = @ZLIB_INCLUDES@ -I$(top_builddir)/include \
|
|
|
|
-I$(top_srcdir)/include -I$(top_srcdir)/unittest/mytap
|
2008-02-20 18:01:59 +01:00
|
|
|
EXTRA_DIST= ma_test_all-t CMakeLists.txt \
|
|
|
|
ma_test_recovery.pl ma_test_recovery.expected
|
WL#3234 Maria control file manager.
Fitting ma_control_file_test into the mytap unittest framework:
new directories:
- unittest/storage/ for unit tests of any storage engine
- unittest/storage/maria for ... Maria, containing ma_control_file-t.
Later, older tests like ma_test*, ma_test_all (but which is Unix
dependent in its current form) could move here too.
The plugins macro enable building of unittest/storage/X for any
enabled engine X which has such a directory.
If Falcon wants to have unit tests there too, I may have to merge
this patch into 5.x one day.
config/ac-macros/plugins.m4:
If a storage engine has a directory in unittest/storage, build this
directory.
configure.in:
build storage engines' unit tests.
storage/maria/Makefile.am:
ma_control_file_test moves to unittest/storage/maria
storage/maria/ma_control_file.c:
more error codes when opening the control file fails.
ma_control_file_end() may now return an error if my_close() failed.
storage/maria/ma_control_file.h:
more error codes when opening the control file fails.
unittest/Makefile.am:
adding unit tests for storage engines.
Note that unit.pl simply recurses into "storage", so if a unit test for
storage engine X has been built previously, and now you re-configure
(without making clean) to disable this engine, then the unit test of
X will not be rebuilt but will still be present in storage/X, so will
be run.
unittest/storage/maria/ma_control_file-t.c:
Making the test fit the mytap framework (return all the way up
the stack instead of assert(); use the mytap functions plan(), ok() etc).
Adding test of file too short/long.
unittest/storage/maria/Makefile.am:
a_control_file-t is added to the Maria unit tests.
Later, older tests (ma_test1 etc) could also move here.
unittest/storage/Makefile.am:
New BitKeeper file ``unittest/storage/Makefile.am''
2006-09-11 16:12:31 +02:00
|
|
|
# Only reason to link with libmyisam.a here is that it's where some fulltext
|
2010-09-12 18:40:01 +02:00
|
|
|
# pieces are (but soon we'll remove fulltext dependencies from Aria).
|
WL#3234 Maria control file manager.
Fitting ma_control_file_test into the mytap unittest framework:
new directories:
- unittest/storage/ for unit tests of any storage engine
- unittest/storage/maria for ... Maria, containing ma_control_file-t.
Later, older tests like ma_test*, ma_test_all (but which is Unix
dependent in its current form) could move here too.
The plugins macro enable building of unittest/storage/X for any
enabled engine X which has such a directory.
If Falcon wants to have unit tests there too, I may have to merge
this patch into 5.x one day.
config/ac-macros/plugins.m4:
If a storage engine has a directory in unittest/storage, build this
directory.
configure.in:
build storage engines' unit tests.
storage/maria/Makefile.am:
ma_control_file_test moves to unittest/storage/maria
storage/maria/ma_control_file.c:
more error codes when opening the control file fails.
ma_control_file_end() may now return an error if my_close() failed.
storage/maria/ma_control_file.h:
more error codes when opening the control file fails.
unittest/Makefile.am:
adding unit tests for storage engines.
Note that unit.pl simply recurses into "storage", so if a unit test for
storage engine X has been built previously, and now you re-configure
(without making clean) to disable this engine, then the unit test of
X will not be rebuilt but will still be present in storage/X, so will
be run.
unittest/storage/maria/ma_control_file-t.c:
Making the test fit the mytap framework (return all the way up
the stack instead of assert(); use the mytap functions plan(), ok() etc).
Adding test of file too short/long.
unittest/storage/maria/Makefile.am:
a_control_file-t is added to the Maria unit tests.
Later, older tests (ma_test1 etc) could also move here.
unittest/storage/Makefile.am:
New BitKeeper file ``unittest/storage/Makefile.am''
2006-09-11 16:12:31 +02:00
|
|
|
LDADD= $(top_builddir)/unittest/mytap/libmytap.a \
|
2010-09-12 18:40:01 +02:00
|
|
|
$(top_builddir)/storage/maria/libaria.a \
|
WL#3234 Maria control file manager.
Fitting ma_control_file_test into the mytap unittest framework:
new directories:
- unittest/storage/ for unit tests of any storage engine
- unittest/storage/maria for ... Maria, containing ma_control_file-t.
Later, older tests like ma_test*, ma_test_all (but which is Unix
dependent in its current form) could move here too.
The plugins macro enable building of unittest/storage/X for any
enabled engine X which has such a directory.
If Falcon wants to have unit tests there too, I may have to merge
this patch into 5.x one day.
config/ac-macros/plugins.m4:
If a storage engine has a directory in unittest/storage, build this
directory.
configure.in:
build storage engines' unit tests.
storage/maria/Makefile.am:
ma_control_file_test moves to unittest/storage/maria
storage/maria/ma_control_file.c:
more error codes when opening the control file fails.
ma_control_file_end() may now return an error if my_close() failed.
storage/maria/ma_control_file.h:
more error codes when opening the control file fails.
unittest/Makefile.am:
adding unit tests for storage engines.
Note that unit.pl simply recurses into "storage", so if a unit test for
storage engine X has been built previously, and now you re-configure
(without making clean) to disable this engine, then the unit test of
X will not be rebuilt but will still be present in storage/X, so will
be run.
unittest/storage/maria/ma_control_file-t.c:
Making the test fit the mytap framework (return all the way up
the stack instead of assert(); use the mytap functions plan(), ok() etc).
Adding test of file too short/long.
unittest/storage/maria/Makefile.am:
a_control_file-t is added to the Maria unit tests.
Later, older tests (ma_test1 etc) could also move here.
unittest/storage/Makefile.am:
New BitKeeper file ``unittest/storage/Makefile.am''
2006-09-11 16:12:31 +02:00
|
|
|
$(top_builddir)/storage/myisam/libmyisam.a \
|
|
|
|
$(top_builddir)/mysys/libmysys.a \
|
|
|
|
$(top_builddir)/dbug/libdbug.a \
|
2007-04-04 23:37:09 +03:00
|
|
|
$(top_builddir)/strings/libmystrings.a @ZLIB_LIBS@
|
2008-06-13 11:47:17 +02:00
|
|
|
noinst_PROGRAMS = ma_control_file-t trnman-t \
|
2007-04-04 23:37:09 +03:00
|
|
|
ma_pagecache_single_1k-t ma_pagecache_single_8k-t \
|
2008-01-31 12:21:55 +02:00
|
|
|
ma_pagecache_single_64k-t \
|
|
|
|
ma_pagecache_consist_1k-t \
|
|
|
|
ma_pagecache_consist_64k-t \
|
|
|
|
ma_pagecache_consist_1kHC-t \
|
|
|
|
ma_pagecache_consist_64kHC-t \
|
|
|
|
ma_pagecache_consist_1kRD-t \
|
|
|
|
ma_pagecache_consist_64kRD-t \
|
|
|
|
ma_pagecache_consist_1kWR-t \
|
|
|
|
ma_pagecache_consist_64kWR-t \
|
2008-02-22 22:32:34 +02:00
|
|
|
ma_pagecache_rwconsist_1k-t \
|
2008-10-16 22:44:12 +03:00
|
|
|
ma_pagecache_rwconsist2_1k-t \
|
2007-02-02 09:41:32 +02:00
|
|
|
ma_test_loghandler-t \
|
|
|
|
ma_test_loghandler_multigroup-t \
|
|
|
|
ma_test_loghandler_multithread-t \
|
2008-06-10 00:54:30 +03:00
|
|
|
ma_test_loghandler_multiflush-t \
|
2007-06-15 01:45:55 +03:00
|
|
|
ma_test_loghandler_pagecache-t \
|
2008-01-31 12:21:55 +02:00
|
|
|
ma_test_loghandler_long-t \
|
2007-08-13 22:54:29 +03:00
|
|
|
ma_test_loghandler_noflush-t \
|
2007-08-19 22:27:43 +03:00
|
|
|
ma_test_loghandler_first_lsn-t \
|
2007-08-27 21:55:39 +03:00
|
|
|
ma_test_loghandler_max_lsn-t \
|
2007-12-15 15:44:29 +02:00
|
|
|
ma_test_loghandler_purge-t \
|
2007-12-16 01:33:04 +02:00
|
|
|
ma_test_loghandler_readonly-t\
|
2007-12-15 23:31:22 +02:00
|
|
|
ma_test_loghandler_nologs-t
|
2007-02-02 09:41:32 +02:00
|
|
|
|
2007-12-03 18:09:36 +02:00
|
|
|
ma_test_loghandler_t_SOURCES = ma_test_loghandler-t.c ma_maria_log_cleanup.c ma_loghandler_examples.c
|
2008-05-07 07:58:13 +03:00
|
|
|
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
|
2007-12-03 18:09:36 +02:00
|
|
|
ma_test_loghandler_multithread_t_SOURCES = ma_test_loghandler_multithread-t.c ma_maria_log_cleanup.c ma_loghandler_examples.c
|
2008-06-10 00:54:30 +03:00
|
|
|
ma_test_loghandler_multiflush_t_SOURCES = ma_test_loghandler_multithread-t.c ma_maria_log_cleanup.c ma_loghandler_examples.c
|
|
|
|
ma_test_loghandler_multiflush_t_CPPFLAGS = -DMULTIFLUSH_TEST
|
2007-12-03 18:09:36 +02:00
|
|
|
ma_test_loghandler_pagecache_t_SOURCES = ma_test_loghandler_pagecache-t.c ma_maria_log_cleanup.c ma_loghandler_examples.c
|
2008-01-31 12:21:55 +02:00
|
|
|
ma_test_loghandler_long_t_SOURCES = ma_test_loghandler-t.c ma_maria_log_cleanup.c ma_loghandler_examples.c
|
|
|
|
ma_test_loghandler_long_t_CPPFLAGS = -DLONG_LOG_TEST
|
2007-12-03 18:09:36 +02:00
|
|
|
ma_test_loghandler_noflush_t_SOURCES = ma_test_loghandler_noflush-t.c ma_maria_log_cleanup.c ma_loghandler_examples.c
|
|
|
|
ma_test_loghandler_first_lsn_t_SOURCES = ma_test_loghandler_first_lsn-t.c ma_maria_log_cleanup.c ma_loghandler_examples.c
|
|
|
|
ma_test_loghandler_max_lsn_t_SOURCES = ma_test_loghandler_max_lsn-t.c ma_maria_log_cleanup.c ma_loghandler_examples.c
|
|
|
|
ma_test_loghandler_purge_t_SOURCES = ma_test_loghandler_purge-t.c ma_maria_log_cleanup.c ma_loghandler_examples.c
|
2008-05-07 07:58:13 +03:00
|
|
|
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
|
2007-12-15 15:44:29 +02:00
|
|
|
ma_test_loghandler_readonly_t_CPPFLAGS = -DREADONLY_TEST
|
2007-12-15 23:31:22 +02:00
|
|
|
ma_test_loghandler_nologs_t_SOURCES = ma_test_loghandler_nologs-t.c ma_maria_log_cleanup.c ma_loghandler_examples.c
|
2007-02-21 15:54:08 +02:00
|
|
|
|
2007-09-11 09:37:17 +03:00
|
|
|
ma_pagecache_single_src = ma_pagecache_single.c test_file.c test_file.h
|
|
|
|
ma_pagecache_consist_src = ma_pagecache_consist.c test_file.c test_file.h
|
2007-04-04 23:37:09 +03:00
|
|
|
ma_pagecache_common_cppflags = -DEXTRA_DEBUG -DPAGECACHE_DEBUG -DMAIN
|
2007-02-02 09:41:32 +02:00
|
|
|
|
2007-04-04 23:37:09 +03:00
|
|
|
ma_pagecache_single_1k_t_SOURCES = $(ma_pagecache_single_src)
|
|
|
|
ma_pagecache_single_8k_t_SOURCES = $(ma_pagecache_single_src)
|
2008-01-31 12:21:55 +02:00
|
|
|
ma_pagecache_single_64k_t_SOURCES = $(ma_pagecache_single_src)
|
2008-02-13 21:27:12 +02:00
|
|
|
ma_pagecache_single_1k_t_CPPFLAGS = $(ma_pagecache_common_cppflags) -DTEST_PAGE_SIZE=1024
|
|
|
|
ma_pagecache_single_8k_t_CPPFLAGS = $(ma_pagecache_common_cppflags) -DTEST_PAGE_SIZE=8192
|
|
|
|
ma_pagecache_single_64k_t_CPPFLAGS = $(ma_pagecache_common_cppflags) -DTEST_PAGE_SIZE=65536 -DBIG
|
2007-02-02 09:41:32 +02:00
|
|
|
|
2008-01-31 12:21:55 +02:00
|
|
|
ma_pagecache_consist_1k_t_SOURCES = $(ma_pagecache_consist_src)
|
2008-02-13 21:27:12 +02:00
|
|
|
ma_pagecache_consist_1k_t_CPPFLAGS = $(ma_pagecache_common_cppflags) -DTEST_PAGE_SIZE=1024
|
2008-01-31 12:21:55 +02:00
|
|
|
ma_pagecache_consist_64k_t_SOURCES = $(ma_pagecache_consist_src)
|
2008-02-13 21:27:12 +02:00
|
|
|
ma_pagecache_consist_64k_t_CPPFLAGS = $(ma_pagecache_common_cppflags) -DTEST_PAGE_SIZE=65536
|
2007-02-02 09:41:32 +02:00
|
|
|
|
2008-01-31 12:21:55 +02:00
|
|
|
ma_pagecache_consist_1kHC_t_SOURCES = $(ma_pagecache_consist_src)
|
2008-02-13 21:27:12 +02:00
|
|
|
ma_pagecache_consist_1kHC_t_CPPFLAGS = $(ma_pagecache_common_cppflags) -DTEST_PAGE_SIZE=1024 -DTEST_HIGH_CONCURENCY
|
2008-01-31 12:21:55 +02:00
|
|
|
ma_pagecache_consist_64kHC_t_SOURCES = $(ma_pagecache_consist_src)
|
2008-02-13 21:27:12 +02:00
|
|
|
ma_pagecache_consist_64kHC_t_CPPFLAGS = $(ma_pagecache_common_cppflags) -DTEST_PAGE_SIZE=65536 -DTEST_HIGH_CONCURENCY
|
2007-02-02 09:41:32 +02:00
|
|
|
|
2008-01-31 12:21:55 +02:00
|
|
|
ma_pagecache_consist_1kRD_t_SOURCES = $(ma_pagecache_consist_src)
|
2008-02-13 21:27:12 +02:00
|
|
|
ma_pagecache_consist_1kRD_t_CPPFLAGS = $(ma_pagecache_common_cppflags) -DTEST_PAGE_SIZE=1024 -DTEST_READERS
|
2008-01-31 12:21:55 +02:00
|
|
|
ma_pagecache_consist_64kRD_t_SOURCES = $(ma_pagecache_consist_src)
|
2008-02-13 21:27:12 +02:00
|
|
|
ma_pagecache_consist_64kRD_t_CPPFLAGS = $(ma_pagecache_common_cppflags) -DTEST_PAGE_SIZE=65536 -DTEST_READERS
|
2007-02-02 09:41:32 +02:00
|
|
|
|
2008-01-31 12:21:55 +02:00
|
|
|
ma_pagecache_consist_1kWR_t_SOURCES = $(ma_pagecache_consist_src)
|
2008-02-13 21:27:12 +02:00
|
|
|
ma_pagecache_consist_1kWR_t_CPPFLAGS = $(ma_pagecache_common_cppflags) -DTEST_PAGE_SIZE=1024 -DTEST_WRITERS
|
2008-01-31 12:21:55 +02:00
|
|
|
ma_pagecache_consist_64kWR_t_SOURCES = $(ma_pagecache_consist_src)
|
2008-02-13 21:27:12 +02:00
|
|
|
ma_pagecache_consist_64kWR_t_CPPFLAGS = $(ma_pagecache_common_cppflags) -DTEST_PAGE_SIZE=65536 -DTEST_WRITERS
|
2007-02-02 09:41:32 +02:00
|
|
|
|
2008-02-22 22:32:34 +02:00
|
|
|
ma_pagecache_rwconsist_1k_t_SOURCES = ma_pagecache_rwconsist.c
|
2008-02-22 23:21:27 +02:00
|
|
|
ma_pagecache_rwconsist_1k_t_CPPFLAGS = -DTEST_PAGE_SIZE=1024
|
2008-10-16 22:44:12 +03:00
|
|
|
ma_pagecache_rwconsist2_1k_t_SOURCES = ma_pagecache_rwconsist2.c
|
|
|
|
ma_pagecache_rwconsist2_1k_t_CPPFLAGS = -DTEST_PAGE_SIZE=1024
|
2008-02-22 22:32:34 +02:00
|
|
|
|
2006-11-30 15:12:28 +01:00
|
|
|
# the generic lock manager may not be used in the end and lockman1-t crashes,
|
2008-06-13 11:47:17 +02:00
|
|
|
# and lockman2-t takes at least quarter an hour,
|
|
|
|
# so we don't build lockman-t and lockman1-t and lockman2-t
|
2010-09-12 18:40:01 +02:00
|
|
|
CLEANFILES = aria_log_control page_cache_test_file_1 \
|
|
|
|
aria_log.????????
|