Updated infrastructure for comparing mdrun output in Google Tests
authorMark Abraham <mark.j.abraham@gmail.com>
Thu, 29 Mar 2018 07:36:22 +0000 (09:36 +0200)
committerMark Abraham <mark.j.abraham@gmail.com>
Mon, 16 Jul 2018 16:30:30 +0000 (18:30 +0200)
commitdc3ddfcdc64de2da908f09ab6482dc41adaf894d
tree2b07c1e5f70e4c384f71ed3ab73017d3a2c4aa3f
parent4c266b2978bcb205b6ab63a2bcb38c085c19baf5
Updated infrastructure for comparing mdrun output in Google Tests

Made some GoogleMock matchers so its easy to check containers of reals
and rvecs.

Implemented better infrastructure for reading and comparing energies
and trajectories. In particular, the functionality for reading frames
and comparing them is now separated.

Added a new templated helper function for comparing either
energies or trajectories between pairs of frames that should match.

Removed use of std::pair, which didn't really help anything.

Reordered names of files in CMakeLists.txt, per intention to have
things alphabetical.

Added unordered_map to the set of C++ headers that the checker
understands, now that we use it.

Change-Id: If8d0bf076c07e7326473e613a83b46a6794f8505
15 files changed:
docs/doxygen/includesorter.py
src/gromacs/trajectory/trajectoryframe.h
src/programs/mdrun/tests/CMakeLists.txt
src/programs/mdrun/tests/energycomparison.cpp [new file with mode: 0644]
src/programs/mdrun/tests/energycomparison.h [new file with mode: 0644]
src/programs/mdrun/tests/energyreader.cpp
src/programs/mdrun/tests/energyreader.h
src/programs/mdrun/tests/mdruncomparison.h
src/programs/mdrun/tests/trajectorycomparison.cpp [new file with mode: 0644]
src/programs/mdrun/tests/trajectorycomparison.h [new file with mode: 0644]
src/programs/mdrun/tests/trajectoryreader.cpp
src/programs/mdrun/tests/trajectoryreader.h
src/testutils/CMakeLists.txt
src/testutils/testmatchers.cpp [new file with mode: 0644]
src/testutils/testmatchers.h [new file with mode: 0644]