Uncrustify maxscale

See script directory for method. The script to run in the top level
MaxScale directory is called maxscale-uncrustify.sh, which uses
another script, list-src, from the same directory (so you need to set
your PATH). The uncrustify version was 0.66.
This commit is contained in:
Niclas Antti
2018-09-09 22:26:19 +03:00
parent fa7ec95069
commit c447e5cf15
849 changed files with 35002 additions and 27238 deletions

View File

@ -1,7 +1,9 @@
/**
* @file mxs652_bad_ssl.cpp mxs652 regression case ("ssl is configured in a wrong way, but Maxscale can be started and works")
* @file mxs652_bad_ssl.cpp mxs652 regression case ("ssl is configured in a wrong way, but Maxscale can be
*started and works")
*
* - Maxscale.cnf contains ssl configuration for all services in 'router' section instead of 'listener' with 'ssl=require'
* - Maxscale.cnf contains ssl configuration for all services in 'router' section instead of 'listener' with
*'ssl=require'
* - trying to connect to all maxscales->routers[0] without ssl and expect error
*/
@ -13,16 +15,19 @@
using namespace std;
int main(int argc, char *argv[])
int main(int argc, char* argv[])
{
TestConnections * Test = new TestConnections(argc, argv);
TestConnections* Test = new TestConnections(argc, argv);
Test->set_timeout(10);
Test->check_log_err(0, (char *) "Unexpected parameter 'ssl_version'", true);
Test->check_log_err(0, (char*) "Unexpected parameter 'ssl_version'", true);
Test->tprintf("Trying RWSplit, expecting fault\n");
MYSQL * conn = open_conn(Test->maxscales->rwsplit_port[0], Test->maxscales->IP[0], Test->maxscales->user_name, Test->maxscales->password,
false);
MYSQL* conn = open_conn(Test->maxscales->rwsplit_port[0],
Test->maxscales->IP[0],
Test->maxscales->user_name,
Test->maxscales->password,
false);
if (mysql_errno(conn) == 0)
{
@ -31,7 +36,10 @@ int main(int argc, char *argv[])
}
Test->tprintf("Trying ReadConn master, expecting fault\n");
conn = open_conn(Test->maxscales->readconn_master_port[0], Test->maxscales->IP[0], Test->maxscales->user_name, Test->maxscales->password,
conn = open_conn(Test->maxscales->readconn_master_port[0],
Test->maxscales->IP[0],
Test->maxscales->user_name,
Test->maxscales->password,
false);
if (mysql_errno(conn) == 0)
@ -41,7 +49,10 @@ int main(int argc, char *argv[])
}
Test->tprintf("Trying ReadConn slave, expecting fault\n");
conn = open_conn(Test->maxscales->readconn_slave_port[0][0], Test->maxscales->IP[0], Test->maxscales->user_name, Test->maxscales->password,
conn = open_conn(Test->maxscales->readconn_slave_port[0][0],
Test->maxscales->IP[0],
Test->maxscales->user_name,
Test->maxscales->password,
false);
if (mysql_errno(conn) == 0)
@ -54,4 +65,3 @@ int main(int argc, char *argv[])
delete Test;
return rval;
}