Lines Matching defs:self

24     def wait_for_console_pattern(self, success_message, vm=None):
25 wait_for_console_pattern(self, success_message,
37 def test_alpine_virt_tcg_gic_max(self):
38 iso_path = self.ASSET_ALPINE_ISO.fetch()
40 self.set_machine('virt')
41 self.require_accelerator("tcg")
43 self.vm.set_console()
44 self.vm.add_args("-accel", "tcg")
45 self.vm.add_args("-cpu", "max,pauth-impdef=on")
46 self.vm.add_args("-machine",
51 self.vm.add_args("-smp", "2", "-m", "1024")
52 self.vm.add_args('-bios', self.build_file('pc-bios',
54 self.vm.add_args("-drive", f"file={iso_path},media=cdrom,format=raw")
55 self.vm.add_args('-device', 'virtio-rng-pci,rng=rng0')
56 self.vm.add_args('-object', 'rng-random,id=rng0,filename=/dev/urandom')
58 self.vm.launch()
59 self.wait_for_console_pattern('Welcome to Alpine Linux 3.17')
66 def common_aarch64_virt(self, machine):
71 self.set_machine('virt')
72 self.require_accelerator("tcg")
76 kernel_path = self.ASSET_KERNEL.fetch()
78 self.vm.set_console()
79 kernel_command_line = (self.KERNEL_COMMON_COMMAND_LINE +
81 self.vm.add_args('-cpu', 'max',
88 self.vm.add_args('-device', 'virtio-rng-pci,rng=rng0')
89 self.vm.add_args('-object',
94 image_path = self.scratch_file('scratch.qcow2')
95 qemu_img = get_qemu_img(self)
100 self.vm.add_args('-blockdev',
104 self.vm.add_args('-device',
107 self.vm.launch()
110 self.wait_for_console_pattern('login:')
115 ('cat /proc/self/maps', ps1),
123 exec_command_and_wait_for_pattern(self, cmd, pattern)
125 def test_aarch64_virt_gicv3(self):
126 self.common_aarch64_virt("virt,gic_version=3")
128 def test_aarch64_virt_gicv2(self):
129 self.common_aarch64_virt("virt,gic-version=2")