Esempio n. 1
0
def get_unittest_deps(parsed_args):
    """Returns a list of paths needed to run unittests.

  The returned path may be a directory. In that case, all its descendants are
  needed.
  """
    glob_template_list = (_COMMON_GLOB_TEMPLATE_LIST +
                          _UNITTEST_GLOB_TEMPLATE_LIST)
    patterns = (map(build_common.expand_path_placeholder, glob_template_list) +
                unittest_util.get_nacl_tools() +
                unittest_util.get_test_executables(parsed_args.tests))
    return file_util.glob(*patterns)
Esempio n. 2
0
def get_unittest_deps(parsed_args):
  """Returns a list of paths needed to run unittests.

  The returned path may be a directory. In that case, all its descendants are
  needed.
  """
  glob_template_list = (
      _COMMON_GLOB_TEMPLATE_LIST + _UNITTEST_GLOB_TEMPLATE_LIST)
  patterns = (
      map(build_common.expand_path_placeholder, glob_template_list) +
      unittest_util.get_nacl_tools() +
      unittest_util.get_test_executables(parsed_args.tests))
  return file_util.glob(*patterns)
Esempio n. 3
0
def _get_exec_paths():
    """Returns the list of paths for executable files and directories.

  On ChromeOS, most files are copied to the directories that are mounted with
  noexec option, but the files in the list returned by this function, or
  contained in a directory in the list, are copied to the directory mounted
  without noexec option, so that executables can be executed directly for
  testing.
  """
    return sorted([
        build_common.expand_path_placeholder(path) for path in _EXEC_PATTERNS
    ] + [toolchain.get_adb_path_for_chromeos()] +
                  unittest_util.get_nacl_tools() +
                  unittest_util.get_test_executables(
                      test for test in unittest_util.get_all_tests()
                      if not unittest_util.is_bionic_fundamental_test(test)))
def _get_exec_paths():
    """Returns the list of paths for executable files and directories.

  On ChromeOS, most files are copied to the directories that are mounted with
  noexec option, but the files in the list returned by this function, or
  contained in a directory in the list, are copied to the directory mounted
  without noexec option, so that executables can be executed directly for
  testing.
  """
    return sorted(
        [build_common.expand_path_placeholder(path) for path in _EXEC_PATTERNS]
        + [toolchain.get_adb_path_for_chromeos()]
        + unittest_util.get_nacl_tools()
        + unittest_util.get_test_executables(
            test for test in unittest_util.get_all_tests() if not unittest_util.is_bionic_fundamental_test(test)
        )
    )
Esempio n. 5
0
def get_integration_test_deps():
  """Returns a list of paths needed to run ./run_integration_tests.

  The returned path may be a directory. In that case, all its descendants are
  needed.
  """
  # Note: integration test depends on ./launch_chrome. Also, we run unittests
  # as a part of integration test on ChromeOS.
  glob_template_list = (
      _COMMON_GLOB_TEMPLATE_LIST + _LAUNCH_CHROME_GLOB_TEMPLATE_LIST +
      _INTEGRATION_TEST_GLOB_TEMPLATE_LIST + _UNITTEST_GLOB_TEMPLATE_LIST +
      _get_gms_core_apitest_data_roots_glob_template())
  patterns = (
      map(build_common.expand_path_placeholder, glob_template_list) +
      [toolchain.get_adb_path_for_chromeos()] +
      unittest_util.get_nacl_tools() +
      unittest_util.get_test_executables(unittest_util.get_all_tests()))
  return file_util.glob(*patterns)
Esempio n. 6
0
def get_integration_test_deps():
    """Returns a list of paths needed to run ./run_integration_tests.

  The returned path may be a directory. In that case, all its descendants are
  needed.
  """
    # Note: integration test depends on ./launch_chrome. Also, we run unittests
    # as a part of integration test on ChromeOS.
    glob_template_list = (_COMMON_GLOB_TEMPLATE_LIST +
                          _LAUNCH_CHROME_GLOB_TEMPLATE_LIST +
                          _INTEGRATION_TEST_GLOB_TEMPLATE_LIST +
                          _UNITTEST_GLOB_TEMPLATE_LIST +
                          _get_gms_core_apitest_data_roots_glob_template())
    patterns = (
        map(build_common.expand_path_placeholder, glob_template_list) +
        [toolchain.get_adb_path_for_chromeos()] +
        unittest_util.get_nacl_tools() +
        unittest_util.get_test_executables(unittest_util.get_all_tests()))
    return file_util.glob(*patterns)