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

@ -6,7 +6,7 @@
#include "testconnections.h"
int main(int argc, char *argv[])
int main(int argc, char* argv[])
{
TestConnections test(argc, argv);
@ -29,13 +29,21 @@ int main(int argc, char *argv[])
test.repl->close_connections();
test.set_timeout(60);
MYSQL* conn = open_conn_db(test.maxscales->rwsplit_port[0], test.maxscales->ip(0), "test", "auth_test",
"test", false);
MYSQL* conn = open_conn_db(test.maxscales->rwsplit_port[0],
test.maxscales->ip(0),
"test",
"auth_test",
"test",
false);
test.add_result(mysql_errno(conn) == 0, "Connection with users from master should fail");
mysql_close(conn);
test.maxscales->ssh_node(0, "maxadmin remove server server1 \"RW-Split-Router\"", true);
conn = open_conn_db(test.maxscales->rwsplit_port[0], test.maxscales->ip(0), "test", "auth_test", "test",
conn = open_conn_db(test.maxscales->rwsplit_port[0],
test.maxscales->ip(0),
"test",
"auth_test",
"test",
false);
test.add_result(mysql_errno(conn), "Connection should be OK: %s", mysql_error(conn));
test.try_query(conn, "SELECT 1");