| 16 | |
| 17 | |
| 18 | TEST(ShellCommand, Execute) |
| 19 | { |
| 20 | auto command = ShellCommand::execute("echo 'Hello, world!'"); |
| 21 | |
| 22 | std::string res; |
| 23 | readStringUntilEOF(res, command->out); |
| 24 | command->wait(); |
| 25 | |
| 26 | EXPECT_EQ(res, "Hello, world!\n"); |
| 27 | } |
| 28 | |
| 29 | TEST(ShellCommand, ExecuteDirect) |
| 30 | { |