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

@ -7,7 +7,7 @@
#include "testconnections.h"
int main(int argc, char *argv[])
int main(int argc, char* argv[])
{
TestConnections test(argc, argv);
@ -30,8 +30,11 @@ int main(int argc, char *argv[])
test.maxscales->connect_rwsplit(0);
test.try_query(test.maxscales->conn_rwsplit[0], "USE db2");
execute_query_check_one(test.maxscales->conn_rwsplit[0], "SELECT @@server_id, id FROM t2", server_id[1]);
execute_query_check_one(test.maxscales->conn_rwsplit[0], "SELECT @@server_id, id FROM db1.t1", server_id[0]);
execute_query_check_one(test.maxscales->conn_rwsplit[0], "SELECT @@server_id, a.id FROM t2 as a JOIN db1.t1 as b",
execute_query_check_one(test.maxscales->conn_rwsplit[0],
"SELECT @@server_id, id FROM db1.t1",
server_id[0]);
execute_query_check_one(test.maxscales->conn_rwsplit[0],
"SELECT @@server_id, a.id FROM t2 as a JOIN db1.t1 as b",
server_id[1]);
test.maxscales->close_rwsplit(0);
@ -39,8 +42,11 @@ int main(int argc, char *argv[])
test.maxscales->connect_rwsplit(0);
test.try_query(test.maxscales->conn_rwsplit[0], "USE db1");
execute_query_check_one(test.maxscales->conn_rwsplit[0], "SELECT @@server_id, id FROM t1", server_id[0]);
execute_query_check_one(test.maxscales->conn_rwsplit[0], "SELECT @@server_id, id FROM db2.t2", server_id[1]);
execute_query_check_one(test.maxscales->conn_rwsplit[0], "SELECT @@server_id, a.id FROM t1 as a JOIN db1.t1 as b",
execute_query_check_one(test.maxscales->conn_rwsplit[0],
"SELECT @@server_id, id FROM db2.t2",
server_id[1]);
execute_query_check_one(test.maxscales->conn_rwsplit[0],
"SELECT @@server_id, a.id FROM t1 as a JOIN db1.t1 as b",
server_id[0]);
test.maxscales->close_rwsplit(0);