Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(343)

Side by Side Diff: chrome/test/nacl_test_injection/buildbot_nacl_integration.py

Issue 10914053: Relocating files in the nacl repo that belong in chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tweak windows Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « DEPS ('k') | ppapi/native_client/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 import os 6 import os
7 import shutil
7 import subprocess 8 import subprocess
8 import sys 9 import sys
9 10
10 11
11 def Main(args): 12 def Main(args):
12 pwd = os.environ.get('PWD', '') 13 pwd = os.environ.get('PWD', '')
13 is_integration_bot = 'nacl-chrome' in pwd 14 is_integration_bot = 'nacl-chrome' in pwd
14 15
15 # This environment variable check mimics what 16 # This environment variable check mimics what
16 # buildbot_chrome_nacl_stage.py does. 17 # buildbot_chrome_nacl_stage.py does.
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 # See http://crbug.com/132395 67 # See http://crbug.com/132395
67 tests_to_disable.append('run_inbrowser_test_runner') 68 tests_to_disable.append('run_inbrowser_test_runner')
68 69
69 if sys.platform in ('win32', 'cygwin'): 70 if sys.platform in ('win32', 'cygwin'):
70 tests_to_disable.append('run_ppapi_ppp_input_event_browser_test') 71 tests_to_disable.append('run_ppapi_ppp_input_event_browser_test')
71 72
72 script_dir = os.path.dirname(os.path.abspath(__file__)) 73 script_dir = os.path.dirname(os.path.abspath(__file__))
73 test_dir = os.path.dirname(script_dir) 74 test_dir = os.path.dirname(script_dir)
74 chrome_dir = os.path.dirname(test_dir) 75 chrome_dir = os.path.dirname(test_dir)
75 src_dir = os.path.dirname(chrome_dir) 76 src_dir = os.path.dirname(chrome_dir)
77
78 # DO NOT COMMIT
79 nacl_dir = os.path.join(src_dir, 'native_client')
noelallen1 2012/09/07 21:50:07 Do not commit?
80 ppapi_nacl_dir = os.path.join(src_dir, 'ppapi', 'native_client')
81 dont_remove = [
82 'native_client/src/trusted/weak_ref/call_on_main_thread.h',
83 ]
84 allowed_to_vary = [
85 # relative path tweaks:
86 'native_client/src/untrusted/irt_stub/irt_stub.gyp',
87 'native_client/tools/browser_tester/browser_tester.py',
88 # copyright header changes:
89 'native_client/tools/browser_tester/browsertester/__init__.py',
90 'native_client/tools/browser_tester/browsertester/rpclistener.py',
91 # wrapped a line over 80:
92 'native_client/tools/browser_tester/browserdata/nacltest.js',
93 ]
94 nacl_browser = []
95 for root, dirs, files in os.walk(
96 os.path.join(nacl_dir, 'tests', 'nacl_browser')):
97 if '.svn' in dirs:
98 dirs.remove('.svn')
99 for name in files:
100 path = os.path.join(root, name)
101 assert path[0:len(src_dir)+1] == src_dir + os.sep
102 nacl_browser.append(path[len(src_dir)+1:])
103 print 'NACL_BROWSER-----------vvvvv'
104 for path in nacl_browser:
105 print path
106 print 'NACL_BROWSER-----------^^^^^'
107 other = """\
108 native_client/src/include/nacl_memory.h
109 native_client/src/trusted/weak_ref/call_on_main_thread.h
110 native_client/src/untrusted/irt_stub/irt_stub.gyp
111 native_client/src/untrusted/irt_stub/libppapi.a
112 native_client/src/untrusted/irt_stub/libppapi.so
113 native_client/src/untrusted/irt_stub/nacl.scons
114 native_client/src/untrusted/irt_stub/plugin_main_irt.c
115 native_client/src/untrusted/irt_stub/ppapi_plugin_main.c
116 native_client/src/untrusted/irt_stub/ppapi_plugin_start.c
117 native_client/src/untrusted/irt_stub/ppapi_start.h
118 native_client/src/untrusted/irt_stub/thread_creator.c
119 native_client/src/untrusted/irt_stub/thread_creator.h
120 native_client/src/untrusted/nacl_ppapi_util/nacl.scons
121 native_client/src/untrusted/nacl_ppapi_util/nacl_ppapi_util.cc
122 native_client/src/untrusted/nacl_ppapi_util/nacl_ppapi_util.h
123 native_client/src/untrusted/nacl_ppapi_util/ppapi_srpc_main.c
124 native_client/src/untrusted/nacl_ppapi_util/ppapi_srpc_main.h
125 native_client/src/untrusted/nacl_ppapi_util/string_buffer.cc
126 native_client/src/untrusted/nacl_ppapi_util/string_buffer.h
127 native_client/src/untrusted/pnacl_irt_shim/nacl.scons
128 native_client/src/untrusted/pnacl_irt_shim/shim_ppapi.h
129 native_client/src/untrusted/pnacl_support_extension/nacl.scons
130 native_client/tests/nacl.scons
131 native_client/tools/browser_tester/browser_tester.py
132 native_client/tools/browser_tester/browserdata/nacltest.js
133 native_client/tools/browser_tester/browsertester/__init__.py
134 native_client/tools/browser_tester/browsertester/browserlauncher.py
135 native_client/tools/browser_tester/browsertester/browserprocess.py
136 native_client/tools/browser_tester/browsertester/rpclistener.py
137 native_client/tools/browser_tester/browsertester/server.py
138 """.splitlines()
139 for path in other + nacl_browser:
140 new_path = os.path.normpath(os.path.join(src_dir, 'ppapi', path))
141 old_path = os.path.normpath(os.path.join(src_dir, path))
142 assert os.path.exists(new_path), new_path
143 assert os.path.exists(old_path), old_path
144 if path not in allowed_to_vary:
145 fh = open(old_path, 'r')
146 old_data = fh.read()
147 fh.close()
148 fh = open(new_path, 'r')
149 new_data = fh.read()
150 fh.close()
151 assert new_data == old_data.replace(
152 'The Native Client Authors',
153 'The Chromium Authors'), new_path
154 if path not in dont_remove:
155 os.remove(old_path)
156 on_windows = sys.platform == 'win32'
157 shutil.rmtree(os.path.join(nacl_dir, 'tests', 'nacl_browser'),
158 ignore_errors=on_windows)
159 # DO NOT COMMIT
160
76 nacl_integration_script = os.path.join( 161 nacl_integration_script = os.path.join(
77 src_dir, 'native_client/build/buildbot_chrome_nacl_stage.py') 162 src_dir, 'native_client/build/buildbot_chrome_nacl_stage.py')
78 cmd = [sys.executable, 163 cmd = [sys.executable,
79 nacl_integration_script, 164 nacl_integration_script,
80 # TODO(ncbray) re-enable. 165 # TODO(ncbray) re-enable.
81 # https://code.google.com/p/chromium/issues/detail?id=133568 166 # https://code.google.com/p/chromium/issues/detail?id=133568
82 '--disable_glibc', 167 '--disable_glibc',
83 '--disable_tests=%s' % ','.join(tests_to_disable)] 168 '--disable_tests=%s' % ','.join(tests_to_disable)]
84 cmd += args 169 cmd += args
85 sys.stdout.write('Running %s\n' % ' '.join(cmd)) 170 sys.stdout.write('Running %s\n' % ' '.join(cmd))
86 sys.stdout.flush() 171 sys.stdout.flush()
87 return subprocess.call(cmd) 172 return subprocess.call(cmd)
88 173
89 174
90 if __name__ == '__main__': 175 if __name__ == '__main__':
91 sys.exit(Main(sys.argv[1:])) 176 sys.exit(Main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « DEPS ('k') | ppapi/native_client/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698