Ejemplo n.º 1
0
 def __init__(self,
              adb,
              device,
              test_suite,
              timeout,
              rebaseline,
              performance_test,
              cleanup_test_files,
              tool,
              dump_debug_info,
              symbols_dir=None):
     """
 Args:
   adb: ADB interface the tests are using.
   device: Device to run the tests.
   test_suite: A specific test suite to run, empty to run all.
   timeout: Timeout for each test.
   rebaseline: Whether or not to run tests in isolation and update the
       filter.
   performance_test: Whether or not performance test(s).
   cleanup_test_files: Whether or not to cleanup test files on device.
   tool: Name of the Valgrind tool.
   dump_debug_info: A debug_info object.
   symbols_dir: Directory to put the stripped binaries.
 """
     TestPackage.__init__(self, adb, device, test_suite, timeout,
                          rebaseline, performance_test, cleanup_test_files,
                          tool, dump_debug_info)
     self.symbols_dir = symbols_dir
Ejemplo n.º 2
0
 def __init__(self, adb, device, test_suite, timeout,
              cleanup_test_files, tool, apk_package_name,
              test_activity_name, command_line_file):
   TestPackage.__init__(self, adb, device, test_suite, timeout,
                        cleanup_test_files, tool)
   self._apk_package_name = apk_package_name
   self._test_activity_name = test_activity_name
   self._command_line_file = command_line_file
 def __init__(self, suite_name):
     """
 Args:
   suite_name: Name of the test suite (e.g. base_unittests).
 """
     TestPackage.__init__(self, suite_name)
     self.suite_path = os.path.join(constants.GetOutDirectory(), suite_name)
     self._symbols_dir = os.path.join(constants.GetOutDirectory(),
                                      'lib.target')
Ejemplo n.º 4
0
 def __init__(self, suite_name):
   """
   Args:
     suite_name: Name of the test suite (e.g. base_unittests).
   """
   TestPackage.__init__(self, suite_name)
   self.suite_path = os.path.join(constants.GetOutDirectory(), suite_name)
   self._symbols_dir = os.path.join(constants.GetOutDirectory(),
                                    'lib.target')
Ejemplo n.º 5
0
 def __init__(self, suite_name):
   """
   Args:
     suite_name: Name of the test suite (e.g. base_unittests).
   """
   TestPackage.__init__(self, suite_name)
   product_dir = os.path.join(cmd_helper.OutDirectory.get(),
       constants.GetBuildType())
   self.suite_path = os.path.join(product_dir, suite_name)
   self._symbols_dir = os.path.join(product_dir, 'lib.target')
 def __init__(self, suite_name, build_type):
   """
   Args:
     suite_name: Name of the test suite (e.g. base_unittests).
     build_type: 'Release' or 'Debug'.
   """
   TestPackage.__init__(self, suite_name)
   product_dir = os.path.join(cmd_helper.OutDirectory.get(), build_type)
   self.suite_path = os.path.join(product_dir, suite_name)
   self._symbols_dir = os.path.join(product_dir, 'lib.target')
 def __init__(self, suite_name, build_type):
     """
 Args:
   suite_name: Name of the test suite (e.g. base_unittests).
   build_type: 'Release' or 'Debug'.
 """
     TestPackage.__init__(self, suite_name)
     product_dir = os.path.join(cmd_helper.OutDirectory.get(), build_type)
     self.suite_path = os.path.join(product_dir, suite_name)
     self._symbols_dir = os.path.join(product_dir, 'lib.target')
Ejemplo n.º 8
0
 def __init__(self, adb, device, test_suite, timeout, cleanup_test_files, tool, symbols_dir=None):
     """
 Args:
   adb: ADB interface the tests are using.
   device: Device to run the tests.
   test_suite: A specific test suite to run, empty to run all.
   timeout: Timeout for each test.
   cleanup_test_files: Whether or not to cleanup test files on device.
   tool: Name of the Valgrind tool.
   symbols_dir: Directory to put the stripped binaries.
 """
     TestPackage.__init__(self, adb, device, test_suite, timeout, cleanup_test_files, tool)
     self.symbols_dir = symbols_dir
Ejemplo n.º 9
0
 def __init__(
     self, adb, device, test_suite, timeout, rebaseline, performance_test, cleanup_test_files, tool, dump_debug_info
 ):
     TestPackage.__init__(
         self,
         adb,
         device,
         test_suite,
         timeout,
         rebaseline,
         performance_test,
         cleanup_test_files,
         tool,
         dump_debug_info,
     )
Ejemplo n.º 10
0
 def __init__(self, suite_name):
   """
   Args:
     suite_name: Name of the test suite (e.g. base_unittests).
   """
   TestPackage.__init__(self, suite_name)
   if suite_name == 'content_browsertests':
     self.suite_path = os.path.join(
         constants.GetOutDirectory(), 'apks', '%s.apk' % suite_name)
     self._package_info = constants.PACKAGE_INFO['content_browsertests']
   else:
     self.suite_path = os.path.join(
         constants.GetOutDirectory(), '%s_apk' % suite_name,
         '%s-debug.apk' % suite_name)
     self._package_info = constants.PACKAGE_INFO['gtest']
 def __init__(self, adb, device, test_suite, timeout,
              cleanup_test_files, tool, symbols_dir=None):
   """
   Args:
     adb: ADB interface the tests are using.
     device: Device to run the tests.
     test_suite: A specific test suite to run, empty to run all.
     timeout: Timeout for each test.
     cleanup_test_files: Whether or not to cleanup test files on device.
     tool: Name of the Valgrind tool.
     symbols_dir: Directory to put the stripped binaries.
   """
   TestPackage.__init__(self, adb, device, test_suite, timeout,
                        cleanup_test_files, tool)
   self.symbols_dir = symbols_dir
 def __init__(self, suite_name):
     """
 Args:
   suite_name: Name of the test suite (e.g. base_unittests).
 """
     TestPackage.__init__(self, suite_name)
     if suite_name == 'content_browsertests':
         self.suite_path = os.path.join(constants.GetOutDirectory(), 'apks',
                                        '%s.apk' % suite_name)
         self._package_info = constants.PACKAGE_INFO['content_browsertests']
     else:
         self.suite_path = os.path.join(constants.GetOutDirectory(),
                                        '%s_apk' % suite_name,
                                        '%s-debug.apk' % suite_name)
         self._package_info = constants.PACKAGE_INFO['gtest']
