Exemple #1
0
    def setUp(self):
        kernel_version = self.params.get('linux_version', default='3.19.8')
        linux_config = self.params.get('linux_config', default=None)
        if linux_config is not None:
            linux_config = os.path.join(self.datadir, linux_config)

        self.linux_build = kernel.KernelBuild(kernel_version, linux_config,
                                              self.srcdir, self.cache_dirs)
        self.linux_build.download()
        self.linux_build.uncompress()
        self.linux_build.configure()
Exemple #2
0
    def setUp(self):
        kernel_version = self.params.get('linux_version', default='3.19.8')
        linux_config = self.params.get('linux_config', default=None)
        if linux_config is not None:
            linux_config = self.get_data(linux_config)
        if linux_config is None:
            self.cancel('Test is missing data file %s' % linux_config)

        self.linux_build = kernel.KernelBuild(kernel_version, linux_config,
                                              self.workdir, self.cache_dirs)
        self.linux_build.download()
        self.linux_build.uncompress()
        self.linux_build.configure()
Exemple #3
0
    def setUp(self):
        kernel_src_url = self.params.get(
            'linux_src_url',
            default='https://www.kernel.org/pub/linux/kernel/v5.x/')
        kernel_version = self.params.get('linux_version', default='5.4.1')
        linux_config = self.params.get('linux_config', default=None)
        self.do_kernel_install = self.params.get('do_kernel_install',
                                                 default=None)
        if linux_config is not None:
            linux_config = self.get_data(linux_config)
        if linux_config is None:
            self.cancel('Test is missing data file %s' % linux_config)

        self.linux_build = kernel.KernelBuild(kernel_version, linux_config,
                                              self.workdir, self.cache_dirs)
        self.linux_build.download(kernel_src_url)
        self.linux_build.uncompress()
        self.linux_build.configure()
Exemple #4
0
    def setUp(self):
        kernel_src_url = self.params.get(
            "linux_src_url",
            default="https://www.kernel.org/pub/linux/kernel/v5.x/")
        kernel_version = self.params.get("linux_version", default="5.4.1")
        linux_config = self.params.get("linux_config", default=None)
        self.do_kernel_install = self.params.get("do_kernel_install",
                                                 default=None)
        if linux_config is not None:
            linux_config = self.get_data(linux_config)
        if linux_config is None:
            self.cancel(f"Test is missing data file {linux_config}")

        self.linux_build = kernel.KernelBuild(kernel_version, linux_config,
                                              self.workdir, self.cache_dirs)
        self.linux_build.download(kernel_src_url)
        self.linux_build.uncompress()
        self.linux_build.configure()