From 4e9a5af9267fff0cdac4aaf4bdfb56678cf2ecbc Mon Sep 17 00:00:00 2001 From: Timofey Turenko Date: Fri, 26 Jan 2018 09:23:32 +0200 Subject: [PATCH] add execution of add_core_conf.sh to 'check_backend' to set up core dump saving --- maxscale-system-test/check_backend.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/maxscale-system-test/check_backend.cpp b/maxscale-system-test/check_backend.cpp index fb045c532..fcdb3926a 100644 --- a/maxscale-system-test/check_backend.cpp +++ b/maxscale-system-test/check_backend.cpp @@ -8,8 +8,21 @@ int main(int argc, char *argv[]) { + char src[1024]; + char dst[1024]; + TestConnections * Test = new TestConnections(argc, argv); + for (int i = 0; i < Test->maxscales->N; i++) + { + sprintf(src, "%s/mdbci/add_core_cnf.sh", test_dir); + Test->maxscales->ssh_node_f(i, false, "mkdir %s/ccore", Test->maxscales->access_homedir[i]); + sprintf(dst, "%s/ccore/", Test->maxscales->access_homedir[i]); + Test->maxscales->copy_to_node(i, src, dst); + sprintf(dst, "%s/ccore/", Test->maxscales->access_homedir[i]); + Test->maxscales->ssh_node_f(i, true, "%s/ccore/add_core_cnf.sh", Test->maxscales->access_homedir[i]); + } + /*Test->restart_maxscale(); sleep(5);*/ Test->set_timeout(10);