 c447e5cf15
			
		
	
	c447e5cf15
	
	
	
		
			
			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.
		
			
				
	
	
		
			32 lines
		
	
	
		
			561 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			561 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #include <iostream>
 | |
| #include <unistd.h>
 | |
| #include "testconnections.h"
 | |
| 
 | |
| using namespace std;
 | |
| 
 | |
| int main(int argc, char* argv[])
 | |
| {
 | |
|     TestConnections* Test = new TestConnections(argc, argv);
 | |
|     int global_result = 0;
 | |
| 
 | |
|     Test->ReadEnv();
 | |
|     Test->PrintIP();
 | |
| 
 | |
|     Test->ConnectMaxscale();
 | |
| 
 | |
| 
 | |
|     execute_query(Test->maxscales->conn_rwsplit[0],
 | |
|                   (char*) "select @@server_id; -- max_slave_replication_lag=120");
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
|     Test->CloseMaxscaleConn();
 | |
| 
 | |
| 
 | |
|     global_result += CheckMaxscaleAlive();
 | |
| 
 | |
|     Test->Copy_all_logs();
 | |
|     return global_result;
 | |
| }
 |