]> git.cworth.org Git - apitrace-tests/blobdiff - mesademos.py
Allow to specify the mesa demo on command line.
[apitrace-tests] / mesademos.py
index 251e1756f7efd6f7de45a62835a6fd8673b855f2..6b9519e98f6ef47b10d11ee4be74ba5236fcc5cc 100755 (executable)
@@ -516,7 +516,6 @@ tests = [
     #'slang/vstest',
     'tests/afsmultiarb',
     'tests/antialias',
-    'tests/api_speed.py',
     'tests/arbfpspec',
     'tests/arbfptest1',
     'tests/arbfptexture',
@@ -672,7 +671,7 @@ def main():
 
     # 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',
@@ -686,7 +685,7 @@ def main():
 
     (options, args) = optparser.parse_args(sys.argv[1:])
     if args:
-        optparser.error("incorrect number of arguments")
+        tests = args
 
     for test in tests:
        runtest(test)