Merge branch 'catch' into v1.x
[awesomized/libmemcached] / test / lib / Shell.hpp
1 #pragma once
2
3 #include "test/lib/common.hpp"
4
5 class Shell {
6 public:
7 explicit Shell(bool redirect_stderr = true);
8 explicit Shell(const string &prefix, bool redirect_stderr = true);
9 bool run(const string &command, string &output);
10 bool run(const string &command);
11 private:
12 string prefix;
13 bool redirect;
14
15 string prepareCommand(const string &command_);
16 };