Browse Source

Support MSVS build directories in tools/test.py

Ryan Dahl 14 years ago
parent
commit
4fa13152af
  1. 13
      tools/test.py

13
tools/test.py

@ -667,8 +667,19 @@ class Context(object):
else:
name = 'out/Release/node'
if utils.IsWindows() and not name.endswith('.exe'):
# Currently GYP does not support output_dir for MSVS.
# 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
def GetVmCommand(self, testcase, mode):

Loading…
Cancel
Save