1# -*- Python -*- 2 3from lit import Test 4 5class ManyTests(object): 6 def __init__(self, N=10000): 7 self.N = N 8 9 def getTestsInDirectory(self, testSuite, path_in_suite, 10 litConfig, localConfig): 11 for i in range(self.N): 12 test_name = 'test-%04d' % (i,) 13 yield Test.Test(testSuite, path_in_suite + (test_name,), 14 localConfig) 15 16 def execute(self, test, litConfig): 17 # Do a "non-trivial" amount of Python work. 18 sum = 0 19 for i in range(10000): 20 sum += i 21 return Test.PASS,'' 22 23config.test_format = ManyTests() 24