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

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

Issue 7649021: Separate the (partial) decoder of the x86_32 validator into a separate library. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: Created 9 years, 4 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 | « src/trusted/validator/x86/ncval_seg_sfi/ncdecode.c ('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 # -*- python -*- 1 # -*- python -*-
2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. 2 # Copyright (c) 2011 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 6
7 import os 7 import os
8 import sys 8 import sys
9 Import('env') 9 Import('env')
10 10
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 ['small_tests', 'validator_tests']) 304 ['small_tests', 'validator_tests'])
305 305
306 # ====================================================================== 306 # ======================================================================
307 # Decoder unittests 307 # Decoder unittests
308 if test_env.Bit('target_x86_32'): 308 if test_env.Bit('target_x86_32'):
309 # TODO(kschimpf): remove this when the validator builds as 64-bits. 309 # TODO(kschimpf): remove this when the validator builds as 64-bits.
310 if test_env.Bit('build_x86_32'): 310 if test_env.Bit('build_x86_32'):
311 ncdecode_tests = test_env.ComponentProgram( 311 ncdecode_tests = test_env.ComponentProgram(
312 'ncdecode_tests', 312 'ncdecode_tests',
313 ['ncdecode_tests.c'], 313 ['ncdecode_tests.c'],
314 EXTRA_LIBS=[test_env.NaClTargetArchSuffix('ncval_seg_sfi_verbose'), 314 EXTRA_LIBS=[test_env.NaClTargetArchSuffix('ncdis_seg_sfi_verbose'),
315 ]) 315 ])
316 316
317 node = test_env.CommandTest( 317 node = test_env.CommandTest(
318 'ncdecode_tests.out', 318 'ncdecode_tests.out',
319 [ncdecode_tests], 319 [ncdecode_tests],
320 ) 320 )
321 321
322 test_env.AddNodeToTestSuite(node, ['small_tests']) 322 test_env.AddNodeToTestSuite(node, ['small_tests'])
323 323
324 # ====================================================================== 324 # ======================================================================
325 ncdis = test_env.ComponentProgram( 325 ncdis = test_env.ComponentProgram(
326 'ncdis', [ 326 'ncdis', [
327 'ncdis.c', 327 'ncdis.c',
328 force_cpp_o, 328 force_cpp_o,
329 ], 329 ],
330 EXTRA_LIBS=[test_env.NaClTargetArchSuffix('ncdis_util'), 330 EXTRA_LIBS=[test_env.NaClTargetArchSuffix('ncdis_util'),
331 test_env.NaClTargetArchSuffix('ncval_seg_sfi_verbose'), 331 #test_env.NaClTargetArchSuffix('ncdis_seg_sfi_verbose'),
332 test_env.NaClTargetArchSuffix('ncfileutils'), 332 test_env.NaClTargetArchSuffix('ncfileutils'),
333 'utils', 333 'utils',
334 ]) 334 ])
335 335
336 env.Requires(ncdis, crt) 336 env.Requires(ncdis, crt)
337 337
338 # ====================================================================== 338 # ======================================================================
339 # Valiator unittests 339 # Valiator unittests
340 if test_env.Bit('target_x86_32'): 340 if test_env.Bit('target_x86_32'):
341 ncval_tests = test_env.ComponentProgram( 341 ncval_tests = test_env.ComponentProgram(
342 'ncval_tests', 342 'ncval_tests',
343 ['ncval_tests.c'], 343 ['ncval_tests.c'],
344 EXTRA_LIBS=[test_env.NaClTargetArchSuffix('ncdis_util'), 344 EXTRA_LIBS=[test_env.NaClTargetArchSuffix('ncdis_util'),
345 test_env.NaClTargetArchSuffix('ncval_seg_sfi_verbose'), 345 test_env.NaClTargetArchSuffix('ncval_seg_sfi'),
346 ]) 346 ])
347 test_env.Requires(ncval_tests, crt) 347 test_env.Requires(ncval_tests, crt)
348 348
349 node = test_env.CommandTest( 349 node = test_env.CommandTest(
350 'ncval_tests.out', 350 'ncval_tests.out',
351 [ncval_tests], 351 [ncval_tests],
352 ) 352 )
353 353
354 test_env.AddNodeToTestSuite(node, ['small_tests', 'validator_tests']) 354 test_env.AddNodeToTestSuite(node, ['small_tests', 'validator_tests'])
355 355
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 NCDIS_ITER_TEST_NAME) 416 NCDIS_ITER_TEST_NAME)
417 417
418 # ====================================================================== 418 # ======================================================================
419 # Segment register validator. 419 # Segment register validator.
420 ncval = test_env.ComponentProgram( 420 ncval = test_env.ComponentProgram(
421 'ncval', [ 421 'ncval', [
422 'ncval.c', 422 'ncval.c',
423 force_cpp_o, 423 force_cpp_o,
424 ], 424 ],
425 EXTRA_LIBS=[test_env.NaClTargetArchSuffix('ncdis_util'), 425 EXTRA_LIBS=[test_env.NaClTargetArchSuffix('ncdis_util'),
426 test_env.NaClTargetArchSuffix('ncval_seg_sfi_verbose'), 426 test_env.NaClTargetArchSuffix('ncval_seg_sfi'),
427 test_env.NaClTargetArchSuffix('ncfileutils'), 427 test_env.NaClTargetArchSuffix('ncfileutils'),
428 'utils' 428 'utils'
429 ]) 429 ])
430 430
431 test_env.SDKInstallTrusted('ncval', ncval) 431 test_env.SDKInstallTrusted('ncval', ncval)
432 432
433 test_env.Requires(ncval, crt) 433 test_env.Requires(ncval, crt)
434 434
435 # ====================================================================== 435 # ======================================================================
436 # Validator tests against real nacl images 436 # Validator tests against real nacl images
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 ext = 'nval' 607 ext = 'nval'
608 node_val = test_env.CommandTest( 608 node_val = test_env.CommandTest(
609 __OutTestFile(test, base, ext), 609 __OutTestFile(test, base, ext),
610 [ncval, '--use_iter=false', '--max_errors=-1', '--hex_text=-'], 610 [ncval, '--use_iter=false', '--max_errors=-1', '--hex_text=-'],
611 stdin = __BaseTestFile(base, 'hex'), 611 stdin = __BaseTestFile(base, 'hex'),
612 stdout_golden = __BaseTestFile(base, ext)) 612 stdout_golden = __BaseTestFile(base, ext))
613 __AddTest(test, test_env, base, ext, node_val, 613 __AddTest(test, test_env, base, ext, node_val,
614 ['small_tests', 'validator_tests']) 614 ['small_tests', 'validator_tests'])
615 615
616 __AddNegMaxErrors() 616 __AddNegMaxErrors()
OLDNEW
« no previous file with comments | « src/trusted/validator/x86/ncval_seg_sfi/ncdecode.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698