summaryrefslogtreecommitdiffstats
path: root/clang/utils
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-09-27 20:13:17 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-09-27 20:13:17 +0000
commit22ec2c218c474d09192cb8ac5c5c540b5a47fcc7 (patch)
tree06a8f963eeac2eb2c21817a3af29293ecfcc41b7 /clang/utils
parent2e0db09078e5c952f49c7276d36accbda24ce8e0 (diff)
downloadbcm5719-llvm-22ec2c218c474d09192cb8ac5c5c540b5a47fcc7.tar.gz
bcm5719-llvm-22ec2c218c474d09192cb8ac5c5c540b5a47fcc7.zip
utils/ABITest: Add option to skip individual tests by index.
llvm-svn: 114864
Diffstat (limited to 'clang/utils')
-rwxr-xr-xclang/utils/ABITest/ABITestGen.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/utils/ABITest/ABITestGen.py b/clang/utils/ABITest/ABITestGen.py
index c45a0c34327..88dde269bd7 100755
--- a/clang/utils/ABITest/ABITestGen.py
+++ b/clang/utils/ABITest/ABITestGen.py
@@ -356,6 +356,9 @@ def main():
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 @@ def main():
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()
OpenPOWER on IntegriCloud