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,5 +1,6 @@
/**
* @file bug656.cpp Checks Maxscale behaviour in case if Master node is blocked - NOT NEEDED BECAUSE IT IS ALREADY CHECKED BY OTHER TESTS!!!!
* @file bug656.cpp Checks Maxscale behaviour in case if Master node is blocked - NOT NEEDED BECAUSE IT IS
*ALREADY CHECKED BY OTHER TESTS!!!!
*
* - ConnecT to RWSplit
* - block Mariadb server on Master node by Firewall
@ -10,9 +11,9 @@
#include "testconnections.h"
#include "maxadmin_operations.h"
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(30);
Test->tprintf("Connecting to RWSplit %s\n", Test->maxscales->IP[0]);
@ -21,10 +22,12 @@ int main(int argc, char *argv[])
Test->tprintf("Setup firewall to block mysql on master\n");
Test->repl->block_node(0);
//printf("Trying query to RWSplit, expecting failure, but not a crash\n"); fflush(stdout);
//execute_query(Test->maxscales->conn_rwsplit[0], (char *) "show processlist;");
execute_maxadmin_command_print(Test->maxscales->IP[0], (char *) "admin", Test->maxscales->maxadmin_password[0],
(char *) "show servers");
// printf("Trying query to RWSplit, expecting failure, but not a crash\n"); fflush(stdout);
// execute_query(Test->maxscales->conn_rwsplit[0], (char *) "show processlist;");
execute_maxadmin_command_print(Test->maxscales->IP[0],
(char*) "admin",
Test->maxscales->maxadmin_password[0],
(char*) "show servers");
Test->tprintf("Setup firewall back to allow mysql and wait\n");
Test->repl->unblock_node(0);
@ -38,5 +41,3 @@ int main(int argc, char *argv[])
delete Test;
return rval;
}