Generalize command-line unit testing machinery
commite795200ee8e040c7769d182a9214c8daf5bdf144
authorTeemu Murtola <teemu.murtola@gmail.com>
Mon, 29 Sep 2014 05:10:28 +0000 (29 08:10 +0300)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Sat, 11 Oct 2014 16:36:37 +0000 (11 18:36 +0200)
tree303c1dba356b7ff8a8812f6268ce66d994d7ab31
parente336499626008e8ff06b1648c1b7afbab38c949b
Generalize command-line unit testing machinery

Move machinery for unit testing a command-line program with input and
output files from trajectoryanalysis tests to testutils, and make it a
bit more general.

Existing code using IntegrationTestFixture could be also adapted to use
this (perhaps by making IntegrationTestFixture inherit from
CommandLineTestBase), but that is left for another change.

Change-Id: I3dd9f9667f727be30cf26a6b9d22dd6d44dfef9e
src/gromacs/trajectoryanalysis/tests/moduletest.cpp
src/gromacs/trajectoryanalysis/tests/moduletest.h
src/testutils/cmdlinetest.cpp
src/testutils/cmdlinetest.h