| 49 | } // unnamed namespace |
| 50 | |
| 51 | TEST(PdalApp, load) |
| 52 | { |
| 53 | std::string output; |
| 54 | |
| 55 | Utils::run_shell_command(appName() + " 2>&1", output); |
| 56 | EXPECT_TRUE(output.find("Usage") != std::string::npos); |
| 57 | |
| 58 | Utils::run_shell_command(appName() + " sort 2>&1", output); |
| 59 | EXPECT_TRUE(output.find("kernels.sort") != std::string::npos); |
| 60 | |
| 61 | Utils::run_shell_command(appName() + " foobar 2>&1", output); |
| 62 | EXPECT_TRUE(output.find("not recognized") != std::string::npos); |
| 63 | } |
| 64 | |
| 65 | TEST(PdalApp, log) |
| 66 | { |