Ejemplo n.º 13
0
 def __init__(self, suite_name):
   """
   Args:
     suite_name: Name of the test suite (e.g. base_unittests).
   """
   TestPackage.__init__(self, suite_name)
   product_dir = os.path.join(cmd_helper.OutDirectory.get(),
       constants.GetBuildType())
   if suite_name == 'content_browsertests':
     self.suite_path = os.path.join(
         product_dir, 'apks', '%s.apk' % suite_name)
     self._package_info = constants.PACKAGE_INFO['content_browsertests']
   else:
     self.suite_path = os.path.join(
         product_dir, '%s_apk' % suite_name, '%s-debug.apk' % suite_name)
     self._package_info = constants.PACKAGE_INFO['gtest']
 def __init__(self, suite_name, build_type):
   """
   Args:
     suite_name: Name of the test suite (e.g. base_unittests).
     build_type: 'Release' or 'Debug'.
   """
   TestPackage.__init__(self, suite_name)
   product_dir = os.path.join(cmd_helper.OutDirectory.get(), build_type)
   if suite_name == 'content_browsertests':
     self.suite_path = os.path.join(
         product_dir, 'apks', '%s.apk' % suite_name)
     self._test_apk_package_name = constants.BROWSERTEST_TEST_PACKAGE_NAME
     self._test_activity_name = constants.BROWSERTEST_TEST_ACTIVITY_NAME
     self._command_line_file = constants.BROWSERTEST_COMMAND_LINE_FILE
   else:
     self.suite_path = os.path.join(
         product_dir, '%s_apk' % suite_name, '%s-debug.apk' % suite_name)
     self._test_apk_package_name = constants.GTEST_TEST_PACKAGE_NAME
     self._test_activity_name = constants.GTEST_TEST_ACTIVITY_NAME
     self._command_line_file = constants.GTEST_COMMAND_LINE_FILE
 def __init__(self, suite_name, build_type):
     """
 Args:
   suite_name: Name of the test suite (e.g. base_unittests).
   build_type: 'Release' or 'Debug'.
 """
     TestPackage.__init__(self, suite_name)
     product_dir = os.path.join(cmd_helper.OutDirectory.get(), build_type)
     if suite_name == 'content_browsertests':
         self.suite_path = os.path.join(product_dir, 'apks',
                                        '%s.apk' % suite_name)
         self._test_apk_package_name = constants.BROWSERTEST_TEST_PACKAGE_NAME
         self._test_activity_name = constants.BROWSERTEST_TEST_ACTIVITY_NAME
         self._command_line_file = constants.BROWSERTEST_COMMAND_LINE_FILE
     else:
         self.suite_path = os.path.join(product_dir, '%s_apk' % suite_name,
                                        '%s-debug.apk' % suite_name)
         self._test_apk_package_name = constants.GTEST_TEST_PACKAGE_NAME
         self._test_activity_name = constants.GTEST_TEST_ACTIVITY_NAME
         self._command_line_file = constants.GTEST_COMMAND_LINE_FILE
Ejemplo n.º 16
0
 def __init__(self, adb, device, test_suite, timeout, rebaseline,
              performance_test, cleanup_test_files, tool, dump_debug_info,
              symbols_dir=None):
   """
   Args:
     adb: ADB interface the tests are using.
     device: Device to run the tests.
     test_suite: A specific test suite to run, empty to run all.
     timeout: Timeout for each test.
     rebaseline: Whether or not to run tests in isolation and update the
         filter.
     performance_test: Whether or not performance test(s).
     cleanup_test_files: Whether or not to cleanup test files on device.
     tool: Name of the Valgrind tool.
     dump_debug_info: A debug_info object.
     symbols_dir: Directory to put the stripped binaries.
   """
   TestPackage.__init__(self, adb, device, test_suite, timeout,
                        rebaseline, performance_test, cleanup_test_files,
                        tool, dump_debug_info)
   self.symbols_dir = symbols_dir
Ejemplo n.º 17
0
 def __init__(self, adb, device, test_suite, timeout, rebaseline,
              performance_test, cleanup_test_files, tool, dump_debug_info):
     TestPackage.__init__(self, adb, device, test_suite, timeout,
                          rebaseline, performance_test, cleanup_test_files,
                          tool, dump_debug_info)
 def __init__(self, adb, device, test_suite, timeout, cleanup_test_files, tool):
     TestPackage.__init__(self, adb, device, test_suite, timeout, cleanup_test_files, tool)
Ejemplo n.º 19
0
 def __init__(self, adb, device, test_suite, timeout, cleanup_test_files,
              tool):
     TestPackage.__init__(self, adb, device, test_suite, timeout,
                          cleanup_test_files, tool)