Problems related to the --compare-ascii tool in OTB tests protocol
Mantis Issue 228, reported by mgrizonnet, assigned to msavinaud, created: 2011-02-04
The --compare-ascii tools must be more robust, several problems have been reported:
-problem with white spaces : http://dash.orfeo-toolbox.org/testDetails.php?test=2767245&build=40386
-numerical precision : http://ret.orfeo-toolbox.org/SimuPerformances/file/1888f5d64fd4/Testing/ProSail/otbProspectTransTest.cxx
1299084468 - christopShould we start by adding a series of test to make sure we know what we want?
1299579716 - mickaelI have a test on white space and it appears a nex bug: if the comparison fails at one line, all following line comparison are weird ! file1: Output GetSplit(2,10, input region) 2 3 file2: Output GetSplit(2,10,input region) 2 3
output of compare-ascii: 11: Nb lines differents : 1 11: ------------------------------- 11: Base << Output GetSplit(2,10, input region) 11: Test >> Output GetSplit(2,10,input region) 11: ------------------------------- 11: Test >> Output GetSplit(2,10,input region) this last line is linked to the ignore order options... so not a bug or weird behavior
1299579914 - mickaelI will begin to work about manage white space problem and the weird output. Mickaël
1299582662 - mickaelThe output of the following test is more significant to illustrate the weird comparison done by compare ascii : http://dash.orfeo-toolbox.org/