forked from qemu/qemu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'remotes/philmd-gitlab/tags/integration-…
…testing-20210208' into staging Integration testing patches Tests added: - Armbian 20.08 on Orange Pi PC (Philippe) - MPC8544ds machine (Thomas) - Virtex-ml507 ppc machine (Thomas) - Re-enable the microblaze test (Thomas) Various fixes and documentation improvements from Cleber. # gpg: Signature made Mon 08 Feb 2021 20:19:12 GMT # gpg: using RSA key FAABE75E12917221DCFD6BB2E3E32C2CDEADC0DE # gpg: Good signature from "Philippe Mathieu-Daudé (F4BUG) <f4bug@amsat.org>" [full] # Primary key fingerprint: FAAB E75E 1291 7221 DCFD 6BB2 E3E3 2C2C DEAD C0DE * remotes/philmd-gitlab/tags/integration-testing-20210208: Acceptance Tests: remove unnecessary tag from documentation example Acceptance tests: clarify ssh connection failure reason tests/acceptance/virtiofs_submounts: required space between IP and port tests/acceptance/virtiofs_submounts: standardize port as integer tests/acceptance/virtiofs_submounts: use a virtio-net device instead tests/acceptance/virtiofs_submounts: do not ask for ssh key password tests/acceptance/virtiofs_submounts: use workdir property tests/acceptance/boot_linux: rename misleading cloudinit method tests/acceptance/boot_linux: fix typo on cloudinit error message tests/acceptance: Re-enable the microblaze test tests/acceptance: Add a test for the virtex-ml507 ppc machine tests/acceptance: Test the mpc8544ds machine tests/acceptance: Move the pseries test to a separate file tests/acceptance: Test U-Boot/Linux from Armbian 20.08 on Orange Pi PC tests/acceptance: Extract do_test_arm_orangepi_armbian_uboot() method tests/acceptance: Introduce tesseract_ocr() helper tests/acceptance: Extract tesseract_available() helper in new namespace Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
- Loading branch information
Showing
10 changed files
with
226 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Functional test that boots a microblaze Linux kernel and checks the console | ||
# | ||
# Copyright (c) 2018, 2021 Red Hat, Inc. | ||
# | ||
# This work is licensed under the terms of the GNU GPL, version 2 or | ||
# later. See the COPYING file in the top-level directory. | ||
|
||
from avocado_qemu import Test | ||
from avocado_qemu import wait_for_console_pattern | ||
from avocado.utils import archive | ||
|
||
class MicroblazeMachine(Test): | ||
|
||
timeout = 90 | ||
|
||
def test_microblaze_s3adsp1800(self): | ||
""" | ||
:avocado: tags=arch:microblaze | ||
:avocado: tags=machine:petalogix-s3adsp1800 | ||
""" | ||
|
||
tar_url = ('https://www.qemu-advent-calendar.org' | ||
'/2018/download/day17.tar.xz') | ||
tar_hash = '08bf3e3bfb6b6c7ce1e54ab65d54e189f2caf13f' | ||
file_path = self.fetch_asset(tar_url, asset_hash=tar_hash) | ||
archive.extract(file_path, self.workdir) | ||
self.vm.set_console() | ||
self.vm.add_args('-kernel', self.workdir + '/day17/ballerina.bin') | ||
self.vm.launch() | ||
wait_for_console_pattern(self, 'This architecture does not have ' | ||
'kernel memory protection') | ||
# Note: | ||
# The kernel sometimes gets stuck after the "This architecture ..." | ||
# message, that's why we don't test for a later string here. This | ||
# needs some investigation by a microblaze wizard one day... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# Test that Linux kernel boots on ppc machines and check the console | ||
# | ||
# Copyright (c) 2018, 2020 Red Hat, Inc. | ||
# | ||
# This work is licensed under the terms of the GNU GPL, version 2 or | ||
# later. See the COPYING file in the top-level directory. | ||
|
||
from avocado.utils import archive | ||
from avocado_qemu import Test | ||
from avocado_qemu import wait_for_console_pattern | ||
|
||
class PpcMachine(Test): | ||
|
||
timeout = 90 | ||
KERNEL_COMMON_COMMAND_LINE = 'printk.time=0 ' | ||
panic_message = 'Kernel panic - not syncing' | ||
|
||
def test_ppc64_pseries(self): | ||
""" | ||
:avocado: tags=arch:ppc64 | ||
:avocado: tags=machine:pseries | ||
""" | ||
kernel_url = ('https://archives.fedoraproject.org/pub/archive' | ||
'/fedora-secondary/releases/29/Everything/ppc64le/os' | ||
'/ppc/ppc64/vmlinuz') | ||
kernel_hash = '3fe04abfc852b66653b8c3c897a59a689270bc77' | ||
kernel_path = self.fetch_asset(kernel_url, asset_hash=kernel_hash) | ||
|
||
self.vm.set_console() | ||
kernel_command_line = self.KERNEL_COMMON_COMMAND_LINE + 'console=hvc0' | ||
self.vm.add_args('-kernel', kernel_path, | ||
'-append', kernel_command_line) | ||
self.vm.launch() | ||
console_pattern = 'Kernel command line: %s' % kernel_command_line | ||
wait_for_console_pattern(self, console_pattern, self.panic_message) | ||
|
||
def test_ppc_mpc8544ds(self): | ||
""" | ||
:avocado: tags=arch:ppc | ||
:avocado: tags=machine:mpc8544ds | ||
""" | ||
tar_url = ('https://www.qemu-advent-calendar.org' | ||
'/2020/download/day17.tar.gz') | ||
tar_hash = '7a5239542a7c4257aa4d3b7f6ddf08fb6775c494' | ||
file_path = self.fetch_asset(tar_url, asset_hash=tar_hash) | ||
archive.extract(file_path, self.workdir) | ||
self.vm.set_console() | ||
self.vm.add_args('-kernel', self.workdir + '/creek/creek.bin') | ||
self.vm.launch() | ||
wait_for_console_pattern(self, 'QEMU advent calendar 2020', | ||
self.panic_message) | ||
|
||
def test_ppc_virtex_ml507(self): | ||
""" | ||
:avocado: tags=arch:ppc | ||
:avocado: tags=machine:virtex-ml507 | ||
""" | ||
tar_url = ('https://www.qemu-advent-calendar.org' | ||
'/2020/download/hippo.tar.gz') | ||
tar_hash = '306b95bfe7d147f125aa176a877e266db8ef914a' | ||
file_path = self.fetch_asset(tar_url, asset_hash=tar_hash) | ||
archive.extract(file_path, self.workdir) | ||
self.vm.set_console() | ||
self.vm.add_args('-kernel', self.workdir + '/hippo/hippo.linux', | ||
'-dtb', self.workdir + '/hippo/virtex440-ml507.dtb', | ||
'-m', '512') | ||
self.vm.launch() | ||
wait_for_console_pattern(self, 'QEMU advent calendar 2020', | ||
self.panic_message) |
Oops, something went wrong.