Add basic tests for reading/writing structure files
authorTeemu Murtola <teemu.murtola@gmail.com>
Wed, 22 Jul 2015 04:14:14 +0000 (07:14 +0300)
committerTeemu Murtola <teemu.murtola@gmail.com>
Wed, 22 Jul 2015 13:52:16 +0000 (16:52 +0300)
commitd8baf1881edfb32f50fbfb5a7e8add2c058f1006
tree1f56c5e2c4b523ef28517788ffb85e5994d079b0
parent8a2526894f17be3f183282c22d9c20d32a959630
Add basic tests for reading/writing structure files

For each of the supported format (except for tpr), make a simple
roundtrip test, starting from a dummy topology, and doing a
write-read-write cycle, checking that the output files remain the same.
Additional tests for preservation of various properties of the topology
could also be added later.

Test both read_tps_conf() and read_stx_conf() separately for now.

Added to support refactoring of the code.

Change-Id: Idbdfb4fc39b124d9236a54896ef4613ebfe80ceb
src/gromacs/fileio/confio.cpp
src/gromacs/fileio/filenm.h
src/gromacs/fileio/tests/CMakeLists.txt
src/gromacs/fileio/tests/confio.cpp [new file with mode: 0644]
src/testutils/stringtest.cpp
src/testutils/stringtest.h