52 std::string memoryXDir = armarx::test::getCmakeValue(
"MemoryX_BINARY_DIR");
55 std::string command = memoryXDir +
"/mongod.sh assureRunning";
62 std::string memoryXDir = armarx::test::getCmakeValue(
"MemoryX_BINARY_DIR");
64 std::string command = memoryXDir +
"/mongod.sh stop";
69 void exec(
const std::string& command)
71 std::cout <<
"Executing command: " << command << std::endl;
72 if (system(command.c_str()))
74 std::cout <<
"Executing command '" << command <<
"' failed" << std::endl;
75 throw std::runtime_error {
"Executing command '" + command +
"' failed"};