You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-10-31 18:30:33 +03:00
fix(mtr): MCOL-5756, fix extended mtr tests
This commit is contained in:
committed by
Leonid Fedorov
parent
55241e6f0e
commit
4f3ed2a6bd
1
mysql-test/columnstore/devregression/suite.opt
Normal file
1
mysql-test/columnstore/devregression/suite.opt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
--plugin-load-add=$HA_COLUMNSTORE_SO
|
||||||
29
mysql-test/columnstore/devregression/suite.pm
Normal file
29
mysql-test/columnstore/devregression/suite.pm
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
package My::Suite::ColumnStore;
|
||||||
|
|
||||||
|
@ISA = qw(My::Suite);
|
||||||
|
|
||||||
|
my $mcs_bin_dir_compiled=$::bindir . '/storage/columnstore/columnstore/bin';
|
||||||
|
my $mcs_ins_dir_installed=$::bindir . '/bin';
|
||||||
|
|
||||||
|
if (-d $mcs_bin_dir_compiled)
|
||||||
|
{
|
||||||
|
$ENV{MCS_MCSSETCONFIG}=$mcs_bin_dir_compiled . "/mcsSetConfig";
|
||||||
|
$ENV{MCS_CPIMPORT}=$mcs_bin_dir_compiled . "/cpimport";
|
||||||
|
$ENV{MCS_SYSCATALOG_MYSQL_SQL}=$::mysqld_variables{'basedir'} . "/storage/columnstore/columnstore/dbcon/mysql/syscatalog_mysql.sql";
|
||||||
|
}
|
||||||
|
elsif (-d $mcs_ins_dir_installed)
|
||||||
|
{
|
||||||
|
$ENV{MCS_MCSSETCONFIG}=$mcs_ins_dir_installed . "/mcsSetConfig";
|
||||||
|
$ENV{MCS_CPIMPORT}=$mcs_ins_dir_installed . "/cpimport";
|
||||||
|
$ENV{MCS_SYSCATALOG_MYSQL_SQL}=$::mysqld_variables{'basedir'} . "/share/columnstore/syscatalog_mysql.sql";
|
||||||
|
}
|
||||||
|
|
||||||
|
sub is_default { 0 }
|
||||||
|
|
||||||
|
sub start_test {
|
||||||
|
# we should guard this for --force-restart flag condition.
|
||||||
|
my ($self, $tinfo)= @_;
|
||||||
|
My::Suite::start_test(@_);
|
||||||
|
}
|
||||||
|
|
||||||
|
bless { };
|
||||||
@@ -5,6 +5,9 @@
|
|||||||
# -------------------------------------------------------------- #
|
# -------------------------------------------------------------- #
|
||||||
#
|
#
|
||||||
--source ../include/have_columnstore.inc
|
--source ../include/have_columnstore.inc
|
||||||
|
|
||||||
|
--source ../include/cross_engine.inc
|
||||||
|
|
||||||
#
|
#
|
||||||
USE tpch1;
|
USE tpch1;
|
||||||
#
|
#
|
||||||
@@ -32,3 +35,6 @@ DROP TABLE test.mcol830b;
|
|||||||
--enable_warnings
|
--enable_warnings
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
--source ../include/drop_cross_engine.inc
|
||||||
|
|
||||||
|
|||||||
28
mysql-test/columnstore/include/cross_engine.inc
Normal file
28
mysql-test/columnstore/include/cross_engine.inc
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
# -------------------------------------------------------------- #
|
||||||
|
# Enable cross engine join
|
||||||
|
# Configure user and password in Columnstore.xml file
|
||||||
|
# -------------------------------------------------------------- #
|
||||||
|
|
||||||
|
--disable_query_log
|
||||||
|
if (!$MASTER_MYPORT)
|
||||||
|
{
|
||||||
|
# Running with --extern
|
||||||
|
let $MASTER_MYPORT=`SELECT @@port`;
|
||||||
|
}
|
||||||
|
|
||||||
|
--exec $MCS_MCSSETCONFIG CrossEngineSupport User 'cejuser'
|
||||||
|
--exec $MCS_MCSSETCONFIG CrossEngineSupport Password 'Vagrant1|0000001'
|
||||||
|
--exec $MCS_MCSSETCONFIG CrossEngineSupport Port $MASTER_MYPORT
|
||||||
|
|
||||||
|
# -------------------------------------------------------------- #
|
||||||
|
# Create corresponding in the server
|
||||||
|
# -------------------------------------------------------------- #
|
||||||
|
|
||||||
|
--disable_warnings
|
||||||
|
CREATE USER IF NOT EXISTS'cejuser'@'localhost' IDENTIFIED BY 'Vagrant1|0000001';
|
||||||
|
--enable_warnings
|
||||||
|
|
||||||
|
GRANT ALL PRIVILEGES ON *.* TO 'cejuser'@'localhost';
|
||||||
|
FLUSH PRIVILEGES;
|
||||||
|
--enable_query_log
|
||||||
|
|
||||||
4
mysql-test/columnstore/include/drop_cross_engine.inc
Normal file
4
mysql-test/columnstore/include/drop_cross_engine.inc
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
--disable_query_log
|
||||||
|
REVOKE ALL PRIVILEGES ON *.* FROM 'cejuser'@'localhost';
|
||||||
|
DROP USER 'cejuser'@'localhost';
|
||||||
|
--enable_query_log
|
||||||
Reference in New Issue
Block a user