Re: [PATCH 1/3] test-lib: Document short options in t/README
- From
Ramsay Jones <ramsay@ramsay1.demon.co.uk>
- Date
- Mar 24, 2014, 11:39 UTC
- Message-ID
- <5330196A.3030101@ramsay1.demon.co.uk>
- In-Reply-To
- <1395650987-5960-2-git-send-email-ilya.bobyr@gmail.com>
On 24/03/14 08:49, Ilya Bobyr wrote:
Show 18 quoted lines
> Most arguments that could be provided to a test have short forms. > Unless documented the only way to learn then is to read the code. > > Signed-off-by: Ilya Bobyr <ilya.bobyr@gmail.com> > --- > t/README | 10 +++++----- > 1 files changed, 5 insertions(+), 5 deletions(-) > > diff --git a/t/README b/t/README > index caeeb9d..ccb5989 100644 > --- a/t/README > +++ b/t/README > @@ -71,7 +71,7 @@ You can pass --verbose (or -v), --debug (or -d), and --immediate > (or -i) command line argument to the test, or by setting GIT_TEST_OPTS > appropriately before running "make". > > ---verbose:: > +-v,--verbose::
OK
Show 31 quoted lines
> This makes the test more verbose. Specifically, the > command being run and their output if any are also > output. > @@ -81,7 +81,7 @@ appropriately before running "make". > numbers matching <pattern>. The number matched against is > simply the running count of the test within the file. > > ---debug:: > +-d,--debug:: > This may help the person who is developing a new test. > It causes the command defined with test_debug to run. > The "trash" directory (used to store all temporary data > @@ -89,18 +89,18 @@ appropriately before running "make". > failed tests so that you can inspect its contents after > the test finished. > > ---immediate:: > +-i,--immediate:: > This causes the test to immediately exit upon the first > failed test. Cleanup commands requested with > test_when_finished are not executed if the test failed, > in order to keep the state for inspection by the tester > to diagnose the bug. > > ---long-tests:: > +-l,--long-tests:: > This causes additional long-running tests to be run (where > available), for more exhaustive testing. > > ---valgrind=<tool>:: > +-v,--valgrind=<tool>::
The -v short option is taken, above ... :-P
> Execute all Git binaries under valgrind tool <tool> and exit > with status 126 on errors (just like regular tests, this will > only stop the test script when running under -i). >
ATB, Ramsay Jones