Build the replicaton-manager test

The test wasn't built as it is not a part of the test suite. The
executable should be built but it should not be added to the test suite.

Changed the management script to only add the configuration and added a
call to it at the start of the test.
This commit is contained in:
Markus Mäkelä
2017-10-24 23:24:39 +03:00
parent 94c066ff65
commit de800766ef
3 changed files with 10 additions and 15 deletions

View File

@ -99,18 +99,16 @@ int main(int argc, char** argv)
TestConnections test(argc, argv);
// TODO: Figure out how to do this without having replication-manager pre-installed on the system
//
// test.tprintf("Installing replication-manager");
// int rc = system("./manage_mrm.sh install > manage_mrm.log");
// if (!WIFEXITED(rc) || WEXITSTATUS(rc) != 0)
// {
// test.tprintf("Failed to install replication-manager, see manage_mrm.log for more details");
// return -1;
// }
test.tprintf("Installing replication-manager");
int rc = system("new_replication_manager=yes ./manage_mrm.sh install > manage_mrm.log");
if (!WIFEXITED(rc) || WEXITSTATUS(rc) != 0)
{
test.tprintf("Failed to install replication-manager, see manage_mrm.log for more details");
return -1;
}
// // Wait a few seconds
// sleep(5);
// Wait a few seconds
sleep(5);
test.tprintf("Creating table and inserting data");
get_input();