Fix the build bot break introduced by r320791.
[llvm-core.git] / utils / lit / examples / many-tests / lit.cfg
blob8f7b940b6eac6cc20f3b64bb5ea4a7c36943b129
1 # -*- Python -*-
3 from lit import Test
5 class ManyTests(object):
6     def __init__(self, N=10000):
7         self.N = N
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)
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,''
23 config.test_format = ManyTests()