Support MSVS build directories in tools/test.py
This commit is contained in:
parent
8ec31a3362
commit
4fa13152af
@ -667,8 +667,19 @@ class Context(object):
|
|||||||
else:
|
else:
|
||||||
name = 'out/Release/node'
|
name = 'out/Release/node'
|
||||||
|
|
||||||
if utils.IsWindows() and not name.endswith('.exe'):
|
# Currently GYP does not support output_dir for MSVS.
|
||||||
name = os.path.abspath(name + '.exe')
|
# http://code.google.com/p/gyp/issues/detail?id=40
|
||||||
|
# It will put the builds into Release/node.exe or Debug/node.exe
|
||||||
|
if utils.IsWindows():
|
||||||
|
out_dir = os.path.join(dirname(__file__), "..", "out")
|
||||||
|
if not exists(out_dir):
|
||||||
|
if mode == 'debug':
|
||||||
|
name = os.path.abspath('Debug/node.exe')
|
||||||
|
else:
|
||||||
|
name = os.path.abspath('Release/node.exe')
|
||||||
|
else:
|
||||||
|
name = os.path.abspath(name + '.exe')
|
||||||
|
|
||||||
return name
|
return name
|
||||||
|
|
||||||
def GetVmCommand(self, testcase, mode):
|
def GetVmCommand(self, testcase, mode):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user