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

Side by Side Diff: native_client_sdk/src/build_tools/tests/build_artifacts_test.py

Issue 1140503004: Switch default float-abi for ARM linux from softfp to hard (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « native_client_sdk/src/build_tools/build_sdk.py ('k') | no next file » | 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) 2014 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2014 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 ntpath 7 import ntpath
8 import posixpath 8 import posixpath
9 import sys 9 import sys
10 import collections 10 import collections
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 build_artifacts.GypNinjaBuild( 182 build_artifacts.GypNinjaBuild(
183 'arm', 'gyp.py', 'foo.gyp', 'target', 'out_dir') 183 'arm', 'gyp.py', 'foo.gyp', 'target', 'out_dir')
184 self.run_mock.assert_has_calls([ 184 self.run_mock.assert_has_calls([
185 call(['python', 'gyp.py', 'foo.gyp', '--depth=.', '-G', 185 call(['python', 'gyp.py', 'foo.gyp', '--depth=.', '-G',
186 'output_dir=out_dir'], 186 'output_dir=out_dir'],
187 cwd='src_dir', 187 cwd='src_dir',
188 env={ 188 env={
189 'GYP_CROSSCOMPILE': '1', 189 'GYP_CROSSCOMPILE': '1',
190 'GYP_GENERATORS': 'ninja', 190 'GYP_GENERATORS': 'ninja',
191 'GYP_DEFINES': ' '.join(self.gyp_defines_base + 191 'GYP_DEFINES': ' '.join(self.gyp_defines_base +
192 ['target_arch=arm', 192 ['target_arch=arm']),
193 'arm_float_abi=hard']),
194 }), 193 }),
195 call(['ninja', '-C', 'out_dir/Release', 'target'], cwd='src_dir') 194 call(['ninja', '-C', 'out_dir/Release', 'target'], cwd='src_dir')
196 ]) 195 ])
197 196
198 def testNoArmTrusted(self): 197 def testNoArmTrusted(self):
199 build_artifacts.PLATFORM = 'linux' 198 build_artifacts.PLATFORM = 'linux'
200 self.options_mock.no_arm_trusted = True 199 self.options_mock.no_arm_trusted = True
201 build_artifacts.GypNinjaBuild( 200 build_artifacts.GypNinjaBuild(
202 'arm', 'gyp.py', 'foo.gyp', 'target', 'out_dir') 201 'arm', 'gyp.py', 'foo.gyp', 'target', 'out_dir')
203 self.run_mock.assert_has_calls([ 202 self.run_mock.assert_has_calls([
204 call(['python', 'gyp.py', 'foo.gyp', '--depth=.', '-G', 203 call(['python', 'gyp.py', 'foo.gyp', '--depth=.', '-G',
205 'output_dir=out_dir'], 204 'output_dir=out_dir'],
206 cwd='src_dir', 205 cwd='src_dir',
207 env={ 206 env={
208 'GYP_CROSSCOMPILE': '1', 207 'GYP_CROSSCOMPILE': '1',
209 'GYP_GENERATORS': 'ninja', 208 'GYP_GENERATORS': 'ninja',
210 'GYP_DEFINES': ' '.join(self.gyp_defines_base + 209 'GYP_DEFINES': ' '.join(self.gyp_defines_base +
211 ['target_arch=arm', 210 ['target_arch=arm',
212 'arm_float_abi=hard',
213 'disable_cross_trusted=1']), 211 'disable_cross_trusted=1']),
214 }), 212 }),
215 call(['ninja', '-C', 'out_dir/Release', 'target'], cwd='src_dir') 213 call(['ninja', '-C', 'out_dir/Release', 'target'], cwd='src_dir')
216 ]) 214 ])
217 215
218 216
219 class ArchivePosixTestCase(BasePosixTestCase): 217 class ArchivePosixTestCase(BasePosixTestCase):
220 def setUp(self): 218 def setUp(self):
221 BasePosixTestCase.setUp(self) 219 BasePosixTestCase.setUp(self)
222 self.makedir_mock = patch('buildbot_common.MakeDir').start() 220 self.makedir_mock = patch('buildbot_common.MakeDir').start()
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 archive = build_artifacts.Archive('foo') 295 archive = build_artifacts.Archive('foo')
298 self.assertEqual(archive.name, 'win_foo') 296 self.assertEqual(archive.name, 'win_foo')
299 self.assertEqual(archive.archive_name, 'win_foo.tar.bz2') 297 self.assertEqual(archive.archive_name, 'win_foo.tar.bz2')
300 self.assertEqual(archive.archive_path, r'c:\archive_dir\win_foo.tar.bz2') 298 self.assertEqual(archive.archive_path, r'c:\archive_dir\win_foo.tar.bz2')
301 self.assertEqual(archive.dirname, r'c:\archive_dir\win_foo') 299 self.assertEqual(archive.dirname, r'c:\archive_dir\win_foo')
302 makedir_mock.assert_called_once_with(r'c:\archive_dir\win_foo') 300 makedir_mock.assert_called_once_with(r'c:\archive_dir\win_foo')
303 301
304 302
305 if __name__ == '__main__': 303 if __name__ == '__main__':
306 unittest.main() 304 unittest.main()
OLDNEW
« no previous file with comments | « native_client_sdk/src/build_tools/build_sdk.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698