Add global directory for simulation test inputs
authorPaul Bauer <paul.bauer.q@gmail.com>
Tue, 6 Nov 2018 16:06:24 +0000 (17:06 +0100)
committerMark Abraham <mark.j.abraham@gmail.com>
Wed, 7 Nov 2018 11:55:00 +0000 (12:55 +0100)
commit6fa4958de9d9a9a3bb3e0129218aa18e40758775
tree8ab45d806f63bcf9cc49f91aa398876b4d6cbb0d
parentec8a8cd88fe4ce12cfcac4e2a1bb644090cbf073
Add global directory for simulation test inputs

Adds the ability to testfilemanager to use input files from a global
defined directory that is set at CMake time and contains the input files
for tpr file generation in the tests.

When a file is not found in the current directory, the code searches
the global archive for it and finally falls back to the current
directory if no file extension was given.

Example case is given for the tool test that needs a pdb and a top file.

Change-Id: Ic94f4a4d0d451024b435bf2900360aa60cd01b11
src/buildinfo.h.cmakein
src/gromacs/tools/tests/report-methods.cpp
src/testutils/simulationdatabase/lysozyme.pdb [moved from src/gromacs/tools/tests/lysozyme.pdb with 100% similarity]
src/testutils/simulationdatabase/lysozyme.top [moved from src/gromacs/tools/tests/lysozyme.top with 100% similarity]
src/testutils/testfilemanager.cpp
src/testutils/testfilemanager.h
src/testutils/testinit.cpp
src/testutils/testinit.h