1 from lit
import Test
, TestFormat
4 class ManyTests(TestFormat
):
5 def __init__(self
, N
=10000):
8 def getTestsInDirectory(self
, testSuite
, path_in_suite
, litConfig
, localConfig
):
9 for i
in range(self
.N
):
10 test_name
= "test-%04d" % (i
,)
11 yield Test
.Test(testSuite
, path_in_suite
+ (test_name
,), localConfig
)
13 def execute(self
, test
, litConfig
):
14 # Do a "non-trivial" amount of Python work.
16 for i
in range(10000):