Files
MaxScale/maxscale-system-test/config_test.cpp
Markus Mäkelä 819a0296ab Fix 2.0 tests
Altered some of the tests to look for less specific log entries. Removed
new options from galera configurations. Reduced log output of some tests.
2017-05-30 15:42:06 +03:00

49 lines
812 B
C++

/**
* Bad configuration test
*/
#include <iostream>
#include <unistd.h>
#include "testconnections.h"
const char *bad_configs[] =
{
"bug359",
"bug495",
"bug526",
"bug479",
"bug493",
"bad_ssl",
//"mxs710_bad_socket",
//"mxs711_two_ports",
"mxs720_line_with_no_equal",
"mxs720_wierd_line",
"mxs799",
NULL
};
int main(int argc, char **argv)
{
TestConnections *test = new TestConnections(argc, argv);
int rval = 0;
test->stop_maxscale();
for (int i = 0; bad_configs[i]; i++)
{
printf("Testing %s...\n", bad_configs[i]);
if (test->test_bad_config(bad_configs[i]))
{
printf("FAILED\n");
rval++;
}
else
{
printf("SUCCESS\n");
}
}
return rval;
}