Skip to content

Commit 6eeb672

Browse files
committed
Permit selecting a regular-expression-defined set of tasks
1 parent d3b29d2 commit 6eeb672

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

scripts/perf-test/perf_test.py

+6-5
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def parse_args():
6666
parser.add_argument('-T', '--tasks', type=str,
6767
default='quick',
6868
help='Subset of tasks to run (quick, full; ' +
69-
'default: quick; or name of SV-COMP task)')
69+
'default: quick; or regex of SV-COMP task(s))')
7070

7171
args = parser.parse_args()
7272
assert(args.repository.startswith('https://github.com/') or
@@ -479,10 +479,8 @@ def seed_queue(session, region, queue, task_set):
479479
elif task_set == 'quick':
480480
tasks = ['ReachSafety-Loops', 'ReachSafety-BitVectors']
481481
else:
482-
tasks = [task_set]
483-
484-
for t in tasks:
485-
assert(t in set(all_tasks))
482+
tasks = [t for t in all_tasks if re.match('^' + task_set + '$', t)]
483+
assert(tasks)
486484

487485
for t in tasks:
488486
response = queue.send_messages(
@@ -492,6 +490,9 @@ def seed_queue(session, region, queue, task_set):
492490
])
493491
assert(not response.get('Failed'))
494492

493+
logger.info(region + ': SQS queue seeded with {} jobs'.format(
494+
len(tasks) * 2))
495+
495496

496497
def run_perf_test(
497498
session, mode, region, az, ami, instance_type, sqs_arn, sqs_url,

0 commit comments

Comments
 (0)