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>
dev
Pekka Paalanen 4 years ago committed by Pekka Paalanen
parent 3ee1f27278
commit 946b933f9e
  1. 7
      tests/weston-test-runner.c

@ -344,15 +344,16 @@ static void
help(const char *exe)
{
printf(
"Usage: %s [options] [testname [index]]\n"
"Usage: %s [options] [testname [number]]\n"
"\n"
"This is a Weston test suite executable that runs some tests.\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"
" -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"
"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);
}

Loading…
Cancel
Save