| 41 | { |
| 42 | |
| 43 | TEST(NitfWrap, las) |
| 44 | { |
| 45 | std::string exeName(Support::binpath(Support::exename("nitfwrap"))); |
| 46 | |
| 47 | std::string output; |
| 48 | |
| 49 | FileUtils::deleteFile("simple.ntf"); |
| 50 | FileUtils::deleteFile("simple.las"); |
| 51 | FileUtils::deleteFile("simple.las.save"); |
| 52 | Utils::run_shell_command("cp " + Support::datapath("las/simple.las") + |
| 53 | " .", output); |
| 54 | Utils::run_shell_command("cp simple.las simple.las.save", output); |
| 55 | Utils::run_shell_command(exeName + " simple.las", output); |
| 56 | FileUtils::deleteFile("simple.las"); |
| 57 | Utils::run_shell_command(exeName + " -u simple.ntf", output); |
| 58 | uint32_t ret = Support::diff_files("simple.las", "simple.las.save"); |
| 59 | EXPECT_EQ(ret, 0u); |
| 60 | FileUtils::deleteFile("simple.ntf"); |
| 61 | FileUtils::deleteFile("simple.las"); |
| 62 | FileUtils::deleteFile("simple.las.save"); |
| 63 | } |
| 64 | |
| 65 | TEST(NitfWrap, altPath) |
| 66 | { |
nothing calls this directly
no test coverage detected