MXS-2243 System tests brings VMs by themselves (#193)
maxscale-system-test changed in order to control test environment by itself. Every test checks which machines are running, compare with list of needed machines and start new VMs is they are missing in the running machines list. Tests are executiong MDBCI commands, MDBCI executable should be in the PATH
This commit is contained in:
@ -14,17 +14,26 @@ using namespace std;
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
if (argc < 2)
|
||||
if (argc < 3)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
std::string sys =
|
||||
std::string(test_dir) +
|
||||
std::string("/") +
|
||||
std::string(argv[2]) +
|
||||
std::string(" ") +
|
||||
std::string(argv[1]);
|
||||
|
||||
int local_argc = argc - 1;
|
||||
char** local_argv = &argv[1];
|
||||
|
||||
TestConnections* Test = new TestConnections(local_argc, local_argv);
|
||||
(void)Test;
|
||||
TestConnections test(local_argc, local_argv);
|
||||
sleep(3);
|
||||
setenv("src_dir", test_dir, 1);
|
||||
|
||||
return 0;
|
||||
test.add_result(system(sys.c_str()), "Test %s FAILED!", argv[1]);
|
||||
|
||||
return test.global_result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user