|
1 | 1 | #!/usr/bin/env python3
|
2 | 2 | #
|
3 |
| -# Functional test that boots a various Linux systems and checks the |
4 |
| -# console output. |
| 3 | +# Functional test that boots Windows Validation OS. |
| 4 | +# https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/validation-os-overview |
5 | 5 | #
|
6 |
| -# Copyright (c) 2022 Linaro Ltd. |
| 6 | +# Copyright (c) 2024 Linaro Ltd. |
7 | 7 | #
|
8 | 8 | # Author:
|
9 |
| -# Alex Bennée <alex.bennee@linaro.org> |
| 9 | +# Pierrick Bouvier <pierrick.bouvier@linaro.org> |
10 | 10 | #
|
11 | 11 | # SPDX-License-Identifier: GPL-2.0-or-later
|
12 | 12 |
|
|
20 | 20 | from qemu_test import get_qemu_img, run_cmd
|
21 | 21 |
|
22 | 22 |
|
23 |
| -class Aarch64VirtMachine(QemuSystemTest): |
24 |
| - KERNEL_COMMON_COMMAND_LINE = 'printk.time=0 ' |
25 |
| - timeout = 360 |
| 23 | +class Aarch64VirtWindowsMachine(QemuSystemTest): |
26 | 24 |
|
27 |
| - def wait_for_console_pattern(self, success_message, vm=None): |
28 |
| - wait_for_console_pattern(self, success_message, |
29 |
| - failure_message='Kernel panic - not syncing', |
30 |
| - vm=vm) |
31 |
| - |
32 |
| - ASSET_ALPINE_ISO = Asset( |
33 |
| - ('https://dl-cdn.alpinelinux.org/' |
34 |
| - 'alpine/v3.17/releases/aarch64/alpine-standard-3.17.2-aarch64.iso'), |
35 |
| - '5a36304ecf039292082d92b48152a9ec21009d3a62f459de623e19c4bd9dc027') |
36 |
| - |
37 |
| - # This tests the whole boot chain from EFI to Userspace |
38 |
| - # We only boot a whole OS for the current top level CPU and GIC |
39 |
| - # Other test profiles should use more minimal boots |
40 |
| - def test_alpine_virt_tcg_gic_max(self): |
41 |
| - iso_path = self.ASSET_ALPINE_ISO.fetch() |
| 25 | + ASSET_WINVOS_ISO = Asset( |
| 26 | + ('https://aka.ms/DownloadValidationOS_arm64', |
| 27 | + '')) |
42 | 28 |
|
| 29 | + def test_win_virt_tcg(self): |
43 | 30 | self.set_machine('virt')
|
44 | 31 | self.vm.set_console()
|
45 |
| - kernel_command_line = (self.KERNEL_COMMON_COMMAND_LINE + |
46 |
| - 'console=ttyAMA0') |
47 | 32 | self.require_accelerator("tcg")
|
48 | 33 |
|
| 34 | + iso_path = self.ASSET_WINVOS_ISO.fetch() |
| 35 | + |
49 | 36 | self.vm.add_args("-accel", "tcg")
|
50 | 37 | self.vm.add_args("-cpu", "max,pauth-impdef=on")
|
51 | 38 | self.vm.add_args("-machine",
|
|
0 commit comments