You've already forked mariadb-connector-c
mirror of
https://github.com/mariadb-corporation/mariadb-connector-c.git
synced 2025-08-07 02:42:49 +03:00
Adding xpand to test suite
This commit is contained in:
@@ -79,6 +79,7 @@ MYSQL *mysql_default = NULL; /* default connection */
|
||||
((mysql_default && strstr(mysql_get_server_info(mysql_default), "maxScale")) ||\
|
||||
(getenv("srv")!=NULL && (strcmp(getenv("srv"), "maxscale") == 0 ||\
|
||||
strcmp(getenv("srv"), "skysql-ha") == 0)))
|
||||
|
||||
#define SKIP_MAXSCALE \
|
||||
if (IS_MAXSCALE()) \
|
||||
{ \
|
||||
@@ -86,6 +87,17 @@ if (IS_MAXSCALE()) \
|
||||
return SKIP; \
|
||||
}
|
||||
|
||||
#define IS_XPAND()\
|
||||
((mysql_default && strstr(mysql_get_server_info(mysql_default), "Xpand")) ||\
|
||||
(getenv("srv")!=NULL && strcmp(getenv("srv"), "xpand") == 0))
|
||||
|
||||
#define SKIP_XPAND \
|
||||
if (IS_XPAND()) \
|
||||
{ \
|
||||
diag("test disabled with xpand"); \
|
||||
return SKIP; \
|
||||
}
|
||||
|
||||
#define SKIP_LOAD_INFILE_DISABLE \
|
||||
if (!((mysql->server_capabilities & CLIENT_LOCAL_FILES) && \
|
||||
(mysql->options.client_flag & CLIENT_LOCAL_FILES))) { \
|
||||
@@ -617,6 +629,11 @@ void get_envvars() {
|
||||
}
|
||||
if ((envvar= getenv("MYSQL_TEST_PLUGINDIR")))
|
||||
plugindir= envvar;
|
||||
|
||||
if (IS_XPAND())
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
MYSQL *my_test_connect(MYSQL *mysql,
|
||||
|
Reference in New Issue
Block a user