diff options
Diffstat (limited to 'sandbox/linux')
-rw-r--r-- | sandbox/linux/seccomp/seccomp.gyp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/sandbox/linux/seccomp/seccomp.gyp b/sandbox/linux/seccomp/seccomp.gyp index ea22796..596be21 100644 --- a/sandbox/linux/seccomp/seccomp.gyp +++ b/sandbox/linux/seccomp/seccomp.gyp @@ -5,6 +5,7 @@ { 'variables': { 'chromium_code': 1, + 'seccomp_intermediate_dir': '<(INTERMEDIATE_DIR)/seccomp-sandbox', }, 'targets': [ { @@ -53,6 +54,35 @@ ], }, { + 'target_name': 'seccomp_tests', + 'type': 'executable', + 'sources': [ + 'tests/test_syscalls.cc', + ], + 'include_dirs': [ + '.', + '<(seccomp_intermediate_dir)', + ], + 'dependencies': [ + 'seccomp_sandbox', + ], + 'libraries': [ + '-lpthread', + '-lutil', # For openpty() + ], + 'actions': [ + { + 'action_name': 'make_test_list', + 'inputs': [ + 'tests/list_tests.py', + 'tests/test_syscalls.cc', + ], + 'outputs': ['<(seccomp_intermediate_dir)/test-list.h'], + 'action': ['sh', '-c', 'python <(_inputs) > <(_outputs)'], + }, + ], + }, + { 'target_name': 'timestats', 'type': 'executable', 'sources': [ |