Unit test correction

Since we port DiapOTB from OTB v7 to 9, all unit test were disabled as they were not compiling.

Some adaptation has been done in v9_patch branch to compile them. There are still 25 tests that does not work with the followings errors:

  1. Tests otbSARDEMProjectionImageFilterTest_S1CapVerde, otbSARDEMProjectionTest_S1CapVerde, otbSARDEMToAmplitudeTest_S1CapVerde, otbSARDEMProjectionTest_S1ReunionReference, otbSARDEMProjectionTest_S1ReunionSecondary, otbSARDEMProjectionTest_CSKReunionReference, otbSARDEMProjectionTest_CSKReunionSecondary can not use the geoid file egm96.grd because this file is not correct. When emptying the OTB_GEOID_FILE environment var
  2. Tests otbSARCartesianMeanEstimationTest_S1ReunionReference and otbSARCartesianMeanEstimationTest_CSKReunionReference fails with following error Fails with "terminate called after throwing an instance of 'std::runtime_error' what(): Cannot fetch metadata 'band.C' (PolygonsAnalysisImageFilter)" . It seems to be related with grd file
  3. Segmentation fault with otbSARCorrelationRough_S1Reunion, otbSARCorrelationGrid_S1Reunion, otbSARFineDeformationGrid_S1Reunion, otbSARCorrelationRough_CSKReunion, otbSARCorrelationGrid_CSKReunion, otbSARFineDeformationGrid_CSKReunion . For theses test it is better to attach a debugger. otbSARCorrectionGrid_S1Reunion and
  4. otbSARTopographicPhase_S1Reunion and otbSARTopographicPhase_CSKReunion does not have correct application call. Some input parameters are missing
  5. Input parameter file are missing for otbSARRobustInterferogram_S1Reunion, otbSARCompensatedComplex_S1Reunion, otbSARPhaseFiltering_S1Reunion, otbSARAddBandInterferogram_S1Reunion, otbSARRobustInterferogram_CSKReunion, otbSARCompensatedComplex_CSKReunion, otbSARPhaseFiltering_CSKReunion and otbSARAddBandInterferogram_CSKReunion.
  6. Edit from 28/05/25: the tests otbSARCorrectionGrid_S1Reunion and otbSARCorrectionGrid_CSKReunion depends both of otbSARCorrelationGrid_XXX tests .
Edited by Tristan Laurent
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information