52 std::string memoryXDir = armarx::test::getCmakeValue(
"MemoryX_BINARY_DIR");
55 std::string command = memoryXDir +
"/mongod.sh assureRunning";
63 std::string memoryXDir = armarx::test::getCmakeValue(
"MemoryX_BINARY_DIR");
65 std::string command = memoryXDir +
"/mongod.sh stop";
71 exec(
const std::string& command)
73 std::cout <<
"Executing command: " << command << std::endl;
74 if (system(command.c_str()))
76 std::cout <<
"Executing command '" << command <<
"' failed" << std::endl;
77 throw std::runtime_error{
"Executing command '" + command +
"' failed"};