Unit tests for parse_common_args()
authorTeemu Murtola <teemu.murtola@gmail.com>
Sat, 21 Dec 2013 18:33:44 +0000 (20:33 +0200)
committerRoland Schulz <roland@utk.edu>
Wed, 15 Jan 2014 22:53:09 +0000 (17:53 -0500)
commit26a8f88a19d3f6bcd5f3182b49db32116502447a
tree3124ce745d59c1552c9977b74ccb7816ff87f85f
parent0acdcca504a1bb6ed06cb7d162954af4225a32a9
Unit tests for parse_common_args()

Add unit tests for most of the basic command line parsing functionality
in parse_common_args(), including the file name handling.

To support these tests, extend arrayref.h to also include ArrayRef,
which provides a mutable wrapper for a C array.  This is complete enough
for the purpose of the tests, but may need additional work for more
general use.  Also fix some documentation typos noticed in the existing
code.

Also, fix unintuitive behavior of etTIME options that was revealed by
the tests.

Change-Id: I4b8b3ad92b0efe24fdf478cd39ba246692b036c7
src/gromacs/commandline/pargs.cpp
src/gromacs/commandline/tests/CMakeLists.txt
src/gromacs/commandline/tests/pargs.cpp [new file with mode: 0644]
src/gromacs/utility/arrayref.h