Run MaxCtrl test suite in the regression test suite

The MaxCtrl test suite is now a part of the regression test suite. The
cluster tests are expected to fail as that is yet to be implemented.

Also fixed the return value of TestConnections::ssh_maxscale.
This commit is contained in:
Markus Mäkelä
2017-10-11 08:52:56 +03:00
parent 6e4cb3b293
commit 9617b55905
5 changed files with 231 additions and 1 deletions

View File

@ -0,0 +1,26 @@
/**
* Run MaxCtrl test suite on the MaxScale machine
*/
#include "testconnections.h"
int main(int argc, char *argv[])
{
TestConnections test(argc, argv);
test.copy_to_maxscale("test_maxctrl.sh", "~");
// TODO: Don't handle test dependencies in tests
test.tprintf("Installing NPM");
test.ssh_maxscale(true,"yum -y install epel-release;yum -y install npm;");
test.tprintf("Starting test");
test.verbose = true;
int rv = test.ssh_maxscale(false, "./test_maxctrl.sh");
test.verbose = false;
test.tprintf("Removing NPM");
test.ssh_maxscale(true, "yum -y remove npm epel-release");
return rv;
}