]> git.cworth.org Git - apitrace-tests/commitdiff
Allow to specify the mesa demo on command line.
authorJosé Fonseca <jose.r.fonseca@gmail.com>
Tue, 17 May 2011 09:09:24 +0000 (10:09 +0100)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Tue, 17 May 2011 09:09:24 +0000 (10:09 +0100)
mesademos.py

index 251e1756f7efd6f7de45a62835a6fd8673b855f2..6b9519e98f6ef47b10d11ee4be74ba5236fcc5cc 100755 (executable)
@@ -516,7 +516,6 @@ tests = [
     #'slang/vstest',
     'tests/afsmultiarb',
     'tests/antialias',
     #'slang/vstest',
     'tests/afsmultiarb',
     'tests/antialias',
-    'tests/api_speed.py',
     'tests/arbfpspec',
     'tests/arbfptest1',
     'tests/arbfptexture',
     'tests/arbfpspec',
     'tests/arbfptest1',
     'tests/arbfptexture',
@@ -672,7 +671,7 @@ def main():
 
     # Parse command line options
     optparser = optparse.OptionParser(
 
     # Parse command line options
     optparser = optparse.OptionParser(
-        usage='\n\t%prog [options] ',
+        usage='\n\t%prog [options] [demo] ...',
         version='%%prog')
     optparser.add_option(
         '--build', metavar='PATH',
         version='%%prog')
     optparser.add_option(
         '--build', metavar='PATH',
@@ -686,7 +685,7 @@ def main():
 
     (options, args) = optparser.parse_args(sys.argv[1:])
     if args:
 
     (options, args) = optparser.parse_args(sys.argv[1:])
     if args:
-        optparser.error("incorrect number of arguments")
+        tests = args
 
     for test in tests:
        runtest(test)
 
     for test in tests:
        runtest(test)