Restructure CommandLineModuleManager tests
authorTeemu Murtola <teemu.murtola@gmail.com>
Sun, 17 May 2015 04:07:41 +0000 (07:07 +0300)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Thu, 21 May 2015 17:33:46 +0000 (19:33 +0200)
commitd41a6d2c361fd8930a74fe87fa90deb843bee64f
tree183547952c10b1176eaf95ea3800ead16533204f
parent011ec764f81f061641eca60426f4b608b244c8ad
Restructure CommandLineModuleManager tests

Split tests from cmdlinemodulemanager.cpp to two files, one testing the
module manager itself, and the other the actual help output.
Extend the help tests slightly for better coverage (in particular for help
topic handling in the help output).

Move common functionality to cmdlinemodulemanagertest.*.

Change-Id: Ic709632deae21aa3ece2074a80de1e37d815d6e1
src/gromacs/commandline/tests/CMakeLists.txt
src/gromacs/commandline/tests/cmdlinehelpmodule.cpp [new file with mode: 0644]
src/gromacs/commandline/tests/cmdlinemodulemanager.cpp
src/gromacs/commandline/tests/cmdlinemodulemanagertest.cpp [new file with mode: 0644]
src/gromacs/commandline/tests/cmdlinemodulemanagertest.h [new file with mode: 0644]
src/gromacs/commandline/tests/refdata/CommandLineHelpModuleTest_ExportsHelp.xml [moved from src/gromacs/commandline/tests/refdata/CommandLineModuleManagerTest_ExportsHelp.xml with 100% similarity]
src/gromacs/commandline/tests/refdata/CommandLineHelpModuleTest_PrintsGeneralHelp.xml [moved from src/gromacs/commandline/tests/refdata/CommandLineModuleManagerTest_RunsGeneralHelp.xml with 97% similarity]
src/gromacs/commandline/tests/refdata/CommandLineHelpModuleTest_PrintsHelpOnTopic.xml [new file with mode: 0644]
src/gromacs/onlinehelp/tests/mock_helptopic.h