diff options
Diffstat (limited to 'sql-bench')
-rw-r--r-- | sql-bench/CMakeLists.txt | 58 | ||||
-rw-r--r-- | sql-bench/example | 4 |
2 files changed, 34 insertions, 28 deletions
diff --git a/sql-bench/CMakeLists.txt b/sql-bench/CMakeLists.txt index 58ae070b387..f99627a5fd8 100644 --- a/sql-bench/CMakeLists.txt +++ b/sql-bench/CMakeLists.txt @@ -34,38 +34,44 @@ INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/Data/Wisconsin INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/limits DESTINATION ${prefix}sql-bench COMPONENT SqlBench) -FILE(GLOB all_files ${CMAKE_CURRENT_SOURCE_DIR}/*) +SET(all_files README bench-count-distinct.sh bench-init.pl.sh + compare-results.sh copy-db.sh crash-me.sh example.bat + graph-compare-results.sh innotest1.sh innotest1a.sh innotest1b.sh + innotest2.sh innotest2a.sh innotest2b.sh myisam.cnf pwd.bat + run-all-tests.sh server-cfg.sh test-ATIS.sh test-alter-table.sh + test-big-tables.sh test-connect.sh test-create.sh test-insert.sh + test-select.sh test-table-elimination.sh test-transactions.sh + test-wisconsin.sh uname.bat + ) FOREACH(file ${all_files}) - IF(NOT IS_DIRECTORY ${file} AND NOT ${file} MATCHES "Make|as3ap|/example$" ) - GET_FILENAME_COMPONENT(ext ${file} EXT) - GET_FILENAME_COMPONENT(name ${file} NAME) - SET(target ${name}) - IF(ext MATCHES ".sh$") - # Those are perl files actually - STRING(REPLACE ".sh" "" target ${target} ) - IF(WIN32) - IF(NOT ext MATCHES ".pl") - SET(target "${target}.pl") - ENDIF() + GET_FILENAME_COMPONENT(ext ${file} EXT) + GET_FILENAME_COMPONENT(name ${file} NAME) + SET(target ${name}) + IF(ext MATCHES ".sh$") + # Those are perl files actually + STRING(REPLACE ".sh" "" target ${target} ) + IF(WIN32) + IF(NOT ext MATCHES ".pl") + SET(target "${target}.pl") ENDIF() ENDIF() - SET(target "${CMAKE_CURRENT_BINARY_DIR}/${target}") - CONFIGURE_FILE(${file} ${target} COPYONLY) - IF (UNIX AND NOT ${name} MATCHES "README") - EXECUTE_PROCESS(COMMAND chmod +x ${target}) - ENDIF() - IF (ext MATCHES ".bat") - IF(WIN32) - INSTALL(PROGRAMS ${target} - DESTINATION ${prefix}sql-bench COMPONENT SqlBench) - ENDIF() - ELSEIF(name MATCHES "README") - INSTALL(FILES ${target} - DESTINATION ${prefix}sql-bench COMPONENT SqlBench) - ELSE() + ENDIF() + SET(target "${CMAKE_CURRENT_BINARY_DIR}/${target}") + CONFIGURE_FILE(${file} ${target} COPYONLY) + IF (UNIX AND NOT ${name} MATCHES "README") + EXECUTE_PROCESS(COMMAND chmod +x ${target}) + ENDIF() + IF (ext MATCHES ".bat") + IF(WIN32) INSTALL(PROGRAMS ${target} DESTINATION ${prefix}sql-bench COMPONENT SqlBench) ENDIF() + ELSEIF(name MATCHES "README") + INSTALL(FILES ${target} + DESTINATION ${prefix}sql-bench COMPONENT SqlBench) + ELSE() + INSTALL(PROGRAMS ${target} + DESTINATION ${prefix}sql-bench COMPONENT SqlBench) ENDIF() ENDFOREACH() diff --git a/sql-bench/example b/sql-bench/example index 877fd080ac5..392edf21c57 100644 --- a/sql-bench/example +++ b/sql-bench/example @@ -6,9 +6,9 @@ machine="Linux-x64" # InnoDB tests -./run-all-tests --suffix=-innodb --comments="Engine=InnoDB --innodb_buffer_pool_size=256M --innodb_additional_mem_pool_size=20M --innodb_log_file_size=1000M --innodb_log_buffer_size=16M --innodb_lock_wait_timeout=50 --innodb_flush_log_at_trx_commit=1 --innodb_flush_method=O_DIRECT --innodb_log_files_in_group=2 --skip-innodb-doublewrite" --create-options="ENGINE=InnoDB" --hw="$hw" --optimization="$optimization" --machine="$machine" --log +./run-all-tests --suffix=-innodb --comments="Engine=InnoDB --innodb_buffer_pool_size=256M --innodb_log_file_size=1000M --innodb_log_buffer_size=16M --innodb_lock_wait_timeout=50 --innodb_flush_log_at_trx_commit=1 --innodb_flush_method=O_DIRECT --innodb_log_files_in_group=2 --skip-innodb-doublewrite" --create-options="ENGINE=InnoDB" --hw="$hw" --optimization="$optimization" --machine="$machine" --log -./run-all-tests --suffix=_fast-innodb --comments="Engine=InnoDB --innodb_buffer_pool_size=256M --innodb_additional_mem_pool_size=20M --innodb_log_file_size=1000M --innodb_log_buffer_size=16M --innodb_lock_wait_timeout=50 --innodb_flush_log_at_trx_commit=1 --innodb_flush_method=O_DIRECT --innodb_log_files_in_group=2 --skip-innodb-doublewrite" --create-options="ENGINE=InnoDB" --hw="$hw" --optimization="$optimization" --machine="$machine" --fast --log +./run-all-tests --suffix=_fast-innodb --comments="Engine=InnoDB --innodb_buffer_pool_size=256M --innodb_log_file_size=1000M --innodb_log_buffer_size=16M --innodb_lock_wait_timeout=50 --innodb_flush_log_at_trx_commit=1 --innodb_flush_method=O_DIRECT --innodb_log_files_in_group=2 --skip-innodb-doublewrite" --create-options="ENGINE=InnoDB" --hw="$hw" --optimization="$optimization" --machine="$machine" --fast --log # MyISAM tests |