llvm.org GIT mirror llvm / fb4d981
lit.GoogleTest: On case-insensitive filesystem, matching should be case-insensitive when directory name is checked with test_sub_dir. On MSVS8, ${CMAKE_CFG_INTDIR}, aka $(OutDir), has capitalized name(eg. Debug), although $(OutDir) is made with lower case(eg. debug). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119781 91177308-0d34-0410-b5e6-96231b3b80d8 NAKAMURA Takumi 8 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
88
99 class GoogleTest(object):
1010 def __init__(self, test_sub_dir, test_suffix):
11 self.test_sub_dir = str(test_sub_dir).split(';')
11 self.test_sub_dir = os.path.normcase(str(test_sub_dir)).split(';')
1212 self.test_suffix = str(test_suffix)
1313
1414 # On Windows, assume tests will also end in '.exe'.
5858 source_path = testSuite.getSourcePath(path_in_suite)
5959 for filename in os.listdir(source_path):
6060 # Check for the one subdirectory (build directory) tests will be in.
61 if not filename in self.test_sub_dir:
61 if not os.path.normcase(filename) in self.test_sub_dir:
6262 continue
6363
6464 filepath = os.path.join(source_path, filename)