MXS-2900 Include from predefined search directories in maxtest
Similar style is used in other MaxScale libraries.
This commit is contained in:
parent
3c0021828c
commit
63d1f66797
@ -26,6 +26,7 @@ include_directories(${CMAKE_BINARY_DIR})
|
||||
# Include the CDC connector headers
|
||||
include_directories(${CMAKE_SOURCE_DIR}/../connectors/cdc-connector/)
|
||||
include_directories(maxtest/include/maxtest)
|
||||
include_directories(maxtest/include)
|
||||
|
||||
# Tool used to check backend state
|
||||
add_test_executable_notest(check_backend.cpp check_backend check_backend LABELS CONFIG REPL_BACKEND GALERA_BACKEND SECOND_MAXSCALE)
|
||||
|
@ -1,2 +1 @@
|
||||
include_directories(include/maxtest)
|
||||
add_subdirectory(src)
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "testconnections.h"
|
||||
#include <maxtest/testconnections.h>
|
||||
|
||||
/**
|
||||
* @brief test_longblob INSERT big amount of data into lobg_blob_table
|
||||
|
@ -23,8 +23,8 @@
|
||||
|
||||
#include <errno.h>
|
||||
#include <string>
|
||||
#include "nodes.hh"
|
||||
#include "mariadb_nodes.h"
|
||||
#include <maxtest/nodes.hh>
|
||||
#include <maxtest/mariadb_nodes.h>
|
||||
|
||||
#define CLUSTRIX_DEPS_YUM "yum install -y bzip2 wget screen ntp ntpdate vim htop mdadm"
|
||||
#define WGET_CLUSTRIX "wget http://files.clustrix.com/releases/software/clustrix-9.1.4.el7.tar.bz2"
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "testconnections.h"
|
||||
#include <maxtest/testconnections.h>
|
||||
#include <string>
|
||||
#include <set>
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "testconnections.h"
|
||||
#include <maxtest/testconnections.h>
|
||||
|
||||
/**
|
||||
* @brief create_event_size Creates SQL query to generate even of given size
|
||||
|
@ -13,10 +13,10 @@
|
||||
*/
|
||||
|
||||
|
||||
#include "mariadb_func.h"
|
||||
#include <maxtest/mariadb_func.h>
|
||||
#include <errno.h>
|
||||
#include <string>
|
||||
#include "nodes.hh"
|
||||
#include <maxtest/nodes.hh>
|
||||
|
||||
/**
|
||||
* @brief A class to handle backend nodes
|
||||
|
@ -12,7 +12,7 @@
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include "testconnections.h"
|
||||
#include <maxtest/testconnections.h>
|
||||
#include <maxscale/jansson.hh>
|
||||
|
||||
/**
|
||||
|
@ -1,9 +1,9 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include "nodes.hh"
|
||||
#include "mariadb_func.h"
|
||||
#include "mariadb_nodes.h"
|
||||
#include <maxtest/nodes.hh>
|
||||
#include <maxtest/mariadb_func.h>
|
||||
#include <maxtest/mariadb_nodes.h>
|
||||
|
||||
class Maxscales: public Nodes
|
||||
{
|
||||
|
@ -6,7 +6,7 @@
|
||||
#include <string>
|
||||
|
||||
#include <maxbase/ccdefs.hh>
|
||||
#include "mariadb_func.h"
|
||||
#include <maxtest/mariadb_func.h>
|
||||
|
||||
typedef std::set<std::string> StringSet;
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
#include <iostream>
|
||||
#include <unistd.h>
|
||||
#include <jansson.h>
|
||||
#include "testconnections.h"
|
||||
#include <maxtest/testconnections.h>
|
||||
|
||||
class RDS
|
||||
{
|
||||
|
@ -1,5 +1,5 @@
|
||||
#pragma once
|
||||
#include "test_dir.hh"
|
||||
#include <maxtest/test_dir.hh>
|
||||
|
||||
struct TestDefinition
|
||||
{
|
||||
|
@ -1,9 +1,9 @@
|
||||
#pragma once
|
||||
|
||||
#include "mariadb_nodes.h"
|
||||
#include "clustrix_nodes.h"
|
||||
#include "maxscales.hh"
|
||||
#include "test_dir.hh"
|
||||
#include <maxtest/mariadb_nodes.h>
|
||||
#include <maxtest/clustrix_nodes.h>
|
||||
#include <maxtest/maxscales.hh>
|
||||
#include <maxtest/test_dir.hh>
|
||||
#include <fcntl.h>
|
||||
#include <pthread.h>
|
||||
#include <sys/time.h>
|
||||
|
@ -1,9 +1,9 @@
|
||||
#include "big_load.h"
|
||||
#include <maxtest/big_load.h>
|
||||
|
||||
#include <pthread.h>
|
||||
#include "testconnections.h"
|
||||
#include "sql_t1.h"
|
||||
#include "get_com_select_insert.h"
|
||||
#include <maxtest/testconnections.h>
|
||||
#include <maxtest/sql_t1.h>
|
||||
#include <maxtest/get_com_select_insert.h>
|
||||
|
||||
|
||||
void load(long int* new_inserts,
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "blob_test.h"
|
||||
#include <maxtest/blob_test.h>
|
||||
|
||||
int test_longblob(TestConnections* Test,
|
||||
MYSQL* conn,
|
||||
|
@ -14,8 +14,7 @@
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
#include <regex>
|
||||
#include <sstream>
|
||||
#include "clustrix_nodes.h"
|
||||
#include <maxtest/clustrix_nodes.h>
|
||||
|
||||
int Clustrix_nodes::prepare_server(int m)
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "config_operations.h"
|
||||
#include <maxtest/config_operations.h>
|
||||
|
||||
// The configuration should use these names for the services, listeners and monitors
|
||||
#define SERVICE_NAME1 "rwsplit-service"
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include <iostream>
|
||||
#include <unistd.h>
|
||||
#include "testconnections.h"
|
||||
#include <maxtest/testconnections.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "envv.hh"
|
||||
#include <maxtest/envv.hh>
|
||||
|
||||
#include <cstring>
|
||||
#include <cstdarg>
|
||||
|
@ -1,9 +1,8 @@
|
||||
#include <iostream>
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include "execute_cmd.hh"
|
||||
#include <maxtest/execute_cmd.hh>
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include "fw_copy_rules.h"
|
||||
#include <maxtest/fw_copy_rules.h>
|
||||
#include <sstream>
|
||||
#include "testconnections.h"
|
||||
#include <maxtest/testconnections.h>
|
||||
|
||||
void copy_rules(TestConnections* Test, const char* rules_name, const char* rules_dir)
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "mariadb_nodes.h"
|
||||
#include <maxtest/mariadb_nodes.h>
|
||||
|
||||
/**
|
||||
* Reads COM_SELECT and COM_INSERT variables from all nodes and stores into 'selects' and 'inserts'
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include "keepalived_func.h"
|
||||
#include "get_my_ip.h"
|
||||
#include "testconnections.h"
|
||||
#include <maxtest/testconnections.h>
|
||||
|
||||
char* print_version_string(TestConnections* Test)
|
||||
{
|
||||
|
@ -11,8 +11,8 @@
|
||||
*/
|
||||
|
||||
|
||||
#include "mariadb_func.h"
|
||||
#include "test_dir.hh"
|
||||
#include <maxtest/mariadb_func.h>
|
||||
#include <maxtest/test_dir.hh>
|
||||
#include <ctype.h>
|
||||
#include <sstream>
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
* @endverbatim
|
||||
*/
|
||||
|
||||
#include "mariadb_nodes.h"
|
||||
#include <maxtest/mariadb_nodes.h>
|
||||
#include <climits>
|
||||
#include <string>
|
||||
#include <sstream>
|
||||
@ -19,7 +19,7 @@
|
||||
#include <future>
|
||||
#include <functional>
|
||||
#include <algorithm>
|
||||
#include "envv.hh"
|
||||
#include <maxtest/envv.hh>
|
||||
|
||||
using std::cout;
|
||||
using std::endl;
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include <iostream>
|
||||
#include <unistd.h>
|
||||
#include "testconnections.h"
|
||||
#include <maxtest/testconnections.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <sys/socket.h>
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include "maxscales.hh"
|
||||
#include <maxtest/maxscales.hh>
|
||||
#include <string>
|
||||
#include "envv.hh"
|
||||
#include <maxtest/envv.hh>
|
||||
|
||||
#define DEFAULT_MAXSCALE_CNF "/etc/maxscale.cnf"
|
||||
#define DEFAULT_MAXSCALE_LOG_DIR "/var/log/maxscale/"
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "nodes.hh"
|
||||
#include <maxtest/nodes.hh>
|
||||
#include <string>
|
||||
#include <cstring>
|
||||
#include <iostream>
|
||||
@ -7,7 +7,7 @@
|
||||
#include <algorithm>
|
||||
#include <signal.h>
|
||||
|
||||
#include "envv.hh"
|
||||
#include <maxtest/envv.hh>
|
||||
|
||||
Nodes::Nodes(const char* pref,
|
||||
const std::string& network_config,
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "execute_cmd.hh"
|
||||
#include <maxtest/execute_cmd.hh>
|
||||
#include "rds_vpc.h"
|
||||
|
||||
RDS::RDS(char* cluster)
|
||||
|
@ -1,8 +1,8 @@
|
||||
#include "sql_t1.h"
|
||||
#include <maxtest/sql_t1.h>
|
||||
|
||||
#include <cstdio>
|
||||
#include <pthread.h>
|
||||
#include "mariadb_func.h"
|
||||
#include <maxtest/mariadb_func.h>
|
||||
|
||||
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
|
||||
static char** sql = NULL;
|
||||
|
@ -1,7 +1,7 @@
|
||||
#include <iostream>
|
||||
#include "testconnections.h"
|
||||
#include <maxtest/testconnections.h>
|
||||
#include "maxadmin_operations.h"
|
||||
#include "sql_t1.h"
|
||||
#include <maxtest/sql_t1.h>
|
||||
|
||||
#include "test_binlog_fnc.h"
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "test_info.hh"
|
||||
#include <maxtest/test_info.hh>
|
||||
|
||||
const TestDefinition test_definitions_arr[] =
|
||||
{
|
||||
|
@ -17,12 +17,12 @@
|
||||
#include <maxbase/stacktrace.hh>
|
||||
#include <algorithm>
|
||||
|
||||
#include "mariadb_func.h"
|
||||
#include <maxtest/mariadb_func.h>
|
||||
#include "maxadmin_operations.h"
|
||||
#include "sql_t1.h"
|
||||
#include "testconnections.h"
|
||||
#include "test_info.hh"
|
||||
#include "envv.hh"
|
||||
#include <maxtest/sql_t1.h>
|
||||
#include <maxtest/testconnections.h>
|
||||
#include <maxtest/test_info.hh>
|
||||
#include <maxtest/envv.hh>
|
||||
|
||||
using namespace mxb;
|
||||
using std::cout;
|
||||
|
Loading…
x
Reference in New Issue
Block a user