29 lines
		
	
	
		
			477 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			477 B
		
	
	
	
		
			C
		
	
	
	
	
	
#ifndef TEST_UTILS_H
 | 
						|
#define TEST_UTILS_H
 | 
						|
#include <poll.h>
 | 
						|
#include <dcb.h>
 | 
						|
#include <housekeeper.h>
 | 
						|
#include <maxscale_test.h>
 | 
						|
#include <log_manager.h>
 | 
						|
 | 
						|
void init_test_env(char *path)
 | 
						|
{
 | 
						|
    int argc = 5;
 | 
						|
    
 | 
						|
    char* argv[] =
 | 
						|
        {
 | 
						|
            "log_manager",
 | 
						|
            "-l",
 | 
						|
            "LOGFILE_ERROR",
 | 
						|
            "-j",
 | 
						|
            path? path:TEST_LOG_DIR,
 | 
						|
            NULL
 | 
						|
        };
 | 
						|
 | 
						|
    skygw_logmanager_init(argc,argv);
 | 
						|
    poll_init();
 | 
						|
    hkinit();
 | 
						|
}
 | 
						|
 | 
						|
#endif
 |