Lines Matching +full:stdout +full:- +full:path
1 # SPDX-License-Identifier: GPL-2.0
30 ABS_TOOL_PATH = os.path.abspath(os.path.dirname(__file__))
31 QEMU_CONFIGS_DIR = os.path.join(ABS_TOOL_PATH, 'qemu_configs')
35 default = os.path.join(build_dir, default)
53 def make_mrproper(self) -> None:
55 subprocess.check_output(['make', 'mrproper'], stderr=subprocess.STDOUT)
61 def make_arch_qemuconfig(self, kconfig: kunit_config.Kconfig) -> None:
64 def make_allyesconfig(self, build_dir, make_options) -> None:
67 def make_olddefconfig(self, build_dir, make_options) -> None:
77 subprocess.check_output(command, stderr=subprocess.STDOUT)
83 def make(self, jobs, build_dir, make_options) -> None:
84 command = ['make', 'ARCH=' + self._linux_arch, '--jobs=' + str(jobs)]
95 stdout=subprocess.DEVNULL)
106 def run(self, params, timeout, build_dir, outfile) -> None:
121 def make_arch_qemuconfig(self, base_kunitconfig: kunit_config.Kconfig) -> None:
127 kernel_path = os.path.join(build_dir, self._kernel_path)
128 qemu_command = ['qemu-system-' + self._qemu_arch,
129 '-nodefaults',
130 '-m', '1024',
131 '-kernel', kernel_path,
132 '-append', '\'' + ' '.join(params + [self._kernel_command_line]) + '\'',
133 '-no-reboot',
134 '-nographic',
135 '-serial stdio'] + self._extra_qemu_params
140 stdout=output,
141 stderr=subprocess.STDOUT,
156 def make_allyesconfig(self, build_dir, make_options) -> None:
166 stdout=subprocess.DEVNULL,
167 stderr=subprocess.STDOUT)
185 stdout=output,
186 stderr=subprocess.STDOUT,
190 def get_kconfig_path(build_dir) -> str:
193 def get_kunitconfig_path(build_dir) -> str:
196 def get_outfile_path(build_dir) -> str:
199 def get_source_tree_ops(arch: str, cross_compile: Optional[str]) -> LinuxSourceTreeOperations:
200 config_path = os.path.join(QEMU_CONFIGS_DIR, arch + '.py')
203 elif os.path.isfile(config_path):
209 cross_compile: Optional[str]) -> Tuple[
211 # The module name/path has very little to do with where the actual file
219 module_path = '.' + os.path.join(os.path.basename(QEMU_CONFIGS_DIR), os.path.basename(config_path))
225 spec.loader.exec_module(config) # pytype: disable=attribute-error
239 qemu_config_path=None) -> None:
252 if os.path.isdir(kunitconfig_path):
253 kunitconfig_path = os.path.join(kunitconfig_path, KUNITCONFIG_PATH)
254 if not os.path.exists(kunitconfig_path):
258 if not os.path.exists(kunitconfig_path):
264 def clean(self) -> bool:
272 def validate_config(self, build_dir) -> bool:
277 invalid = self._kconfig.entries() - validated_kconfig.entries()
286 def build_config(self, build_dir, make_options) -> bool:
288 if build_dir and not os.path.exists(build_dir):
299 def build_reconfig(self, build_dir, make_options) -> bool:
302 if os.path.exists(kconfig_path):
316 def build_kernel(self, alltests, jobs, build_dir, make_options) -> bool:
327 def run_kernel(self, args=None, build_dir='', filter_glob='', timeout=None) -> Iterator[str]:
340 def signal_handler(self, sig, frame) -> None: