コード例 #1
0
    def build(self, packagedb_params={}, **kwargs):
        self.config.build_targets = ['install', 'test']
        for k in kwargs:
            setattr(self.config, k, kwargs[k])
        self.config.update_build_targets()

        if not self.buildscript or packagedb_params:
            self.buildscript = mock.BuildScript(self.config, self.modules)
            self.buildscript.packagedb = mock.PackageDB(**packagedb_params)
        else:
            packagedb = self.buildscript.packagedb
            self.buildscript = mock.BuildScript(self.config, self.modules)
            self.buildscript.packagedb = packagedb

        self.buildscript.build()
        return self.buildscript.actions
コード例 #2
0
ファイル: tests.py プロジェクト: placidrage/jhbuild
    def build(self, packagedb_params = {}, **kwargs):
        self.config.build_targets = ['install', 'test']
        for k in kwargs:
            setattr(self.config, k, kwargs[k])
        self.config.update_build_targets()

        if (self.packagedb is None) or (len(packagedb_params) > 0):
            self.packagedb = mock.PackageDB(**packagedb_params)
            self.moduleset = jhbuild.moduleset.ModuleSet(self.config, db=self.packagedb)
        self.buildscript = mock.BuildScript(self.config, self.modules, self.moduleset)

        self.buildscript.build()
        return self.buildscript.actions