summaryrefslogtreecommitdiff
path: root/piglit-print-commands.py
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2012-11-05 07:54:05 -0700
committerBrian Paul <brianp@vmware.com>2012-11-13 13:47:39 -0700
commit3d9965438f0550a2d46526861b4c0ae020a262e8 (patch)
tree16505669bb5929bf4f2a831dd4cac2188239bee1 /piglit-print-commands.py
parent90c1e3e3b388484f3741a03c128d29d5150aa9dd (diff)
piglit-print-commands: add more info, fix incorrect examples
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'piglit-print-commands.py')
-rwxr-xr-xpiglit-print-commands.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/piglit-print-commands.py b/piglit-print-commands.py
index 951206b8d..553685695 100755
--- a/piglit-print-commands.py
+++ b/piglit-print-commands.py
@@ -42,6 +42,10 @@ def usage():
USAGE = """\
Usage: %(progName)s [options] [profile.tests]
+Prints a list of all the tests and how to run them. Ex:
+ piglit test name ::: /path/to/piglit/bin/program <args>
+ glean test name ::: PIGLIT_TEST='...' /path/to/piglit/bin/glean -v -v -v ...
+
Options:
-h, --help Show this message
-t regexp, --tests=regexp Run only matching tests (can be used more
@@ -50,12 +54,12 @@ Options:
more than once)
Example:
%(progName)s tests/all.tests
- %(progName)s -t basic tests/all.tests results/all
- Run all tests whose path contains the word 'basic'
+ %(progName)s -t basic tests/all.tests
+ Print tests whose path contains the word 'basic'
- %(progName)s -t ^glean/ -t tex tests/all.tests results/all
- Run all tests that are in the 'glean' group or whose path contains
- the substring 'tex'
+ %(progName)s -t ^glean/ -t tex tests/all.tests
+ Print tests that are in the 'glean' group or whose path contains
+ the substring 'tex'
"""
print USAGE % {'progName': sys.argv[0]}
sys.exit(1)