summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-08-19 00:22:45 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-08-19 00:22:45 +0000
commit1ca8559de5cdcb2b68673d8bf815b7ef2fd93643 (patch)
tree0094dc062c4b34229be0163f5a35b1424acb0631 /utils
parent5c5f46697d004b032bb64c966e7c70df00978343 (diff)
downloadllvm-1ca8559de5cdcb2b68673d8bf815b7ef2fd93643.tar.gz
llvm-1ca8559de5cdcb2b68673d8bf815b7ef2fd93643.tar.bz2
llvm-1ca8559de5cdcb2b68673d8bf815b7ef2fd93643.tar.xz
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
Diffstat (limited to 'utils')
-rw-r--r--utils/lit/lit/TestFormats.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/utils/lit/lit/TestFormats.py b/utils/lit/lit/TestFormats.py
index e52d0e4e1c..7ffbd2bf76 100644
--- 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]