Author: ddunbar
Date: Mon Sep 27 15:13:17 2010
New Revision: 114864

URL: http://llvm.org/viewvc/llvm-project?rev=114864&view=rev
Log:
utils/ABITest: Add option to skip individual tests by index.

Modified:
    cfe/trunk/utils/ABITest/ABITestGen.py

Modified: cfe/trunk/utils/ABITest/ABITestGen.py
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/ABITest/ABITestGen.py?rev=114864&r1=114863&r2=114864&view=diff
==============================================================================
--- cfe/trunk/utils/ABITest/ABITestGen.py (original)
+++ cfe/trunk/utils/ABITest/ABITestGen.py Mon Sep 27 15:13:17 2010
@@ -356,6 +356,9 @@
     parser.add_option("", "--use-random-seed", dest="useRandomSeed",
                       help="use random value for initial random number 
generator seed",
                       action='store_true', default=False)
+    parser.add_option("", "--skip", dest="skipTests",
+                      help="add a test index to skip",
+                      type=int, action='append', default=[])
     parser.add_option("-o", "--output", dest="output", metavar="FILE",
                       help="write output to FILE  [default %default]",
                       type=str, default='-')
@@ -639,11 +642,14 @@
     if args:
         [write(int(a)) for a in args]
 
+    skipTests = set(opts.skipTests)
     for i in range(opts.count):
         if opts.mode=='linear':
             index = opts.minIndex + i
         else:
             index = opts.minIndex + int((opts.maxIndex-opts.minIndex) * 
random.random())
+        if index in skipTests:
+            continue
         write(index)
 
     P.finish()


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to