Reviewers: Yang,

Message:
PTAL.

Description:
Add support for shared library builds to tools/test-wrapper-gypbuild.py

by setting LD_LIBRARY_PATH as required


Please review this at http://codereview.chromium.org/7811016/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files:
  M tools/test-wrapper-gypbuild.py


Index: tools/test-wrapper-gypbuild.py
diff --git a/tools/test-wrapper-gypbuild.py b/tools/test-wrapper-gypbuild.py
index 9bc6bf6ac7eef1fb3be5f1eae8e9c67b8daa6733..16f7ea167cc0ead5dc833472306ccac987c87833 100755
--- a/tools/test-wrapper-gypbuild.py
+++ b/tools/test-wrapper-gypbuild.py
@@ -207,17 +207,21 @@ def Main():
   for arg in args:
     args_for_children += [arg]
   returncodes = 0
+  env = os.environ

   for mode in options.mode:
     for arch in options.arch:
       print ">>> running tests for %s.%s" % (arch, mode)
- shell = workspace + '/' + options.outdir + '/' + arch + '.' + mode + "/d8" + shellpath = workspace + '/' + options.outdir + '/' + arch + '.' + mode
+      env['LD_LIBRARY_PATH'] = shellpath + '/lib.target'
+      shell = shellpath + "/d8"
       child = subprocess.Popen(' '.join(args_for_children +
                                         ['--arch=' + arch] +
                                         ['--mode=' + mode] +
                                         ['--shell=' + shell]),
                                shell=True,
-                               cwd=workspace)
+                               cwd=workspace,
+                               env=env)
       returncodes += child.wait()

   return returncodes


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to