/*
* This file is part of the GROMACS molecular simulation package.
*
- * Copyright (c) 2013,2014, by the GROMACS development team, led by
+ * Copyright (c) 2013,2014,2015, by the GROMACS development team, led by
* Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
* and including many others, as listed in the AUTHORS file in the
* top-level source directory and at http://www.gromacs.org.
* Tests for the mdrun -rerun functionality
*
* \author Mark Abraham <mark.j.abraham@gmail.com>
- * \ingroup module_mdrun
+ * \ingroup module_mdrun_integration_tests
*/
+#include "gmxpre.h"
+
+#include "config.h"
+
#include <gtest/gtest.h>
-#include "moduletest.h"
+
#include "gromacs/options/filenameoption.h"
+
#include "testutils/cmdlinetest.h"
-#include "config.h"
+#include "moduletest.h"
namespace
{
/* Among other things, this test ensures mdrun can read a trajectory. */
TEST_P(MdrunRerun, WithDifferentInputFormats)
{
- useEmptyMdpFile();
- useTopGroAndNdxFromDatabase("spc2");
- EXPECT_EQ(0, callGrompp());
+ runner_.useEmptyMdpFile();
+ runner_.useTopGroAndNdxFromDatabase("spc2");
+ EXPECT_EQ(0, runner_.callGrompp());
std::string rerunFileName = fileManager_.getInputFilePath(GetParam());
::gmx::test::CommandLine rerunCaller;
rerunCaller.append("mdrun");
rerunCaller.addOption("-rerun", rerunFileName);
- ASSERT_EQ(0, callMdrun(rerunCaller));
+ ASSERT_EQ(0, runner_.callMdrun(rerunCaller));
}
/*! \brief Helper array of input files present in the source repo
* version. */
const char *trajectoryFileNames[] = {
"../../../gromacs/gmxana/legacytests/spc2-traj.trr",
-#if defined GMX_USE_TNG && defined HAVE_ZLIB
+#if defined GMX_USE_TNG && HAVE_ZLIB
"../../../gromacs/gmxana/legacytests/spc2-traj.tng",
#endif
"../../../gromacs/gmxana/legacytests/spc2-traj.xtc",