[llvm-commits] [llvm] r111487 - /llvm/trunk/utils/lit/lit/TestFormats.py
Daniel Dunbar
daniel at zuster.org
Wed Aug 18 17:22:45 PDT 2010
Author: ddunbar
Date: Wed Aug 18 19:22:45 2010
New Revision: 111487
URL: http://llvm.org/viewvc/llvm-project?rev=111487&view=rev
Log:
lit/GoogleTest: Add .exe to the suffix when looking for tests.
Modified:
llvm/trunk/utils/lit/lit/TestFormats.py
Modified: llvm/trunk/utils/lit/lit/TestFormats.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/lit/TestFormats.py?rev=111487&r1=111486&r2=111487&view=diff
==============================================================================
--- llvm/trunk/utils/lit/lit/TestFormats.py (original)
+++ llvm/trunk/utils/lit/lit/TestFormats.py Wed Aug 18 19:22:45 2010
@@ -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]
More information about the llvm-commits
mailing list