| 1 |
# Copyright (C) 2007 MySQL AB |
| 2 |
# |
| 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. |
| 6 |
# |
| 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. |
| 11 |
# |
| 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA |
| 15 |
|
| 16 |
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include ${CMAKE_SOURCE_DIR}/zlib |
| 17 |
${CMAKE_SOURCE_DIR}/unittest/mytap) |
| 18 |
LINK_LIBRARIES(aria myisam mytap mysys dbug strings ${ZLIB_LIBRARIES}) |
| 19 |
|
| 20 |
MY_ADD_TESTS(ma_control_file trnman) |
| 21 |
|
| 22 |
ADD_EXECUTABLE(ma_test_loghandler-t |
| 23 |
ma_test_loghandler-t.c ma_maria_log_cleanup.c ma_loghandler_examples.c) |
| 24 |
MY_ADD_TEST(ma_test_loghandler) |
| 25 |
|
| 26 |
ADD_EXECUTABLE(ma_test_loghandler_multigroup-t |
| 27 |
ma_test_loghandler_multigroup-t.c ma_maria_log_cleanup.c ma_loghandler_examples.c sequence_storage.c) |
| 28 |
MY_ADD_TEST(ma_test_loghandler_multigroup) |
| 29 |
|
| 30 |
ADD_EXECUTABLE(ma_test_loghandler_multithread-t |
| 31 |
ma_test_loghandler_multithread-t.c ma_maria_log_cleanup.c ma_loghandler_examples.c) |
| 32 |
MY_ADD_TEST(ma_test_loghandler_multithread) |
| 33 |
|
| 34 |
ADD_EXECUTABLE(ma_test_loghandler_pagecache-t |
| 35 |
ma_test_loghandler_pagecache-t.c ma_maria_log_cleanup.c ma_loghandler_examples.c) |
| 36 |
MY_ADD_TEST(ma_test_loghandler_pagecache) |
| 37 |
|
| 38 |
ADD_EXECUTABLE(ma_test_loghandler_long-t |
| 39 |
ma_test_loghandler-t.c ma_maria_log_cleanup.c ma_loghandler_examples.c) |
| 40 |
SET_TARGET_PROPERTIES(ma_test_loghandler_long-t PROPERTIES COMPILE_FLAGS "-DLONG_LOG_TEST") |
| 41 |
MY_ADD_TEST(ma_test_loghandler_long) |
| 42 |
|
| 43 |
ADD_EXECUTABLE(ma_test_loghandler_noflush-t |
| 44 |
ma_test_loghandler_noflush-t.c ma_maria_log_cleanup.c ma_loghandler_examples.c) |
| 45 |
MY_ADD_TEST(ma_test_loghandler_noflush) |
| 46 |
|
| 47 |
ADD_EXECUTABLE(ma_test_loghandler_first_lsn-t |
| 48 |
ma_test_loghandler_first_lsn-t.c ma_maria_log_cleanup.c ma_loghandler_examples.c) |
| 49 |
MY_ADD_TEST(ma_test_loghandler_first_lsn) |
| 50 |
|
| 51 |
ADD_EXECUTABLE(ma_test_loghandler_max_lsn-t |
| 52 |
ma_test_loghandler_max_lsn-t.c ma_maria_log_cleanup.c ma_loghandler_examples.c) |
| 53 |
MY_ADD_TEST(ma_test_loghandler_max_lsn) |
| 54 |
|
| 55 |
ADD_EXECUTABLE(ma_test_loghandler_purge-t |
| 56 |
ma_test_loghandler_purge-t.c ma_maria_log_cleanup.c ma_loghandler_examples.c) |
| 57 |
MY_ADD_TEST(ma_test_loghandler_purge) |
| 58 |
|
| 59 |
ADD_EXECUTABLE(ma_test_loghandler_readonly-t |
| 60 |
ma_test_loghandler_multigroup-t.c ma_maria_log_cleanup.c ma_loghandler_examples.c sequence_storage.c) |
| 61 |
MY_ADD_TEST(ma_test_loghandler_readonly) |
| 62 |
|
| 63 |
SET_TARGET_PROPERTIES(ma_test_loghandler_readonly-t PROPERTIES COMPILE_FLAGS "-DREADONLY_TEST") |
| 64 |
ADD_EXECUTABLE(ma_test_loghandler_nologs-t |
| 65 |
ma_test_loghandler_nologs-t.c ma_maria_log_cleanup.c ma_loghandler_examples.c) |
| 66 |
MY_ADD_TEST(ma_test_loghandler_nologs) |
| 67 |
|
| 68 |
SET(ma_pagecache_single_src ma_pagecache_single.c test_file.c test_file.h) |
| 69 |
SET(ma_pagecache_consist_src ma_pagecache_consist.c test_file.c test_file.h) |
| 70 |
SET(ma_pagecache_common_cppflags "-DEXTRA_DEBUG -DPAGECACHE_DEBUG -DMAIN") |
| 71 |
|
| 72 |
ADD_EXECUTABLE(ma_pagecache_single_1k-t ${ma_pagecache_single_src}) |
| 73 |
SET_TARGET_PROPERTIES(ma_pagecache_single_1k-t |
| 74 |
PROPERTIES COMPILE_FLAGS "${ma_pagecache_common_cppflags} -DTEST_PAGE_SIZE=1024") |
| 75 |
MY_ADD_TEST(ma_pagecache_single_1k) |
| 76 |
|
| 77 |
ADD_EXECUTABLE(ma_pagecache_single_8k-t ${ma_pagecache_single_src}) |
| 78 |
SET_TARGET_PROPERTIES(ma_pagecache_single_8k-t |
| 79 |
PROPERTIES COMPILE_FLAGS "${ma_pagecache_common_cppflags} -DTEST_PAGE_SIZE=8192 -DBIG") |
| 80 |
MY_ADD_TEST(ma_pagecache_single_8k) |
| 81 |
|
| 82 |
ADD_EXECUTABLE(ma_pagecache_single_64k-t ${ma_pagecache_single_src}) |
| 83 |
SET_TARGET_PROPERTIES(ma_pagecache_single_64k-t |
| 84 |
PROPERTIES COMPILE_FLAGS "${ma_pagecache_common_cppflags} -DTEST_PAGE_SIZE=65536 -DBIG") |
| 85 |
MY_ADD_TEST(ma_pagecache_single_64k) |
| 86 |
|
| 87 |
ADD_EXECUTABLE(ma_pagecache_consist_1k-t ${ma_pagecache_consist_src}) |
| 88 |
SET_TARGET_PROPERTIES(ma_pagecache_consist_1k-t |
| 89 |
PROPERTIES COMPILE_FLAGS "${ma_pagecache_common_cppflags} -DTEST_PAGE_SIZE=1024") |
| 90 |
MY_ADD_TEST(ma_pagecache_consist_1k) |
| 91 |
|
| 92 |
ADD_EXECUTABLE(ma_pagecache_consist_64k-t ${ma_pagecache_consist_src}) |
| 93 |
SET_TARGET_PROPERTIES(ma_pagecache_consist_64k-t |
| 94 |
PROPERTIES COMPILE_FLAGS "${ma_pagecache_common_cppflags} -DTEST_PAGE_SIZE=65536") |
| 95 |
MY_ADD_TEST(ma_pagecache_consist_64k) |
| 96 |
|
| 97 |
ADD_EXECUTABLE(ma_pagecache_consist_1kHC-t |
| 98 |
${ma_pagecache_consist_src}) |
| 99 |
SET_TARGET_PROPERTIES(ma_pagecache_consist_1kHC-t |
| 100 |
PROPERTIES COMPILE_FLAGS "${ma_pagecache_common_cppflags} -DTEST_PAGE_SIZE=1024 -DTEST_HIGH_CONCURENCY") |
| 101 |
MY_ADD_TEST(ma_pagecache_consist_1kHC) |
| 102 |
|
| 103 |
ADD_EXECUTABLE(ma_pagecache_consist_64kHC-t |
| 104 |
${ma_pagecache_consist_src}) |
| 105 |
SET_TARGET_PROPERTIES(ma_pagecache_consist_64kHC-t |
| 106 |
PROPERTIES COMPILE_FLAGS "${ma_pagecache_common_cppflags} -DTEST_PAGE_SIZE=65536 -DTEST_HIGH_CONCURENCY") |
| 107 |
MY_ADD_TEST(ma_pagecache_consist_64kHC) |
| 108 |
|
| 109 |
ADD_EXECUTABLE(ma_pagecache_consist_1kRD-t ${ma_pagecache_consist_src}) |
| 110 |
SET_TARGET_PROPERTIES(ma_pagecache_consist_1kRD-t |
| 111 |
PROPERTIES COMPILE_FLAGS "${ma_pagecache_common_cppflags} -DTEST_PAGE_SIZE=1024 -DTEST_READERS") |
| 112 |
MY_ADD_TEST(ma_pagecache_consist_1kRD) |
| 113 |
|
| 114 |
ADD_EXECUTABLE(ma_pagecache_consist_64kRD-t ${ma_pagecache_consist_src}) |
| 115 |
SET_TARGET_PROPERTIES(ma_pagecache_consist_64kRD-t |
| 116 |
PROPERTIES COMPILE_FLAGS "${ma_pagecache_common_cppflags} -DTEST_PAGE_SIZE=65536 -DTEST_READERS") |
| 117 |
MY_ADD_TEST(ma_pagecache_consist_64kRD) |
| 118 |
|
| 119 |
ADD_EXECUTABLE(ma_pagecache_consist_1kWR-t ${ma_pagecache_consist_src}) |
| 120 |
SET_TARGET_PROPERTIES(ma_pagecache_consist_1kWR-t |
| 121 |
PROPERTIES COMPILE_FLAGS "${ma_pagecache_common_cppflags} -DTEST_PAGE_SIZE=1024 -DTEST_WRITERS") |
| 122 |
MY_ADD_TEST(ma_pagecache_consist_1kWR) |
| 123 |
|
| 124 |
ADD_EXECUTABLE(ma_pagecache_consist_64kWR-t ${ma_pagecache_consist_src}) |
| 125 |
SET_TARGET_PROPERTIES(ma_pagecache_consist_64kWR-t |
| 126 |
PROPERTIES COMPILE_FLAGS "${ma_pagecache_common_cppflags} -DTEST_PAGE_SIZE=65536 -DTEST_WRITERS") |
| 127 |
MY_ADD_TEST(ma_pagecache_consist_64kWR) |
| 128 |
|
| 129 |
ADD_EXECUTABLE(ma_pagecache_rwconsist_1k-t ma_pagecache_rwconsist.c) |
| 130 |
SET_TARGET_PROPERTIES(ma_pagecache_rwconsist_1k-t PROPERTIES COMPILE_FLAGS "-DTEST_PAGE_SIZE=1024") |
| 131 |
MY_ADD_TEST(ma_pagecache_rwconsist_1k) |
| 132 |
|
| 133 |
ADD_EXECUTABLE(ma_pagecache_rwconsist2_1k-t ma_pagecache_rwconsist2.c) |
| 134 |
SET_TARGET_PROPERTIES(ma_pagecache_rwconsist2_1k-t PROPERTIES COMPILE_FLAGS "-DTEST_PAGE_SIZE=1024") |
| 135 |
MY_ADD_TEST(ma_pagecache_rwconsist2_1k) |
| 136 |
|