projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c5f466
)
lit/GoogleTest: Add .exe to the suffix when looking for tests.
author
Daniel Dunbar
<daniel@zuster.org>
Thu, 19 Aug 2010 00:22:45 +0000
(
00:22
+0000)
committer
Daniel Dunbar
<daniel@zuster.org>
Thu, 19 Aug 2010 00:22:45 +0000
(
00:22
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111487
91177308
-0d34-0410-b5e6-
96231b3b80d8
utils/lit/lit/TestFormats.py
patch
|
blob
|
history
diff --git
a/utils/lit/lit/TestFormats.py
b/utils/lit/lit/TestFormats.py
index e52d0e4e1c7c855e6060f198b38c9790fcde9e1c..7ffbd2bf766336ef16596d7d7dc0f3b11ae42446 100644
(file)
--- a/
utils/lit/lit/TestFormats.py
+++ b/
utils/lit/lit/TestFormats.py
@@
-1,14
+1,21
@@
import os
+import platform
import Test
import TestRunner
import Util
+kIsWindows = platform.system() == 'Windows'
+
class GoogleTest(object):
def __init__(self, test_sub_dir, test_suffix):
self.test_sub_dir = str(test_sub_dir)
self.test_suffix = str(test_suffix)
+ # On Windows, assume tests will also end in '.exe'.
+ if kIsWindows:
+ self.test_suffix += '.exe'
+
def getGTestTests(self, path, litConfig, localConfig):
"""getGTestTests(path) - [name]