Modify tests to support rocksdb tests
This commit is contained in:
parent
f053ccd9a6
commit
3ee667a40e
1
localtests/discard-fk/ignore_versions
Normal file
1
localtests/discard-fk/ignore_versions
Normal file
@ -0,0 +1 @@
|
|||||||
|
Percona
|
1
localtests/fail-fk-parent/ignore_versions
Normal file
1
localtests/fail-fk-parent/ignore_versions
Normal file
@ -0,0 +1 @@
|
|||||||
|
Percona
|
1
localtests/fail-fk/ignore_versions
Normal file
1
localtests/fail-fk/ignore_versions
Normal file
@ -0,0 +1 @@
|
|||||||
|
Percona
|
1
localtests/generated-columns-add/ignore_versions
Normal file
1
localtests/generated-columns-add/ignore_versions
Normal file
@ -0,0 +1 @@
|
|||||||
|
Percona
|
1
localtests/generated-columns-rename/ignore_versions
Normal file
1
localtests/generated-columns-rename/ignore_versions
Normal file
@ -0,0 +1 @@
|
|||||||
|
Percona
|
1
localtests/generated-columns-unique/ignore_versions
Normal file
1
localtests/generated-columns-unique/ignore_versions
Normal file
@ -0,0 +1 @@
|
|||||||
|
Percona
|
1
localtests/generated-columns/ignore_versions
Normal file
1
localtests/generated-columns/ignore_versions
Normal file
@ -0,0 +1 @@
|
|||||||
|
Percona
|
1
localtests/geometry/ignore_versions
Normal file
1
localtests/geometry/ignore_versions
Normal file
@ -0,0 +1 @@
|
|||||||
|
Percona
|
1
localtests/spatial/ignore_versions
Normal file
1
localtests/spatial/ignore_versions
Normal file
@ -0,0 +1 @@
|
|||||||
|
Percona
|
@ -99,9 +99,13 @@ test_single() {
|
|||||||
if [ -f $tests_path/$test_name/ignore_versions ] ; then
|
if [ -f $tests_path/$test_name/ignore_versions ] ; then
|
||||||
ignore_versions=$(cat $tests_path/$test_name/ignore_versions)
|
ignore_versions=$(cat $tests_path/$test_name/ignore_versions)
|
||||||
mysql_version=$(gh-ost-test-mysql-master -s -s -e "select @@version")
|
mysql_version=$(gh-ost-test-mysql-master -s -s -e "select @@version")
|
||||||
|
mysql_version_comment=$(gh-ost-test-mysql-master -s -s -e "select @@version_comment")
|
||||||
if echo "$mysql_version" | egrep -q "^${ignore_versions}" ; then
|
if echo "$mysql_version" | egrep -q "^${ignore_versions}" ; then
|
||||||
echo -n "Skipping: $test_name"
|
echo -n "Skipping: $test_name"
|
||||||
return 0
|
return 0
|
||||||
|
elif echo "$mysql_version_comment" | egrep -i -q "^${ignore_versions}" ; then
|
||||||
|
echo -n "Skipping: $test_name"
|
||||||
|
return 0
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -60,6 +60,46 @@ test_mysql_version() {
|
|||||||
gh-ost-test-mysql-master -uroot -e "create user 'gh-ost'@'%' identified by 'gh-ost'"
|
gh-ost-test-mysql-master -uroot -e "create user 'gh-ost'@'%' identified by 'gh-ost'"
|
||||||
gh-ost-test-mysql-master -uroot -e "grant all on *.* to 'gh-ost'@'%'"
|
gh-ost-test-mysql-master -uroot -e "grant all on *.* to 'gh-ost'@'%'"
|
||||||
|
|
||||||
|
local mysql_server=${mysql_version%-*}
|
||||||
|
if echo "$mysql_server" | egrep -i "percona" ; then
|
||||||
|
echo "### Preparing for rocksdb in PerconaServer"
|
||||||
|
gh-ost-test-mysql-master -uroot -e "INSTALL PLUGIN ROCKSDB SONAME 'ha_rocksdb.so'"
|
||||||
|
gh-ost-test-mysql-master -uroot -e "INSTALL PLUGIN ROCKSDB_CFSTATS SONAME 'ha_rocksdb.so'"
|
||||||
|
gh-ost-test-mysql-master -uroot -e "INSTALL PLUGIN ROCKSDB_DBSTATS SONAME 'ha_rocksdb.so'"
|
||||||
|
gh-ost-test-mysql-master -uroot -e "INSTALL PLUGIN ROCKSDB_PERF_CONTEXT SONAME 'ha_rocksdb.so'"
|
||||||
|
gh-ost-test-mysql-master -uroot -e "INSTALL PLUGIN ROCKSDB_PERF_CONTEXT_GLOBAL SONAME 'ha_rocksdb.so'"
|
||||||
|
gh-ost-test-mysql-master -uroot -e "INSTALL PLUGIN ROCKSDB_CF_OPTIONS SONAME 'ha_rocksdb.so'"
|
||||||
|
gh-ost-test-mysql-master -uroot -e "INSTALL PLUGIN ROCKSDB_GLOBAL_INFO SONAME 'ha_rocksdb.so'"
|
||||||
|
gh-ost-test-mysql-master -uroot -e "INSTALL PLUGIN ROCKSDB_COMPACTION_HISTORY SONAME 'ha_rocksdb.so'"
|
||||||
|
gh-ost-test-mysql-master -uroot -e "INSTALL PLUGIN ROCKSDB_COMPACTION_STATS SONAME 'ha_rocksdb.so'"
|
||||||
|
gh-ost-test-mysql-master -uroot -e "INSTALL PLUGIN ROCKSDB_ACTIVE_COMPACTION_STATS SONAME 'ha_rocksdb.so'"
|
||||||
|
gh-ost-test-mysql-master -uroot -e "INSTALL PLUGIN ROCKSDB_DDL SONAME 'ha_rocksdb.so'"
|
||||||
|
gh-ost-test-mysql-master -uroot -e "INSTALL PLUGIN ROCKSDB_INDEX_FILE_MAP SONAME 'ha_rocksdb.so'"
|
||||||
|
gh-ost-test-mysql-master -uroot -e "INSTALL PLUGIN ROCKSDB_LOCKS SONAME 'ha_rocksdb.so'"
|
||||||
|
gh-ost-test-mysql-master -uroot -e "INSTALL PLUGIN ROCKSDB_TRX SONAME 'ha_rocksdb.so'"
|
||||||
|
gh-ost-test-mysql-master -uroot -e "INSTALL PLUGIN ROCKSDB_DEADLOCK SONAME 'ha_rocksdb.so'"
|
||||||
|
gh-ost-test-mysql-master -uroot -e "set global default_storage_engine='ROCKSDB'"
|
||||||
|
gh-ost-test-mysql-master -uroot -e "set global transaction_isolation='READ-COMMITTED'"
|
||||||
|
|
||||||
|
gh-ost-test-mysql-replica -uroot -e "INSTALL PLUGIN ROCKSDB SONAME 'ha_rocksdb.so'"
|
||||||
|
gh-ost-test-mysql-replica -uroot -e "INSTALL PLUGIN ROCKSDB_CFSTATS SONAME 'ha_rocksdb.so'"
|
||||||
|
gh-ost-test-mysql-replica -uroot -e "INSTALL PLUGIN ROCKSDB_DBSTATS SONAME 'ha_rocksdb.so'"
|
||||||
|
gh-ost-test-mysql-replica -uroot -e "INSTALL PLUGIN ROCKSDB_PERF_CONTEXT SONAME 'ha_rocksdb.so'"
|
||||||
|
gh-ost-test-mysql-replica -uroot -e "INSTALL PLUGIN ROCKSDB_PERF_CONTEXT_GLOBAL SONAME 'ha_rocksdb.so'"
|
||||||
|
gh-ost-test-mysql-replica -uroot -e "INSTALL PLUGIN ROCKSDB_CF_OPTIONS SONAME 'ha_rocksdb.so'"
|
||||||
|
gh-ost-test-mysql-replica -uroot -e "INSTALL PLUGIN ROCKSDB_GLOBAL_INFO SONAME 'ha_rocksdb.so'"
|
||||||
|
gh-ost-test-mysql-replica -uroot -e "INSTALL PLUGIN ROCKSDB_COMPACTION_HISTORY SONAME 'ha_rocksdb.so'"
|
||||||
|
gh-ost-test-mysql-replica -uroot -e "INSTALL PLUGIN ROCKSDB_COMPACTION_STATS SONAME 'ha_rocksdb.so'"
|
||||||
|
gh-ost-test-mysql-replica -uroot -e "INSTALL PLUGIN ROCKSDB_ACTIVE_COMPACTION_STATS SONAME 'ha_rocksdb.so'"
|
||||||
|
gh-ost-test-mysql-replica -uroot -e "INSTALL PLUGIN ROCKSDB_DDL SONAME 'ha_rocksdb.so'"
|
||||||
|
gh-ost-test-mysql-replica -uroot -e "INSTALL PLUGIN ROCKSDB_INDEX_FILE_MAP SONAME 'ha_rocksdb.so'"
|
||||||
|
gh-ost-test-mysql-replica -uroot -e "INSTALL PLUGIN ROCKSDB_LOCKS SONAME 'ha_rocksdb.so'"
|
||||||
|
gh-ost-test-mysql-replica -uroot -e "INSTALL PLUGIN ROCKSDB_TRX SONAME 'ha_rocksdb.so'"
|
||||||
|
gh-ost-test-mysql-replica -uroot -e "INSTALL PLUGIN ROCKSDB_DEADLOCK SONAME 'ha_rocksdb.so'"
|
||||||
|
gh-ost-test-mysql-replica -uroot -e "set global default_storage_engine='ROCKSDB'"
|
||||||
|
gh-ost-test-mysql-replica -uroot -e "set global transaction_isolation='READ-COMMITTED'"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "### Running gh-ost tests for $mysql_version"
|
echo "### Running gh-ost tests for $mysql_version"
|
||||||
./localtests/test.sh -b bin/gh-ost
|
./localtests/test.sh -b bin/gh-ost
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user