diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2010-09-27 20:13:17 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2010-09-27 20:13:17 +0000 |
| commit | 22ec2c218c474d09192cb8ac5c5c540b5a47fcc7 (patch) | |
| tree | 06a8f963eeac2eb2c21817a3af29293ecfcc41b7 /clang/utils | |
| parent | 2e0db09078e5c952f49c7276d36accbda24ce8e0 (diff) | |
| download | bcm5719-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-x | clang/utils/ABITest/ABITestGen.py | 6 |
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() |

