<commit_before># Copyright (c) 2010 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.

{
  'variables': {
    'chromium_code': 1,
  },
  'targets': [
    {
      'target_name': 'seccomp_sandbox',
      'type': 'static_library',
      'sources': [
        'access.cc',
        'allocator.cc',
        'allocator.h',
        'clone.cc',
        'exit.cc',
        'debug.cc',
        'getpid.cc',
        'gettid.cc',
        'ioctl.cc',
        'ipc.cc',
        'library.cc',
        'library.h',
        'linux_syscall_support.h',
        'madvise.cc',
        'maps.cc',
        'maps.h',
        'mmap.cc',
        'mprotect.cc',
        'munmap.cc',
        'mutex.h',
        'open.cc',
        'sandbox.cc',
        'sandbox.h',
        'sandbox_impl.h',
        'securemem.cc',
        'securemem.h',
        'sigaction.cc',
        'sigprocmask.cc',
        'socketcall.cc',
        'stat.cc',
        'syscall.cc',
        'syscall.h',
        'syscall_table.c',
        'syscall_table.h',
        'tls.h',
        'trusted_process.cc',
        'trusted_thread.cc',
        'x86_decode.cc',
        'x86_decode.h',
      ],
    },
    {
      'target_name': 'timestats',
      'type': 'executable',
      'sources': [
        'timestats.cc',
      ],
    },
  ],
}<commit_msg>Seccomp sandbox: Add Gyp rules for building the test suite<commit_after># Copyright (c) 2010 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.

{
  'variables': {
    'chromium_code': 1,
    'seccomp_intermediate_dir': '<(INTERMEDIATE_DIR)/seccomp-sandbox',
  },
  'targets': [
    {
      'target_name': 'seccomp_sandbox',
      'type': 'static_library',
      'sources': [
        'access.cc',
        'allocator.cc',
        'allocator.h',
        'clone.cc',
        'exit.cc',
        'debug.cc',
        'getpid.cc',
        'gettid.cc',
        'ioctl.cc',
        'ipc.cc',
        'library.cc',
        'library.h',
        'linux_syscall_support.h',
        'madvise.cc',
        'maps.cc',
        'maps.h',
        'mmap.cc',
        'mprotect.cc',
        'munmap.cc',
        'mutex.h',
        'open.cc',
        'sandbox.cc',
        'sandbox.h',
        'sandbox_impl.h',
        'securemem.cc',
        'securemem.h',
        'sigaction.cc',
        'sigprocmask.cc',
        'socketcall.cc',
        'stat.cc',
        'syscall.cc',
        'syscall.h',
        'syscall_table.c',
        'syscall_table.h',
        'tls.h',
        'trusted_process.cc',
        'trusted_thread.cc',
        'x86_decode.cc',
        'x86_decode.h',
      ],
    },
    {
      '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': [
        'timestats.cc',
      ],
    },
  ],
}
{'fraction_non_alphanumeric': 0.17047991071428573, 'fraction_numerical': 0.005022321428571429, 'mean_word_length': 1.6034858387799564, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7299735', 'n_tokens_mistral': 1293, 'n_tokens_neox': 1246, 'n_words': 206}