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

Side by Side Diff: src/trusted/validator_arm/build.scons

Issue 758223003: Cleanup: Use Bit('build_ARCH') instead of Bit('target_ARCH') (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Fix + simplify Created 6 years 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 | « src/trusted/validator/build.scons ('k') | src/trusted/validator_ragel/build.scons » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # -*- python -*- 1 # -*- python -*-
2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. 2 # Copyright (c) 2012 The Native Client 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('env') 7 Import('env')
8 8
9 # Android compiler cannot compile NDK C++ headers with these. 9 # Android compiler cannot compile NDK C++ headers with these.
10 if env.Bit('linux') and not env.Bit('android'): 10 if env.Bit('linux') and not env.Bit('android'):
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 'test_stores': 1, 253 'test_stores': 1,
254 'test_vector_stores': 1, 254 'test_vector_stores': 1,
255 'test_loads': 1, 255 'test_loads': 1,
256 'test_vector_loads': 1, 256 'test_vector_loads': 1,
257 'test_mcr_viol': 1, 257 'test_mcr_viol': 1,
258 } 258 }
259 259
260 # The following tests generate ARM nexes from assembly and validate the 260 # The following tests generate ARM nexes from assembly and validate the
261 # generate file. They're all expected to fail and produce the golden files' 261 # generate file. They're all expected to fail and produce the golden files'
262 # stdout. Stderr is expected to be empty. 262 # stdout. Stderr is expected to be empty.
263 if env.Bit('target_arm'): 263 if env.Bit('build_arm'):
264 untrusted_env = env.MakeUntrustedNativeEnv() 264 untrusted_env = env.MakeUntrustedNativeEnv()
265 for test, exit_status in validator_tests.iteritems(): 265 for test, exit_status in validator_tests.iteritems():
266 nexe = untrusted_env.ComponentProgram(test, 'testdata/' + test + '.S', 266 nexe = untrusted_env.ComponentProgram(test, 'testdata/' + test + '.S',
267 LINKFLAGS=['-nodefaultlibs', 267 LINKFLAGS=['-nodefaultlibs',
268 '-nostdlib']) 268 '-nostdlib'])
269 node = untrusted_env.CommandTest( 269 node = untrusted_env.CommandTest(
270 test + '_actual.out', 270 test + '_actual.out',
271 [ncval, untrusted_env.File(nexe)], 271 [ncval, untrusted_env.File(nexe)],
272 exit_status = str(exit_status), 272 exit_status = str(exit_status),
273 stdout_golden = untrusted_env.File('testdata/' + test + '.out'), 273 stdout_golden = untrusted_env.File('testdata/' + test + '.out'),
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 EXTRA_LIBS=['decoder_test_tools', 'arm_validator_core', 'platform']) 341 EXTRA_LIBS=['decoder_test_tools', 'arm_validator_core', 'platform'])
342 342
343 decoder_test_node = gtest_env.CommandTest( 343 decoder_test_node = gtest_env.CommandTest(
344 'arm32_decode_' + tbl + 'tests.out', 344 'arm32_decode_' + tbl + 'tests.out',
345 command=[decoder_tests_exe], 345 command=[decoder_tests_exe],
346 scale_timeout=1000) 346 scale_timeout=1000)
347 347
348 gtest_env.AddNodeToTestSuite(decoder_test_node, 348 gtest_env.AddNodeToTestSuite(decoder_test_node,
349 ['huge_tests', 'arm_decoder_tests'], 349 ['huge_tests', 'arm_decoder_tests'],
350 'run_arm32_decode_' + tbl + '_tests') 350 'run_arm32_decode_' + tbl + '_tests')
OLDNEW
« no previous file with comments | « src/trusted/validator/build.scons ('k') | src/trusted/validator_ragel/build.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698