1from lit import Test 2 3 4class ManyTests(object): 5 def __init__(self, N=10000): 6 self.N = N 7 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) 12 13 def execute(self, test, litConfig): 14 # Do a "non-trivial" amount of Python work. 15 sum = 0 16 for i in range(10000): 17 sum += i 18 return Test.PASS, "" 19