Skip to content

Commit 13980b0

Browse files
committed
wip
Signed-off-by: Pierrick Bouvier <[email protected]>
1 parent 5a9b486 commit 13980b0

File tree

2 files changed

+12
-24
lines changed

2 files changed

+12
-24
lines changed

tests/functional/meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ tests_aarch64_system_thorough = [
6565
'aarch64_sbsaref_freebsd',
6666
'aarch64_tuxrun',
6767
'aarch64_virt',
68+
'aarch64_virt_windows',
6869
'multiprocess',
6970
]
7071

tests/functional/test_aarch64_virt_windows.py

Lines changed: 11 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#!/usr/bin/env python3
22
#
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
55
#
6-
# Copyright (c) 2022 Linaro Ltd.
6+
# Copyright (c) 2024 Linaro Ltd.
77
#
88
# Author:
9-
# Alex Bennée <alex.bennee@linaro.org>
9+
# Pierrick Bouvier <pierrick.bouvier@linaro.org>
1010
#
1111
# SPDX-License-Identifier: GPL-2.0-or-later
1212

@@ -20,32 +20,19 @@
2020
from qemu_test import get_qemu_img, run_cmd
2121

2222

23-
class Aarch64VirtMachine(QemuSystemTest):
24-
KERNEL_COMMON_COMMAND_LINE = 'printk.time=0 '
25-
timeout = 360
23+
class Aarch64VirtWindowsMachine(QemuSystemTest):
2624

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+
''))
4228

29+
def test_win_virt_tcg(self):
4330
self.set_machine('virt')
4431
self.vm.set_console()
45-
kernel_command_line = (self.KERNEL_COMMON_COMMAND_LINE +
46-
'console=ttyAMA0')
4732
self.require_accelerator("tcg")
4833

34+
iso_path = self.ASSET_WINVOS_ISO.fetch()
35+
4936
self.vm.add_args("-accel", "tcg")
5037
self.vm.add_args("-cpu", "max,pauth-impdef=on")
5138
self.vm.add_args("-machine",

0 commit comments

Comments
 (0)