def SyzygyCoverageFactory(self, target='release', clobber=False, tests=None, mode=None, slave_type='BuilderTester', options=None, compile_timeout=1200, build_url=None, project=None, factory_properties=None, target_arch=None): factory = self.BaseFactory(factory_properties=factory_properties) syzygy_cmd_obj = syzygy_commands.SyzygyCommands( factory, target, self._build_dir, self.target_platform, target_arch) # Compile everything. We need the grinder, the instrumenter and the # coverage agent as well as the unittests. syzygy_cmd_obj.AddCompileStep('../syzygy/syzygy.sln;build_all') # Then generate and upload a coverage report. syzygy_cmd_obj.AddGenerateCoverage() return factory
def SyzygyCoverageFactory(self, target='release', clobber=False, tests=None, mode=None, slave_type='BuilderTester', options=None, compile_timeout=1200, build_url=None, project=None, factory_properties=None, target_arch=None): """Generates the GYP solutions with "coverage=1", and performs code coverage reporting.""" if not factory_properties: factory_properties = {} gclient_env = factory_properties.get('gclient_env', {}) # Make sure gclient generates coverage-enabled projects. gclient_env['GYP_DEFINES'] = 'coverage=1' factory_properties['gclient_env'] = gclient_env factory = self.BaseFactory(factory_properties=factory_properties) syzygy_cmd_obj = syzygy_commands.SyzygyCommands( factory, target, self._build_dir, self.target_platform, target_arch) # Compile unittests only. syzygy_cmd_obj.AddCompileStep('../syzygy/syzygy.sln;build_unittests') # Then generate and upload a coverage report. syzygy_cmd_obj.AddGenerateCoverage() return factory
def SyzygyFactory(self, target='release', clobber=False, tests=None, mode=None, slave_type='BuilderTester', options=None, compile_timeout=1200, build_url=None, project=None, factory_properties=None, target_arch=None, official_release=False): factory_properties = factory_properties or {} gclient_env = factory_properties.setdefault('gclient_env', {}) if official_release: gclient_env.setdefault('GYP_DEFINES', '') gclient_env['GYP_DEFINES'] += ' official_build=1' factory = self.BaseFactory(factory_properties=factory_properties, official_release=official_release) syzygy_cmd_obj = syzygy_commands.SyzygyCommands( factory, target, self._build_dir, self.target_platform, target_arch) options = ForceToMsvsBuildTool(options) if official_release: # Compile the official_build project of the "all" solution for # official builds. syzygy_cmd_obj.AddCompileStep( '../syzygy/build/all.sln;official_build', options=options) else: # Compile the build_all project of the Syzygy solution. syzygy_cmd_obj.AddCompileStep('../syzygy/syzygy.sln;build_all', options=options) # Run the unittests. for test_name in _UNITTESTS: syzygy_cmd_obj.AddAppVerifierGTestTestStep(test_name) if target == 'release': syzygy_cmd_obj.AddRandomizeChromeStep() syzygy_cmd_obj.AddBenchmarkChromeStep() if official_release: # Archive official build output. syzygy_cmd_obj.AddArchival() syzygy_cmd_obj.AddUploadSymbols() return factory
def SyzygyFactory(self, target='release', clobber=False, tests=None, mode=None, slave_type='BuilderTester', options=None, compile_timeout=1200, build_url=None, project=None, factory_properties=None, target_arch=None, official_release=False): factory = self.BaseFactory(factory_properties=factory_properties, official_release=official_release) syzygy_cmd_obj = syzygy_commands.SyzygyCommands( factory, target, self._build_dir, self.target_platform, target_arch) if official_release: # Compile the official_build project of the "all" solution for # official builds. syzygy_cmd_obj.AddCompileStep( '../syzygy/build/all.sln;official_build') else: # Compile the build_all project of the Syzygy solution. syzygy_cmd_obj.AddCompileStep('../syzygy/syzygy.sln;build_all') # Run the unittests. for test_name in _UNITTESTS: syzygy_cmd_obj.AddAppVerifierGTestTestStep(test_name) if target == 'release': syzygy_cmd_obj.AddRandomizeChromeStep() syzygy_cmd_obj.AddBenchmarkChromeStep() if official_release: # Archive official build output. syzygy_cmd_obj.AddArchival() return factory
def SyzygySmokeTestFactory(self, target=None, clobber=False, tests=None, mode=None, slave_type='Tester', options=None, compile_timeout=1200, build_url=None, project=None, factory_properties=None, target_arch=None): """Runs the smoke-test against the checked out version of the binaries.""" factory = self.BaseFactory(slave_type=slave_type, factory_properties=factory_properties) syzygy_cmd_obj = syzygy_commands.SyzygyCommands( factory, target, self._build_dir, self.target_platform, target_arch) syzygy_cmd_obj.AddSmokeTest() return factory