tests: clarify --help
Use consistent terminology with the code: index starts from zero, numbering starts from one. Fixture 0 runs all fixtures. Suggested-by: Marius Vlad <marius.vlad@collabora.com> Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
committed by
Pekka Paalanen
parent
3ee1f27278
commit
946b933f9e
@@ -344,15 +344,16 @@ static void
|
|||||||
help(const char *exe)
|
help(const char *exe)
|
||||||
{
|
{
|
||||||
printf(
|
printf(
|
||||||
"Usage: %s [options] [testname [index]]\n"
|
"Usage: %s [options] [testname [number]]\n"
|
||||||
"\n"
|
"\n"
|
||||||
"This is a Weston test suite executable that runs some tests.\n"
|
"This is a Weston test suite executable that runs some tests.\n"
|
||||||
"Options:\n"
|
"Options:\n"
|
||||||
" -f, --fixture N Run only fixture index N. Indices start from 1.\n"
|
" -f, --fixture N Run only fixture number N. 0 runs all (default).\n"
|
||||||
" -h, --help Print this help and exit with success.\n"
|
" -h, --help Print this help and exit with success.\n"
|
||||||
" -l, --list List all tests in this executable and exit with success.\n"
|
" -l, --list List all tests in this executable and exit with success.\n"
|
||||||
"testname: Optional; name of the test to execute instead of all tests.\n"
|
"testname: Optional; name of the test to execute instead of all tests.\n"
|
||||||
"index: Optional; for a multi-case test, run the given case only.\n",
|
"number: Optional; for a multi-case test, run the given case only.\n"
|
||||||
|
"Both fixture and case numbering starts from 1.\n",
|
||||||
exe);
|
exe);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user