| 182 | } |
| 183 | |
| 184 | int TestBTSReader(int argc, char* argv[]) |
| 185 | { |
| 186 | vtkNew<vtkTesting> testHelper; |
| 187 | testHelper->AddArguments(argc, argv); |
| 188 | if (!testHelper->IsFlagSpecified("-D")) |
| 189 | { |
| 190 | std::cerr << "Error: -D /path/to/data was not specified."; |
| 191 | return EXIT_FAILURE; |
| 192 | } |
| 193 | |
| 194 | std::string tempDir = |
| 195 | vtkTestUtilities::GetArgOrEnvOrDefault("-T", argc, argv, "VTK_TEMP_DIR", "Testing/Temporary"); |
| 196 | |
| 197 | std::string dataRoot = testHelper->GetDataRoot(); |
| 198 | std::string singlePatchBtsFile = dataRoot + "/Data/Engys/bts/2400-IDGH.bts"; |
| 199 | std::string expectedSinglePatchBtsFile = dataRoot + "/Data/Engys/vtpd/2400-IDGH.vtpd"; |
| 200 | if (TestReadData(singlePatchBtsFile, expectedSinglePatchBtsFile, tempDir)) |
| 201 | { |
| 202 | return EXIT_FAILURE; |
| 203 | } |
| 204 | |
| 205 | std::string multiplePatchesBtsFile = dataRoot + "/Data/Engys/bts/multiple_patches.bts"; |
| 206 | std::string expectedMultiplePatchesBtsFile = dataRoot + "/Data/Engys/vtpd/multiple_patches.vtpd"; |
| 207 | if (TestReadData(multiplePatchesBtsFile, expectedMultiplePatchesBtsFile, tempDir)) |
| 208 | { |
| 209 | return EXIT_FAILURE; |
| 210 | } |
| 211 | |
| 212 | return EXIT_SUCCESS; |
| 213 | } |
nothing calls this directly
no test coverage detected