Skip to content

Commit

Permalink
MariaRocks: trying to get the MTR tests to work
Browse files Browse the repository at this point in the history
- Add include/have_rocksdb.inc (TODO: is there any way to have this
  file somewhere under storage/rocksdb/mysql-test ?)
- Make rocksdb.test require have_partition.inc because it uses
  partitioned tables
  • Loading branch information
spetrunia committed Oct 24, 2016
1 parent 0156178 commit 8d8858c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions mysql-test/include/have_rocksdb.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
if (`SELECT COUNT(*) = 0 FROM INFORMATION_SCHEMA.ENGINES WHERE engine = 'rocksdb' AND support IN ('DEFAULT')`)
{
--skip Test requires default engine RocksDB
}

# MARIAROCKS_NOT_YET: replication doesn't work yet:
#if (`select count(*) = 0 from information_schema.tables where engine='rocksdb' and table_name='slave_gtid_info'`)
#{
# --skip Test requires default engine RocksDB
#}
--disable_query_log
# Table statistics can vary depending on when the memtables are flushed, so
# flush them at the beginning of the test to ensure the test runs consistently.
set global rocksdb_force_flush_memtable_now = true;
--enable_query_log
1 change: 1 addition & 0 deletions storage/rocksdb/mysql-test/rocksdb/t/rocksdb.test
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
--source include/have_rocksdb.inc
--source include/have_partition.inc

#
# RocksDB Storage Engine tests
Expand Down

0 comments on commit 8d8858c

Please sign in to comment.