More tests for how mdrun -cpi restarts handle files
commitc7be7d6f2eeabe30bee43de14c0465abc982b839
authorMark Abraham <mark.j.abraham@gmail.com>
Tue, 30 Apr 2019 15:14:35 +0000 (30 17:14 +0200)
committerMark Abraham <mark.j.abraham@gmail.com>
Fri, 3 May 2019 16:32:11 +0000 (3 18:32 +0200)
treeb28953d71cfb9160bdbe99adffd411aaf7019510
parent1115e12ab0e3a27a61ee89c1262500ff8b921a64
More tests for how mdrun -cpi restarts handle files

These tests clarify the behaviour of mdrun -cpi -noappend. It should
append ".partNNNN" to output files, but it is currently possible to
produce output files named like md.part0001.part0002.log

Added some unit tests around the string-handling behaviour that needs
fixing and left TODO comments to show what issues need fixing.

Reduced use of the deprecated mdrun -nsteps option

Refs #2804, #2829

Change-Id: I7e370b835d6fd3512fcaac575d0ff627b33c6e47
src/gromacs/commandline/tests/CMakeLists.txt
src/gromacs/commandline/tests/filenm.cpp [copied from src/programs/mdrun/tests/termination.cpp with 51% similarity]
src/programs/mdrun/tests/moduletest.cpp
src/programs/mdrun/tests/moduletest.h
src/programs/mdrun/tests/termination.cpp