Home | History | Annotate | Download | only in linux
      1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
      2 # Use of this source code is governed by a BSD-style license that can be
      3 # found in the LICENSE file.
      4 
      5 # Tests need to be compiled in the same link unit, so we have to list them
      6 # in a separate .gypi file.
      7 {
      8   'dependencies': [
      9     'sandbox',
     10     'sandbox_linux_test_utils',
     11     'sandbox_services',
     12     '../base/base.gyp:base',
     13     '../testing/gtest.gyp:gtest',
     14   ],
     15   'include_dirs': [
     16     '../..',
     17   ],
     18   'sources': [
     19     'services/proc_util_unittest.cc',
     20     'services/scoped_process_unittest.cc',
     21     'services/resource_limits_unittests.cc',
     22     'services/syscall_wrappers_unittest.cc',
     23     'services/thread_helpers_unittests.cc',
     24     'services/yama_unittests.cc',
     25     'syscall_broker/broker_file_permission_unittest.cc',
     26     'syscall_broker/broker_process_unittest.cc',
     27     'tests/main.cc',
     28     'tests/scoped_temporary_file.cc',
     29     'tests/scoped_temporary_file.h',
     30     'tests/scoped_temporary_file_unittest.cc',
     31     'tests/test_utils_unittest.cc',
     32     'tests/unit_tests_unittest.cc',
     33   ],
     34   'conditions': [
     35     [ 'compile_suid_client==1', {
     36       'sources': [
     37         'suid/client/setuid_sandbox_client_unittest.cc',
     38         'suid/client/setuid_sandbox_host_unittest.cc',
     39       ],
     40     }],
     41     [ 'use_seccomp_bpf==1', {
     42       'sources': [
     43         'bpf_dsl/bpf_dsl_unittest.cc',
     44         'bpf_dsl/codegen_unittest.cc',
     45         'bpf_dsl/cons_unittest.cc',
     46         'bpf_dsl/dump_bpf.cc',
     47         'bpf_dsl/dump_bpf.h',
     48         'bpf_dsl/syscall_set_unittest.cc',
     49         'bpf_dsl/test_trap_registry.cc',
     50         'bpf_dsl/test_trap_registry.h',
     51         'bpf_dsl/test_trap_registry_unittest.cc',
     52         'bpf_dsl/verifier.cc',
     53         'bpf_dsl/verifier.h',
     54         'integration_tests/bpf_dsl_seccomp_unittest.cc',
     55         'integration_tests/seccomp_broker_process_unittest.cc',
     56         'seccomp-bpf-helpers/baseline_policy_unittest.cc',
     57         'seccomp-bpf-helpers/syscall_parameters_restrictions_unittests.cc',
     58         'seccomp-bpf/bpf_tests_unittest.cc',
     59         'seccomp-bpf/sandbox_bpf_unittest.cc',
     60         'seccomp-bpf/syscall_unittest.cc',
     61         'seccomp-bpf/trap_unittest.cc',
     62       ],
     63       'dependencies': [
     64         'bpf_dsl_golden',
     65       ],
     66     }],
     67     [ 'compile_credentials==1', {
     68       'sources': [
     69         'integration_tests/namespace_unix_domain_socket_unittest.cc',
     70         'services/credentials_unittest.cc',
     71         'services/namespace_utils_unittest.cc',
     72       ],
     73       'dependencies': [
     74         '../build/linux/system.gyp:libcap'
     75       ],
     76       'conditions': [
     77         [ 'use_base_test_suite==1', {
     78           'sources': [
     79             'services/namespace_sandbox_unittest.cc',
     80           ]
     81         }]
     82       ],
     83     }],
     84     [ 'use_base_test_suite==1', {
     85       'dependencies': [
     86         '../base/base.gyp:test_support_base',
     87       ],
     88       'defines': [
     89         'SANDBOX_USES_BASE_TEST_SUITE',
     90       ],
     91     }],
     92   ],
     93 }
     94