* To help us fund GROMACS development, we humbly ask that you cite
* the research papers on the package. Check out http://www.gromacs.org.
*/
-/*! \defgroup module_mdrun_integration_tests Integration test utilities
+/*! \libinternal
+ * \defgroup module_mdrun_integration_tests Integration test utilities
* \ingroup group_mdrun
*
* \brief Functionality for testing mdrun as a whole
#ifndef GMX_MDRUN_TESTS_MODULETEST_H
#define GMX_MDRUN_TESTS_MODULETEST_H
-#include "testutils/integrationtests.h"
-
#include <gtest/gtest.h>
+
#include "testutils/cmdlinetest.h"
+#include "testutils/integrationtests.h"
namespace gmx
{
//! Use an empty .mdp file as input to grompp
void useEmptyMdpFile();
- //! Use a string as -f input to grompp
+ //! Use a given string as input to grompp
void useStringAsMdpFile(const char *mdpString);
+ //! Use a given string as input to grompp
+ void useStringAsMdpFile(const std::string &mdpString);
//! Use a string as -n input to grompp
void useStringAsNdxFile(const char *ndxString);
//! Use a standard .top and .gro file as input to grompp
void useTopGroAndNdxFromDatabase(const char *name);
- //! Calls grompp to prepare for the mdrun test
+ //! Calls grompp (on rank 0) to prepare for the mdrun test
int callGrompp();
//! Calls grompp (on this rank) to prepare for the mdrun test
int callGromppOnThisRank();
*/
std::string topFileName;
std::string groFileName;
- std::string trrFileName;
- std::string xtcFileName;
+ std::string fullPrecisionTrajectoryFileName;
+ std::string reducedPrecisionTrajectoryFileName;
+ std::string groOutputFileName;
std::string ndxFileName;
std::string mdpInputFileName;
std::string mdpOutputFileName;
std::string tprFileName;
std::string logFileName;
std::string edrFileName;
+ std::string cptFileName;
+ std::string swapFileName;
+ int nsteps;
//@}
};
+/*! \libinternal \brief
+ * Parameterized test fixture for mdrun integration tests
+ */
+class ParameterizedMdrunTestFixture : public gmx::test::MdrunTestFixture,
+ public ::testing::WithParamInterface<const char *>
+{
+};
+
} // namespace test
} // namespace gmx