-
- Downloads
REFORM-1144 Restructure checksum comparison code (#59)
* Create a new Compare class in TestChecksumCompare.(cc|hh) that
contains the code from the function Test::compare_checksums()
(previously in ReForm Preprocess) and Test::compare_reports()
(previously in TestResultAnalysis.(cc|hh)).
Checksum objects reside in the binary that implements the tested
algorithms (A), which may not be the same binary that runs the
comparisons (B). In order to deal with this, we create an instance
of the Compare class for each copy of Base contained within the
final binary. The Compare object from A can be provided to B to
perform the comparisons.
* Create NullOutputStream and a global instance Base::null_os. This
ignores any data streamed to it.
Co-authored-by:
Martin Marinov <martin.marinov@autodesk.com>
Showing
- Test/CMakeLists.txt 1 addition, 2 deletionsTest/CMakeLists.txt
- Test/TestCase.hh 11 additions, 17 deletionsTest/TestCase.hh
- Test/TestChecksumCompare.cc 210 additions, 35 deletionsTest/TestChecksumCompare.cc
- Test/TestChecksumCompare.hh 69 additions, 16 deletionsTest/TestChecksumCompare.hh
- Test/TestReport.cc 14 additions, 14 deletionsTest/TestReport.cc
- Test/TestReport.hh 2 additions, 3 deletionsTest/TestReport.hh
- Test/TestResultAnalysis.hh 0 additions, 42 deletionsTest/TestResultAnalysis.hh
- Utils/CMakeLists.txt 2 additions, 0 deletionsUtils/CMakeLists.txt
- Utils/NullOutputStream.cc 11 additions, 0 deletionsUtils/NullOutputStream.cc
- Utils/NullOutputStream.hh 27 additions, 0 deletionsUtils/NullOutputStream.hh
Loading
Please register or sign in to comment