Unit tests for parse_common_args() file options
authorTeemu Murtola <teemu.murtola@gmail.com>
Sun, 27 Apr 2014 03:49:11 +0000 (06:49 +0300)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Sat, 17 May 2014 03:46:49 +0000 (05:46 +0200)
commitaf7d327e5912dfb7a39e661181713529a9dfc6f5
treec70ed25b14550f4457e09ee80406f4569f1a1bc1
parent602d7179a9b758050448673b256c53c721435928
Unit tests for parse_common_args() file options

Some tests were already there, but extended the set to consider the
paths that check for file existence on the file system.
The tests should now cover most happy paths within parse_file_args().
Many unhappy paths behave quite unintuitively, so they are not tested
to avoid enforcing such unintuitive behavior.

Change-Id: I21c2dc40a3861784d55b6419dd148d6dda26dde5
src/gromacs/commandline/tests/pargs.cpp
src/gromacs/utility/path.cpp
src/gromacs/utility/path.h