MXS-2146: Add conditional columnstore usage
Tests can now declare that they require a columnstore setup. If one is not present, the test is skipped.
This commit is contained in:
@ -30,6 +30,7 @@ static std::string required_repl_version;
|
||||
static std::string required_galera_version;
|
||||
static bool restart_galera = false;
|
||||
static bool require_galera = false;
|
||||
static bool require_columnstore = false;
|
||||
static bool multiple_maxscales = false;
|
||||
}
|
||||
|
||||
@ -91,6 +92,11 @@ void TestConnections::require_galera(bool value)
|
||||
maxscale::require_galera = value;
|
||||
}
|
||||
|
||||
void TestConnections::require_columnstore(bool value)
|
||||
{
|
||||
maxscale::require_columnstore = value;
|
||||
}
|
||||
|
||||
void TestConnections::restart_galera(bool value)
|
||||
{
|
||||
maxscale::restart_galera = value;
|
||||
@ -263,6 +269,12 @@ TestConnections::TestConnections(int argc, char* argv[])
|
||||
exit(0);
|
||||
}
|
||||
|
||||
if (maxscale::require_columnstore)
|
||||
{
|
||||
cout << "ColumnStore testing is not yet implemented, skipping test" << endl;
|
||||
exit(0);
|
||||
}
|
||||
|
||||
repl = new Mariadb_nodes("node", test_dir, verbose);
|
||||
if (!no_galera)
|
||||
{
|
||||
|
@ -263,9 +263,12 @@ public:
|
||||
static void require_repl_version(const char* version);
|
||||
static void require_galera_version(const char* version);
|
||||
|
||||
/** Require that a backend is present*/
|
||||
/** Require that galera is present*/
|
||||
static void require_galera(bool value);
|
||||
|
||||
/** Require that columnstore is present*/
|
||||
static void require_columnstore(bool value);
|
||||
|
||||
/**
|
||||
* @brief Specify whether galera should be restarted.
|
||||
*
|
||||
|
Reference in New Issue
Block a user