Skip to content

Commit

Permalink
Refactor of stressMathCore to use Google Test
Browse files Browse the repository at this point in the history
Basic refactoring of test/stressMathCore.cxx to be smaller, more
managable files, and to use Google Test. The functionality is the same,
but is now using Google Test for assertions instead of doing logical
operations on an integer as the test result.

Added test as Google Test

Formatting, cleanup

Assertions from Google Test

Split up functions

Removed timer and decoupled tests

Decoupled GenVector

Decoupled testSMatrix/testVector34

Decoupled SMatrixTest

Assertions

Removed dead/useless code

Use google test instead of c++ assertions

Clang-format

Moved stress test to stress folder

Clang format

Split up files

Split up files

Removed blob file after split up

Clang-format

Renamed fields, methods, macros

Punctuation

Added header

Fixed warning

Resolved dictionary issues

Fixed typo

Proper naming of function names
  • Loading branch information
martinmine committed May 30, 2017
1 parent 7692e84 commit 5f8bb60
Show file tree
Hide file tree
Showing 18 changed files with 1,716 additions and 1,976 deletions.
8 changes: 8 additions & 0 deletions math/mathcore/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,11 @@ foreach(file ${TestSource})
ROOT_ADD_TEST(mathcore-${testname} COMMAND ${testname} LABELS ${${testname}_LABELS})
endforeach()


ROOT_GENERATE_DICTIONARY(TrackMathCoreUnitDictionary ${CMAKE_CURRENT_SOURCE_DIR}/stress/TrackMathCore.h MODULE TrackMathCoreUnitDict LINKDEF stress/TrackMathCoreLinkDef.h)
ROOT_LINKER_LIBRARY(TrackMathCoreUnitDict TrackMathCoreUnitDictionary.cxx LIBRARIES Core MathCore RIO GenVector)

ROOT_ADD_GTEST(stressMathCoreUnit stress/testSMatrix.cxx stress/testGenVector.cxx
stress/testStat.cxx stress/testSVector.cxx stress/testVector.cxx stress/testVector34.cxx
stress/TestHelper.cxx
LIBRARIES Core MathCore Hist RIO Tree GenVector)
364 changes: 0 additions & 364 deletions math/mathcore/test/TrackMathCore.h

This file was deleted.

Loading

0 comments on commit 5f8bb60

Please sign in to comment.