Commit c08032e0 authored by Simon Marlow's avatar Simon Marlow

add extra_ways, for adding running a test in more ways

parent f9b1f953
......@@ -130,6 +130,9 @@ class TestOptions:
# skip all ways except these ([] == do all ways)
self.only_ways = []
# add these ways to the default set
self.extra_ways = []
# the result we normally expect for this test
self.expect = 'pass';
......
......@@ -125,6 +125,14 @@ def _only_ways( opts, ways ):
# -----
def extra_ways( ways ):
return lambda opts, w=ways: _extra_ways( opts, w )
def _extra_ways( opts, ways ):
opts.extra_ways = ways
# -----
def omit_compiler_types( compiler_types ):
return lambda opts, c=compiler_types: _omit_compiler_types(opts, c)
......@@ -333,6 +341,8 @@ def test_common_work (name, opts, func, args):
else:
all_ways = ['normal']
all_ways = all_ways + opts.extra_ways
t.total_test_cases = t.total_test_cases + len(all_ways)
ok_way = lambda way: \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment