mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Push for testing of encryption
This commit is contained in:
7
mysql-test/include/have_innodb_encryption.inc
Normal file
7
mysql-test/include/have_innodb_encryption.inc
Normal file
@@ -0,0 +1,7 @@
|
||||
#
|
||||
# Ensure we have innodb encryption incompiled
|
||||
|
||||
if (`select count(*)=0 from information_schema.global_variables where variable_name="innodb_data_encryption_providertype"`)
|
||||
{
|
||||
--skip Test requires InnoDB encryption.
|
||||
}
|
@@ -78,6 +78,8 @@ let $mms_purpose=comparison;
|
||||
let $mms_compare_physically=$mms_compare_physically_save;
|
||||
while ($mms_table_to_use)
|
||||
{
|
||||
# the size of the index file is different for with/without encryption
|
||||
--replace_result 372 <SIZE> 394 <SIZE>
|
||||
eval check table $mms_tname$mms_table_to_use extended;
|
||||
--echo * testing that checksum after recovery is as expected
|
||||
let $new_checksum=`CHECKSUM TABLE $mms_tname$mms_table_to_use`;
|
||||
|
4
mysql-test/include/not_encrypted.inc
Normal file
4
mysql-test/include/not_encrypted.inc
Normal file
@@ -0,0 +1,4 @@
|
||||
if (`select @@innodb_encrypt_tables = 1`)
|
||||
{
|
||||
skip only without encryption;
|
||||
}
|
@@ -19,7 +19,14 @@ if ($rpl_inited)
|
||||
shutdown_server 60;
|
||||
|
||||
# Write file to make mysql-test-run.pl start up the server again
|
||||
--exec echo "restart" > $_expect_file_name
|
||||
if ($restart_parameters)
|
||||
{
|
||||
--exec echo "restart: $restart_parameters" > $_expect_file_name
|
||||
}
|
||||
if (!$restart_parameters)
|
||||
{
|
||||
--exec echo "restart" > $_expect_file_name
|
||||
}
|
||||
|
||||
# Turn on reconnect
|
||||
--enable_reconnect
|
||||
|
Reference in New Issue
Block a user