OLD | NEW |
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 platform | 6 import platform |
7 import os | 7 import os |
8 | 8 |
9 Import('env') | 9 Import('env') |
10 | 10 |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 # in third_party, but we might need to add it if we want to use it. | 312 # in third_party, but we might need to add it if we want to use it. |
313 # 'ntdll', | 313 # 'ntdll', |
314 ], | 314 ], |
315 ) | 315 ) |
316 | 316 |
317 sel_ldr_libs = ['sel', | 317 sel_ldr_libs = ['sel', |
318 'sel_main', | 318 'sel_main', |
319 'desc_cacheability', | 319 'desc_cacheability', |
320 'env_cleanser', | 320 'env_cleanser', |
321 'nacl_error_code', | 321 'nacl_error_code', |
322 'manifest_proxy', | |
323 'simple_service', | 322 'simple_service', |
324 'thread_interface', | 323 'thread_interface', |
325 'nonnacl_srpc', | 324 'nonnacl_srpc', |
326 'nrd_xfer', | 325 'nrd_xfer', |
327 'nacl_perf_counter', | 326 'nacl_perf_counter', |
328 'nacl_base', | 327 'nacl_base', |
329 'imc', | 328 'imc', |
330 'nacl_fault_inject', | 329 'nacl_fault_inject', |
331 'nacl_interval', | 330 'nacl_interval', |
332 'platform', | 331 'platform', |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
473 'sel_ldr_test.cc', | 472 'sel_ldr_test.cc', |
474 'thread_suspension_test.cc', | 473 'thread_suspension_test.cc', |
475 ] | 474 ] |
476 | 475 |
477 if not env.Bit('coverage_enabled') or not env.Bit('windows'): | 476 if not env.Bit('coverage_enabled') or not env.Bit('windows'): |
478 unit_tests_exe = gtest_env.ComponentProgram( | 477 unit_tests_exe = gtest_env.ComponentProgram( |
479 'service_runtime_tests', | 478 'service_runtime_tests', |
480 unittest_inputs, | 479 unittest_inputs, |
481 EXTRA_LIBS=['sel', | 480 EXTRA_LIBS=['sel', |
482 'env_cleanser', | 481 'env_cleanser', |
483 'manifest_proxy', | |
484 'simple_service', | 482 'simple_service', |
485 'thread_interface', | 483 'thread_interface', |
486 'nonnacl_srpc', | 484 'nonnacl_srpc', |
487 'nrd_xfer', | 485 'nrd_xfer', |
488 'nacl_perf_counter', | 486 'nacl_perf_counter', |
489 'nacl_base', | 487 'nacl_base', |
490 'imc', | 488 'imc', |
491 'nacl_fault_inject', | 489 'nacl_fault_inject', |
492 'nacl_interval', | 490 'nacl_interval', |
493 'platform', | 491 'platform', |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
531 # TODO(bradnelson): fix this to work on windows under coverage. | 529 # TODO(bradnelson): fix this to work on windows under coverage. |
532 if ((not env.Bit('windows') or not env.Bit('coverage_enabled')) and | 530 if ((not env.Bit('windows') or not env.Bit('coverage_enabled')) and |
533 env.Bit('nacl_static_link')): | 531 env.Bit('nacl_static_link')): |
534 # NOTE: uses validator | 532 # NOTE: uses validator |
535 mmap_test_objs = [env.ComponentObject('mmap_test.c')] | 533 mmap_test_objs = [env.ComponentObject('mmap_test.c')] |
536 mmap_test_exe = env.ComponentProgram( | 534 mmap_test_exe = env.ComponentProgram( |
537 'mmap_test', | 535 'mmap_test', |
538 mmap_test_objs, | 536 mmap_test_objs, |
539 EXTRA_LIBS=['sel', | 537 EXTRA_LIBS=['sel', |
540 'env_cleanser', | 538 'env_cleanser', |
541 'manifest_proxy', | |
542 'simple_service', | 539 'simple_service', |
543 'thread_interface', | 540 'thread_interface', |
544 'nonnacl_srpc', | 541 'nonnacl_srpc', |
545 'nrd_xfer', | 542 'nrd_xfer', |
546 'nacl_perf_counter', | 543 'nacl_perf_counter', |
547 'nacl_base', | 544 'nacl_base', |
548 'imc', | 545 'imc', |
549 'nacl_fault_inject', | 546 'nacl_fault_inject', |
550 'nacl_interval', | 547 'nacl_interval', |
551 'platform', | 548 'platform', |
(...skipping 27 matching lines...) Expand all Loading... |
579 | 576 |
580 | 577 |
581 # also seems to have issues with windows coverage or VMs | 578 # also seems to have issues with windows coverage or VMs |
582 # NOTE: uses validator | 579 # NOTE: uses validator |
583 is_broken = env.Bit('coverage_enabled') or env.Bit('running_on_vm') | 580 is_broken = env.Bit('coverage_enabled') or env.Bit('running_on_vm') |
584 nacl_sync_cond_test_exe = env.ComponentProgram( | 581 nacl_sync_cond_test_exe = env.ComponentProgram( |
585 'nacl_sync_cond_test', | 582 'nacl_sync_cond_test', |
586 ['nacl_sync_cond_test.c'], | 583 ['nacl_sync_cond_test.c'], |
587 EXTRA_LIBS=['sel', | 584 EXTRA_LIBS=['sel', |
588 'env_cleanser', | 585 'env_cleanser', |
589 'manifest_proxy', | |
590 'simple_service', | 586 'simple_service', |
591 'thread_interface', | 587 'thread_interface', |
592 'nonnacl_srpc', | 588 'nonnacl_srpc', |
593 'nrd_xfer', | 589 'nrd_xfer', |
594 'nacl_perf_counter', | 590 'nacl_perf_counter', |
595 'nacl_base', | 591 'nacl_base', |
596 'imc', | 592 'imc', |
597 'nacl_fault_inject', | 593 'nacl_fault_inject', |
598 'nacl_interval', | 594 'nacl_interval', |
599 'platform', | 595 'platform', |
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
945 # ---------------------------------------------------------- | 941 # ---------------------------------------------------------- |
946 # More Death Tests | 942 # More Death Tests |
947 # ---------------------------------------------------------- | 943 # ---------------------------------------------------------- |
948 if not env.Bit('coverage_enabled') or not env.Bit('windows'): | 944 if not env.Bit('coverage_enabled') or not env.Bit('windows'): |
949 # NOTE: uses validator | 945 # NOTE: uses validator |
950 sel_ldr_thread_death_test_exe = env.ComponentProgram( | 946 sel_ldr_thread_death_test_exe = env.ComponentProgram( |
951 'sel_ldr_thread_death_test', | 947 'sel_ldr_thread_death_test', |
952 ['sel_ldr_thread_death_test.c'], | 948 ['sel_ldr_thread_death_test.c'], |
953 EXTRA_LIBS=['sel', | 949 EXTRA_LIBS=['sel', |
954 'env_cleanser', | 950 'env_cleanser', |
955 'manifest_proxy', | |
956 'simple_service', | 951 'simple_service', |
957 'thread_interface', | 952 'thread_interface', |
958 'nonnacl_srpc', | 953 'nonnacl_srpc', |
959 'nrd_xfer', | 954 'nrd_xfer', |
960 'nacl_perf_counter', | 955 'nacl_perf_counter', |
961 'nacl_base', | 956 'nacl_base', |
962 'imc', | 957 'imc', |
963 'nacl_fault_inject', | 958 'nacl_fault_inject', |
964 'nacl_interval', | 959 'nacl_interval', |
965 'platform', | 960 'platform', |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1015 is_broken=is_broken) | 1010 is_broken=is_broken) |
1016 | 1011 |
1017 dyn_array_test_exe = env.ComponentProgram('dyn_array_test', | 1012 dyn_array_test_exe = env.ComponentProgram('dyn_array_test', |
1018 ['dyn_array_test.c'], | 1013 ['dyn_array_test.c'], |
1019 EXTRA_LIBS=sel_ldr_libs) | 1014 EXTRA_LIBS=sel_ldr_libs) |
1020 | 1015 |
1021 node = env.CommandTest('dyn_array_test.out', | 1016 node = env.CommandTest('dyn_array_test.out', |
1022 command=[dyn_array_test_exe]) | 1017 command=[dyn_array_test_exe]) |
1023 | 1018 |
1024 env.AddNodeToTestSuite(node, ['small_tests'], 'run_dyn_array_test') | 1019 env.AddNodeToTestSuite(node, ['small_tests'], 'run_dyn_array_test') |
OLD | NEW |