Add a possibility to run tests under callgrind

Flag 'use_callgrind' make all maxscale-system-test run Maxscale under Valgrind with --tool=callgrind option
This commit is contained in:
Timofey Turenko
2019-04-26 17:30:10 +03:00
parent 07ea6bd9ba
commit 08bd7c99be
4 changed files with 36 additions and 18 deletions

View File

@ -20,7 +20,7 @@ public:
READCONN_SLAVE
};
Maxscales(const char *pref, const char *test_cwd, bool verbose, bool use_valgrind,
Maxscales(const char *pref, const char *test_cwd, bool verbose,
std::string network_config);
int read_env();
@ -338,6 +338,12 @@ public:
*/
bool use_valgrind;
/**
* @brief use_callgrind if true Maxscale will be executed under Valgrind with
* --callgrind option
*/
bool use_callgrind;
/**
* @brief valgring_log_num Counter for Maxscale restarts to avoid Valgrind log overwriting
*/