diff options
author | jln@chromium.org <jln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-02 02:54:53 +0000 |
---|---|---|
committer | jln@chromium.org <jln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-02 02:54:53 +0000 |
commit | 72a083f4725655d12b2ecca1f32b27c63e39122c (patch) | |
tree | a36ca474297766d9b13baf2b9e9db567d4dab59a /sandbox/linux/sandbox_linux_test_sources.gypi | |
parent | 99768ba4305ae1dea24a84ca90e417709aa8eaf9 (diff) | |
download | chromium_src-72a083f4725655d12b2ecca1f32b27c63e39122c.zip chromium_src-72a083f4725655d12b2ecca1f32b27c63e39122c.tar.gz chromium_src-72a083f4725655d12b2ecca1f32b27c63e39122c.tar.bz2 |
Linux sandbox: Make the test run on Android as Native executable
Make it possible to run the tests via run_tests.py --exe.
BUG=169416
NOTRY=true
Review URL: https://chromiumcodereview.appspot.com/12093055
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180236 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sandbox/linux/sandbox_linux_test_sources.gypi')
-rw-r--r-- | sandbox/linux/sandbox_linux_test_sources.gypi | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/sandbox/linux/sandbox_linux_test_sources.gypi b/sandbox/linux/sandbox_linux_test_sources.gypi new file mode 100644 index 0000000..0bc0aa1 --- /dev/null +++ b/sandbox/linux/sandbox_linux_test_sources.gypi @@ -0,0 +1,38 @@ +# Copyright (c) 2012 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +# Tests need to be compiled in the same link unit, so we have to list them +# in a separate .gypi file. +{ + 'dependencies': [ + 'sandbox', + '../testing/gtest.gyp:gtest', + ], + 'include_dirs': [ + '../..', + ], + 'sources': [ + 'tests/main.cc', + 'tests/unit_tests.cc', + 'tests/unit_tests.h', + 'services/broker_process_unittest.cc', + ], + 'conditions': [ + [ 'compile_suid_client==1', { + 'sources': [ + 'suid/client/setuid_sandbox_client_unittest.cc', + ], + }], + [ 'compile_seccomp_bpf==1', { + 'sources': [ + 'seccomp-bpf/bpf_tests.h', + 'seccomp-bpf/codegen_unittest.cc', + 'seccomp-bpf/errorcode_unittest.cc', + 'seccomp-bpf/sandbox_bpf_unittest.cc', + 'seccomp-bpf/syscall_iterator_unittest.cc', + 'seccomp-bpf/syscall_unittest.cc', + ], + }], + ], +} |