llvm.org GIT mirror llvm / 1ca8559
lit/GoogleTest: Add .exe to the suffix when looking for tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111487 91177308-0d34-0410-b5e6-96231b3b80d8 Daniel Dunbar 9 years ago
1 changed file(s) with 7 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 import os
1 import platform
12
23 import Test
34 import TestRunner
45 import Util
6
7 kIsWindows = platform.system() == 'Windows'
58
69 class GoogleTest(object):
710 def __init__(self, test_sub_dir, test_suffix):
811 self.test_sub_dir = str(test_sub_dir)
912 self.test_suffix = str(test_suffix)
13
14 # On Windows, assume tests will also end in '.exe'.
15 if kIsWindows:
16 self.test_suffix += '.exe'
1017
1118 def getGTestTests(self, path, litConfig, localConfig):
1219 """getGTestTests(path) - [name]