2008-01-10 13:21:53 +01:00
|
|
|
# Copyright (C) 2007 MySQL AB
|
|
|
|
#
|
|
|
|
# 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
|
|
|
|
# the Free Software Foundation; version 2 of the License.
|
|
|
|
#
|
|
|
|
# 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
|
|
|
|
SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DSAFEMALLOC -DSAFE_MUTEX")
|
|
|
|
SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -DSAFEMALLOC -DSAFE_MUTEX")
|
|
|
|
|
|
|
|
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include ${CMAKE_SOURCE_DIR}/zlib
|
|
|
|
${CMAKE_SOURCE_DIR}/unittest/mytap)
|
|
|
|
LINK_LIBRARIES(maria myisam mytap mysys dbug strings wsock32 zlib)
|
|
|
|
|
2008-02-08 15:35:02 +01:00
|
|
|
ADD_EXECUTABLE(ma_control_file-t ma_control_file-t.c)
|
|
|
|
ADD_EXECUTABLE(trnman-t trnman-t.c)
|
|
|
|
ADD_EXECUTABLE(lockman2-t lockman2-t.c)
|
|
|
|
ADD_EXECUTABLE(ma_test_loghandler-t
|
2008-01-10 13:21:53 +01:00
|
|
|
ma_test_loghandler-t.c ma_maria_log_cleanup.c ma_loghandler_examples.c)
|
2008-02-08 15:35:02 +01:00
|
|
|
ADD_EXECUTABLE(ma_test_loghandler_multigroup-t
|
2008-01-10 13:21:53 +01:00
|
|
|
ma_test_loghandler_multigroup-t.c ma_maria_log_cleanup.c ma_loghandler_examples.c)
|
2008-02-08 15:35:02 +01:00
|
|
|
ADD_EXECUTABLE(ma_test_loghandler_multithread-t
|
2008-01-10 13:21:53 +01:00
|
|
|
ma_test_loghandler_multithread-t.c ma_maria_log_cleanup.c ma_loghandler_examples.c)
|
2008-02-08 15:35:02 +01:00
|
|
|
ADD_EXECUTABLE(ma_test_loghandler_pagecache-t
|
2008-01-10 13:21:53 +01:00
|
|
|
ma_test_loghandler_pagecache-t.c ma_maria_log_cleanup.c ma_loghandler_examples.c)
|
2008-02-08 15:35:02 +01:00
|
|
|
ADD_EXECUTABLE(ma_test_loghandler_long-t
|
2008-01-10 13:21:53 +01:00
|
|
|
ma_test_loghandler-t.c ma_maria_log_cleanup.c ma_loghandler_examples.c)
|
2008-02-08 15:35:02 +01:00
|
|
|
SET_TARGET_PROPERTIES(ma_test_loghandler_long-t PROPERTIES COMPILE_FLAGS "-DLONG_LOG_TEST")
|
2008-01-10 13:21:53 +01:00
|
|
|
|
2008-02-08 15:35:02 +01:00
|
|
|
ADD_EXECUTABLE(ma_test_loghandler_noflush-t
|
2008-01-10 13:21:53 +01:00
|
|
|
ma_test_loghandler_noflush-t.c ma_maria_log_cleanup.c ma_loghandler_examples.c)
|
2008-02-08 15:35:02 +01:00
|
|
|
ADD_EXECUTABLE(ma_test_loghandler_first_lsn-t
|
2008-01-10 13:21:53 +01:00
|
|
|
ma_test_loghandler_first_lsn-t.c ma_maria_log_cleanup.c ma_loghandler_examples.c)
|
2008-02-08 15:35:02 +01:00
|
|
|
ADD_EXECUTABLE(ma_test_loghandler_max_lsn-t
|
2008-01-10 13:21:53 +01:00
|
|
|
ma_test_loghandler_max_lsn-t.c ma_maria_log_cleanup.c ma_loghandler_examples.c)
|
2008-02-08 15:35:02 +01:00
|
|
|
ADD_EXECUTABLE(ma_test_loghandler_purge-t
|
2008-01-10 13:21:53 +01:00
|
|
|
ma_test_loghandler_purge-t.c ma_maria_log_cleanup.c ma_loghandler_examples.c)
|
2008-02-08 15:35:02 +01:00
|
|
|
ADD_EXECUTABLE(ma_test_loghandler_readonly-t
|
2008-01-10 13:21:53 +01:00
|
|
|
ma_test_loghandler_multigroup-t.c ma_maria_log_cleanup.c ma_loghandler_examples.c)
|
2008-02-08 15:35:02 +01:00
|
|
|
SET_TARGET_PROPERTIES(ma_test_loghandler_readonly-t PROPERTIES COMPILE_FLAGS "-DREADONLY_TEST")
|
|
|
|
ADD_EXECUTABLE(ma_test_loghandler_nologs-t
|
|
|
|
ma_test_loghandler_nologs-t.c ma_maria_log_cleanup.c ma_loghandler_examples.c)
|
2008-01-10 13:21:53 +01:00
|
|
|
|
|
|
|
SET(ma_pagecache_single_src ma_pagecache_single.c test_file.c test_file.h)
|
2008-02-08 15:35:02 +01:00
|
|
|
SET(ma_pagecache_consist_src ma_pagecache_consist.c test_file.c test_file.h)
|
2008-01-10 13:21:53 +01:00
|
|
|
SET(ma_pagecache_common_cppflags "-DEXTRA_DEBUG -DPAGECACHE_DEBUG -DMAIN")
|
|
|
|
|
2008-02-08 15:35:02 +01:00
|
|
|
ADD_EXECUTABLE(ma_pagecache_single_1k-t ${ma_pagecache_single_src})
|
|
|
|
SET_TARGET_PROPERTIES(ma_pagecache_single_1k-t
|
2008-02-13 23:35:09 +01:00
|
|
|
PROPERTIES COMPILE_FLAGS "${ma_pagecache_common_cppflags} -DTEST_PAGE_SIZE=1024")
|
2008-01-10 13:21:53 +01:00
|
|
|
|
2008-02-08 15:35:02 +01:00
|
|
|
ADD_EXECUTABLE(ma_pagecache_single_8k-t ${ma_pagecache_single_src})
|
|
|
|
SET_TARGET_PROPERTIES(ma_pagecache_single_8k-t
|
2008-02-13 23:35:09 +01:00
|
|
|
PROPERTIES COMPILE_FLAGS "${ma_pagecache_common_cppflags} -DTEST_PAGE_SIZE=8192")
|
2008-01-10 13:21:53 +01:00
|
|
|
|
2008-02-08 15:35:02 +01:00
|
|
|
ADD_EXECUTABLE(ma_pagecache_single_64k-t ${ma_pagecache_single_src})
|
|
|
|
SET_TARGET_PROPERTIES(ma_pagecache_single_64k-t
|
2008-02-13 23:35:09 +01:00
|
|
|
PROPERTIES COMPILE_FLAGS "${ma_pagecache_common_cppflags} -DTEST_PAGE_SIZE=65536")
|
2008-01-10 13:21:53 +01:00
|
|
|
|
2008-02-08 15:35:02 +01:00
|
|
|
ADD_EXECUTABLE(ma_pagecache_consist_1k-t ${ma_pagecache_consist_src})
|
|
|
|
SET_TARGET_PROPERTIES(ma_pagecache_consist_1k-t
|
2008-02-13 23:35:09 +01:00
|
|
|
PROPERTIES COMPILE_FLAGS "${ma_pagecache_common_cppflags} -DTEST_PAGE_SIZE=1024")
|
2008-01-10 13:21:53 +01:00
|
|
|
|
2008-02-08 15:35:02 +01:00
|
|
|
ADD_EXECUTABLE(ma_pagecache_consist_64k-t ${ma_pagecache_consist_src})
|
|
|
|
SET_TARGET_PROPERTIES(ma_pagecache_consist_64k-t
|
2008-02-13 23:35:09 +01:00
|
|
|
PROPERTIES COMPILE_FLAGS "${ma_pagecache_common_cppflags} -DTEST_PAGE_SIZE=65536")
|
2008-01-10 13:21:53 +01:00
|
|
|
|
2008-02-08 15:35:02 +01:00
|
|
|
ADD_EXECUTABLE(ma_pagecache_consist_1kHC-t
|
2008-01-10 13:21:53 +01:00
|
|
|
${ma_pagecache_consist_src})
|
2008-02-08 15:35:02 +01:00
|
|
|
SET_TARGET_PROPERTIES(ma_pagecache_consist_1kHC-t
|
2008-02-13 23:35:09 +01:00
|
|
|
PROPERTIES COMPILE_FLAGS "${ma_pagecache_common_cppflags} -DTEST_PAGE_SIZE=1024 -DTEST_HIGH_CONCURENCY")
|
2008-02-08 15:35:02 +01:00
|
|
|
ADD_EXECUTABLE(ma_pagecache_consist_64kHC-t
|
2008-01-10 13:21:53 +01:00
|
|
|
${ma_pagecache_consist_src})
|
2008-02-08 15:35:02 +01:00
|
|
|
SET_TARGET_PROPERTIES(ma_pagecache_consist_64kHC-t
|
2008-02-13 23:35:09 +01:00
|
|
|
PROPERTIES COMPILE_FLAGS "${ma_pagecache_common_cppflags} -DTEST_PAGE_SIZE=65536 -DTEST_HIGH_CONCURENCY")
|
2008-02-08 15:35:02 +01:00
|
|
|
ADD_EXECUTABLE(ma_pagecache_consist_1kRD-t ${ma_pagecache_consist_src})
|
|
|
|
SET_TARGET_PROPERTIES(ma_pagecache_consist_1kRD-t
|
2008-02-13 23:35:09 +01:00
|
|
|
PROPERTIES COMPILE_FLAGS "${ma_pagecache_common_cppflags} -DTEST_PAGE_SIZE=1024 -DTEST_READERS")
|
2008-02-08 15:35:02 +01:00
|
|
|
ADD_EXECUTABLE(ma_pagecache_consist_64kRD-t ${ma_pagecache_consist_src})
|
|
|
|
SET_TARGET_PROPERTIES(ma_pagecache_consist_64kRD-t
|
2008-02-13 23:35:09 +01:00
|
|
|
PROPERTIES COMPILE_FLAGS "${ma_pagecache_common_cppflags} -DTEST_PAGE_SIZE=65536 -DTEST_READERS")
|
2008-02-08 15:35:02 +01:00
|
|
|
ADD_EXECUTABLE(ma_pagecache_consist_1kWR-t ${ma_pagecache_consist_src})
|
|
|
|
SET_TARGET_PROPERTIES(ma_pagecache_consist_1kWR-t
|
2008-02-13 23:35:09 +01:00
|
|
|
PROPERTIES COMPILE_FLAGS "${ma_pagecache_common_cppflags} -DTEST_PAGE_SIZE=1024 -DTEST_WRITERS")
|
2008-02-08 15:35:02 +01:00
|
|
|
ADD_EXECUTABLE(ma_pagecache_consist_64kWR-t ${ma_pagecache_consist_src})
|
|
|
|
SET_TARGET_PROPERTIES(ma_pagecache_consist_64kWR-t
|
2008-02-13 23:35:09 +01:00
|
|
|
PROPERTIES COMPILE_FLAGS "${ma_pagecache_common_cppflags} -DTEST_PAGE_SIZE=65536 -DTEST_WRITERS")
|
2008-03-04 17:07:55 +01:00
|
|
|
ADD_EXECUTABLE(ma_pagecache_rwconsist_1k-t ma_pagecache_rwconsist.c)
|
|
|
|
SET_TARGET_PROPERTIES(ma_pagecache_rwconsist_1k-t PROPERTIES COMPILE_FLAGS "-DTEST_PAGE_SIZE=1024")
|