| 45 | using namespace pdal; |
| 46 | |
| 47 | TEST(Random, extra_ops) |
| 48 | { |
| 49 | std::string outfile(Support::temppath("out.las")); |
| 50 | |
| 51 | const std::string cmd = Support::binpath("pdal") + " random " |
| 52 | "--count=100 --writers.las.dataformat_id=3 --writers.las.minor_version=3 " + outfile; |
| 53 | |
| 54 | FileUtils::deleteFile(outfile); |
| 55 | std::string output; |
| 56 | Utils::run_shell_command(cmd, output); |
| 57 | |
| 58 | Options o; |
| 59 | o.add("filename", outfile); |
| 60 | |
| 61 | PointTable t; |
| 62 | |
| 63 | LasReader r; |
| 64 | r.setOptions(o); |
| 65 | r.prepare(t); |
| 66 | |
| 67 | MetadataNode n = r.getMetadata(); |
| 68 | EXPECT_EQ(n.findChild("minor_version").value<uint8_t>(), 3); |
| 69 | } |
| 70 |
nothing calls this directly
no test coverage detected