refactored tests (#147)

This commit is contained in:
Timofey Turenko
2017-12-08 12:23:04 +02:00
committed by GitHub
parent c6daf8c26b
commit 3c88bf1ec6
253 changed files with 5265 additions and 3649 deletions

View File

@ -1,23 +1,47 @@
/**
* @file setup_binlog_gtid.cpp - Basic GTID testing of binlogrouter
* @file setup_binlog_gtid.cpp test of simple binlog router setup
*/
#include <iostream>
#include "testconnections.h"
#include "maxadmin_operations.h"
#include "sql_t1.h"
#include "test_binlog_fnc.h"
int main(int argc, char *argv[])
{
TestConnections test(argc, argv);
test.binlog_master_gtid = true;
test.binlog_slave_gtid = true;
TestConnections * Test = new TestConnections(argc, argv);
Test->set_timeout(3000);
int options_set = 3;
if (Test->smoke)
{
options_set = 1;
}
test.start_binlog();
test_binlog(&test);
Test->repl->connect();
execute_query(Test->repl->nodes[0], (char *) "DROP TABLE IF EXISTS t1;");
Test->repl->close_connections();
sleep(5);
test.check_log_err("SET NAMES utf8mb4", false);
test.check_log_err("set autocommit=1", false);
test.check_log_err("select USER()", false);
Test->binlog_master_gtid = true;
Test->binlog_slave_gtid = true;
// for (int option = 0; option < options_set; option++)
//{
// Test->binlog_cmd_option = option;
Test->start_binlog(0);
test_binlog(Test);
//}
return test.global_result;
Test->check_log_err(0, "SET NAMES utf8mb4", false);
Test->check_log_err(0, "set autocommit=1", false);
Test->check_log_err(0, "select USER()", false);
int rval = Test->global_result;
delete Test;
return rval;
}