MXS-2900 Cleanup system test information generation
The system test information array now has the full path to the MaxScale configuration file. The array now only contains labels given in CMakeLists.txt. The resulting .cc-file has linebreaks for readability.
This commit is contained in:
@ -7,6 +7,8 @@
|
||||
#include <unistd.h>
|
||||
#include "testconnections.h"
|
||||
|
||||
using std::string;
|
||||
|
||||
const char* bad_configs[] =
|
||||
{
|
||||
"bug359",
|
||||
@ -35,8 +37,9 @@ int main(int argc, char** argv)
|
||||
|
||||
for (int i = 0; bad_configs[i]; i++)
|
||||
{
|
||||
printf("Testing %s...\n", bad_configs[i]);
|
||||
if (test->test_bad_config(0, bad_configs[i]))
|
||||
string config_file_path = (string)test_dir + "/cnf/maxscale.cnf.template." + bad_configs[i];
|
||||
printf("Testing %s...\n", config_file_path.c_str());
|
||||
if (test->test_bad_config(0, config_file_path))
|
||||
{
|
||||
printf("FAILED\n");
|
||||
rval++;
|
||||
|
||||
Reference in New Issue
Block a user