Consistent approach for whole-program tests
authorTeemu Murtola <teemu.murtola@gmail.com>
Fri, 31 Mar 2017 19:34:02 +0000 (22:34 +0300)
committerMark Abraham <mark.j.abraham@gmail.com>
Mon, 17 Apr 2017 10:32:01 +0000 (12:32 +0200)
commit7fc30699f578eff0358db90e6e93ee2d78523a5f
tree597d1901bee53a574b907d91ec39726c101fed26
parent9d5579480821d523c0248d3d04ff4a2e3b830b4f
Consistent approach for whole-program tests

All tests that essentially execute one command-line program as the test
are now using CommandLineTestBase, which makes them much simpler, easier
to read, and a better source for copy-pasting new tests.  Move the
functionality of IntegrationTestFixture to a helper class that can be
used in any kind of test and not excluding other types of useful
fixtures from tests that need that functionality.

Tests that execute mdrun are not changed here to keep the scope limited.

Change-Id: Ic49593d6e27c48be43021e4fc9b1fcd685d43ffd
15 files changed:
src/gromacs/energyanalysis/tests/legacyenergy.cpp
src/gromacs/energyanalysis/tests/refdata/DhdlTest_ExtractDhdl.xml
src/gromacs/energyanalysis/tests/refdata/ViscosityTest_EinsteinViscosity.xml
src/gromacs/energyanalysis/tests/refdata/ViscosityTest_EinsteinViscosityIntegral.xml
src/gromacs/gmxana/tests/gmx_traj.cpp
src/gromacs/gmxana/tests/gmx_trjconv.cpp
src/gromacs/trajectoryanalysis/tests/clustsize.cpp
src/programs/mdrun/tests/moduletest.cpp
src/programs/mdrun/tests/moduletest.h
src/testutils/CMakeLists.txt
src/testutils/cmdlinetest.cpp
src/testutils/cmdlinetest.h
src/testutils/stdiohelper.cpp [moved from src/testutils/integrationtests.cpp with 87% similarity]
src/testutils/stdiohelper.h [moved from src/testutils/integrationtests.h with 62% similarity]
src/testutils/testutils-doc.h