mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
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
This commit is contained in:
parent
5c5f46697d
commit
1ca8559de5
@ -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]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user