maintainer updates for -rc2 pre-PR
Subsystems (3)
cover maintainer updates for -rc2 pre-PR
This is a mostly testing focused set of patches but a few bug fixes as well. I plan to send the PR in on Monday. I can drop any patches that are objected to but I think its pretty safe.
Contains:
- Daniel's clean-up of functional tests
- Another avocado->function conversion from Thomas
- Update the tuxrun baseline images
- Minor fix to the rust pl011 device
- Documentation clarification on identity
The following could do with some review:
tests/functional: update the x86_64 tuxrun tests tests/functional: update the sparc64 tuxrun tests tests/functional: update the s390x tuxrun tests tests/functional: update the riscv64 tuxrun tests tests/functional: update the riscv32 tuxrun tests tests/functional: update the ppc64 tuxrun tests tests/functional: update the ppc32 tuxrun tests tests/functional: update the mips64el tuxrun tests tests/functional: update the mips64 tuxrun tests tests/functional: update the mips32el tuxrun tests tests/functional: update the mips32 tuxrun tests tests/functional: add a m68k tuxrun tests tests/functional: update the i386 tuxrun tests tests/functional: update the aarch64 tuxrun tests tests/functional: update the arm tuxrun tests tests/functional: Convert the Avocado aarch64 tuxrun tests
Thanks,
Alex.
Alex Bennée (15):
tests/functional: update the arm tuxrun tests tests/functional: update the aarch64 tuxrun tests tests/functional: update the i386 tuxrun tests tests/functional: add a m68k tuxrun tests tests/functional: update the mips32 tuxrun tests tests/functional: update the mips32el tuxrun tests tests/functional: update the mips64 tuxrun tests tests/functional: update the mips64el tuxrun tests tests/functional: update the ppc32 tuxrun tests tests/functional: update the ppc64 tuxrun tests tests/functional: update the riscv32 tuxrun tests tests/functional: update the riscv64 tuxrun tests tests/functional: update the s390x tuxrun tests tests/functional: update the sparc64 tuxrun tests tests/functional: update the x86_64 tuxrun tests
Daniel P. Berrangé (19):
tests/functional: fix mips64el test to honour workdir tests/functional: automatically clean up scratch files after tests tests/functional: remove "AVOCADO" from env variable name tests/functional: remove todo wrt avocado.utils.wait_for tests/functional: remove leftover :avocado: tags tests/functional: remove obsolete reference to avocado bug tests/functional: remove comments talking about avocado tests/functional: honour self.workdir in ACPI bits tests tests/functional: put QEMUMachine logs in testcase log directory tests/functional: honour requested test VM name in QEMUMachine tests/functional: enable debug logging for QEMUMachine tests/functional: logs details of console interaction operations tests/functional: don't try to wait for the empty string tests/functional: require non-NULL success_message for console wait tests/functional: rewrite console handling to be bytewise tests/functional: remove time.sleep usage from tuxrun tests tests/functional: add a QMP backdoor for debugging stalled tests tests/functional: avoid accessing log_filename on earlier failures
docs: explicitly permit a "commonly known identity" with SoB
Junjie Mao (1):
rust/pl011: Fix range checks for device ID accesses
Pierrick Bouvier (3):
plugins: add missing export for qemu_plugin_num_vcpus
plugins: detect qemu plugin API symbols from header
plugins: eradicate qemu-plugins.symbols static file
Thomas Huth (1):
tests/functional: Convert the Avocado aarch64 tuxrun tests
MAINTAINERS | 4 +- docs/devel/submitting-a-patch.rst | 7 +- docs/devel/testing/functional.rst | 16 ++ include/qemu/qemu-plugin.h | 1 + .gitlab-ci.d/check-dco.py | 5 +- plugins/meson.build | 12 +- plugins/qemu-plugins.symbols | 59 ------ rust/hw/char/pl011/src/device.rs | 2 +- scripts/qemu-plugin-symbols.py | 45 +++++ tests/avocado/tuxrun_baselines.py | 224 ----------------------- tests/functional/meson.build | 3 + tests/functional/qemu_test/cmd.py | 89 +++++++-- tests/functional/qemu_test/testcase.py | 43 +++-- tests/functional/qemu_test/tuxruntest.py | 17 +- tests/functional/test_aarch64_tuxrun.py | 50 +++++ tests/functional/test_acpi_bits.py | 57 ++---- tests/functional/test_arm_bpim2u.py | 20 -- tests/functional/test_arm_orangepi.py | 27 --- tests/functional/test_arm_tuxrun.py | 28 +-- tests/functional/test_i386_tuxrun.py | 8 +- tests/functional/test_m68k_nextcube.py | 3 +- tests/functional/test_m68k_tuxrun.py | 34 ++++ tests/functional/test_mips64_tuxrun.py | 8 +- tests/functional/test_mips64el_malta.py | 4 +- tests/functional/test_mips64el_tuxrun.py | 8 +- tests/functional/test_mips_tuxrun.py | 8 +- tests/functional/test_mipsel_tuxrun.py | 8 +- tests/functional/test_ppc64_tuxrun.py | 16 +- tests/functional/test_ppc_tuxrun.py | 8 +- tests/functional/test_riscv32_tuxrun.py | 8 +- tests/functional/test_riscv64_tuxrun.py | 16 +- tests/functional/test_s390x_tuxrun.py | 8 +- tests/functional/test_sparc64_tuxrun.py | 8 +- tests/functional/test_virtio_gpu.py | 3 +- tests/functional/test_x86_64_tuxrun.py | 8 +- 35 files changed, 376 insertions(+), 489 deletions(-) delete mode 100644 plugins/qemu-plugins.symbols create mode 100755 scripts/qemu-plugin-symbols.py delete mode 100644 tests/avocado/tuxrun_baselines.py create mode 100755 tests/functional/test_aarch64_tuxrun.py create mode 100644 tests/functional/test_m68k_tuxrun.py
Signature · 1 line
2.39.5
PATCH 1/39 tests/functional: fix mips64el test to honour workdir
From: Daniel P. Berrangé <[email protected]>
The missing directory separator resulted in the kernel file being created 1 level higher than expected.
Message-Id: <[email protected]>
--- tests/functional/test_mips64el_malta.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tests/functional/test_mips64el_malta.py +1 -1
@@ -129,7 +129,7 @@ def do_test_i6400_framebuffer_logo(self, cpu_cores_count): screendump_path = os.path.join(self.workdir, 'screendump.pbm') kernel_path_gz = self.ASSET_KERNEL_4_7_0.fetch() - kernel_path = self.workdir + "vmlinux" + kernel_path = self.workdir + "/vmlinux" gzip_uncompress(kernel_path_gz, kernel_path) tuxlogo_path = self.ASSET_TUXLOGO.fetch()
Signature · 1 line
2.39.5
PATCH 2/39 tests/functional: automatically clean up scratch files after tests
In reply to Alex BennéeFrom: Daniel P. Berrangé <[email protected]>
The build/tests/functional subdirectories are consuming huge amounts of disk space.
Split the location for scratch files into a 'scratch' sub-directory, separate from log files, and delete it upon completion of each test. The new env variable QEMU_TEST_KEEP_SCRATCH can be set to preserve this scratch dir for debugging access if required.
Message-Id: <[email protected]>
--- docs/devel/testing/functional.rst | 6 ++++++ tests/functional/qemu_test/testcase.py | 14 +++++++++----- 2 files changed, 15 insertions(+), 5 deletions(-)
docs/devel/testing/functional.rst +6 -0
@@ -65,6 +65,12 @@ to the QEMU binary that should be used for the test, for example:: $ export QEMU_TEST_QEMU_BINARY=$PWD/qemu-system-x86_64 $ python3 ../tests/functional/test_file.py +The test framework will automatically purge any scratch files created during +the tests. If needing to debug a failed test, it is possible to keep these +files around on disk by setting ```QEMU_TEST_KEEP_SCRATCH=1``` as an env +variable. Any preserved files will be deleted the next time the test is run +without this variable set. + Overview --------
tests/functional/qemu_test/testcase.py +9 -5
@@ -13,8 +13,9 @@ import logging import os -import subprocess import pycotap +import shutil +import subprocess import sys import unittest import uuid
@@ -40,11 +41,12 @@ def setUp(self, bin_prefix): self.assertIsNotNone(self.qemu_bin, 'QEMU_TEST_QEMU_BINARY must be set') self.arch = self.qemu_bin.split('-')[-1] - self.workdir = os.path.join(BUILD_DIR, 'tests/functional', self.arch, - self.id()) + self.outputdir = os.path.join(BUILD_DIR, 'tests', 'functional', + self.arch, self.id()) + self.workdir = os.path.join(self.outputdir, 'scratch') os.makedirs(self.workdir, exist_ok=True) - self.logdir = self.workdir + self.logdir = self.outputdir self.log_filename = os.path.join(self.logdir, 'base.log') self.log = logging.getLogger('qemu-test') self.log.setLevel(logging.DEBUG)
@@ -56,6 +58,8 @@ def setUp(self, bin_prefix): self.log.addHandler(self._log_fh) def tearDown(self): + if "QEMU_TEST_KEEP_SCRATCH" not in os.environ: + shutil.rmtree(self.workdir) self.log.removeHandler(self._log_fh) def main():
@@ -108,7 +112,7 @@ def setUp(self): console_log = logging.getLogger('console') console_log.setLevel(logging.DEBUG) - self.console_log_name = os.path.join(self.workdir, 'console.log') + self.console_log_name = os.path.join(self.logdir, 'console.log') self._console_log_fh = logging.FileHandler(self.console_log_name, mode='w') self._console_log_fh.setLevel(logging.DEBUG)
Signature · 1 line
2.39.5
PATCH 3/39 tests/functional: remove "AVOCADO" from env variable name
In reply to Alex BennéeFrom: Daniel P. Berrangé <[email protected]>
This env variable is a debugging flag to save screendumps in the mips64el malta tests.
Message-Id: <[email protected]>
--- tests/functional/test_mips64el_malta.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tests/functional/test_mips64el_malta.py +1 -1
@@ -159,7 +159,7 @@ def do_test_i6400_framebuffer_logo(self, cpu_cores_count): loc = np.where(result >= match_threshold) tuxlogo_count = 0 h, w = tuxlogo_bgr.shape[:2] - debug_png = os.getenv('AVOCADO_CV2_SCREENDUMP_PNG_PATH') + debug_png = os.getenv('QEMU_TEST_CV2_SCREENDUMP_PNG_PATH') for tuxlogo_count, pt in enumerate(zip(*loc[::-1]), start=1): logger.debug('found Tux at position (x, y) = %s', pt) cv2.rectangle(screendump_bgr, pt,
Signature · 1 line
2.39.5
PATCH 4/39 tests/functional: remove todo wrt avocado.utils.wait_for
In reply to Alex BennéeFrom: Daniel P. Berrangé <[email protected]>
We're not using avocado anymore, so while the TODO item is still relevant, suggesting use of avocado.utils is not.
Message-Id: <[email protected]>
--- tests/functional/test_m68k_nextcube.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
tests/functional/test_m68k_nextcube.py +1 -2
@@ -37,8 +37,7 @@ def check_bootrom_framebuffer(self, screenshot_path): self.vm.launch() self.log.info('VM launched, waiting for display') - # TODO: Use avocado.utils.wait.wait_for to catch the - # 'displaysurface_create 1120x832' trace-event. + # TODO: wait for the 'displaysurface_create 1120x832' trace-event. time.sleep(2) self.vm.cmd('human-monitor-command',
Signature · 1 line
2.39.5
PATCH 5/39 tests/functional: remove leftover :avocado: tags
In reply to Alex BennéeFrom: Daniel P. Berrangé <[email protected]>
These tags are not honoured under the new functional test harness.
Message-Id: <[email protected]>
--- tests/functional/test_arm_bpim2u.py | 20 -------------------- tests/functional/test_arm_orangepi.py | 27 --------------------------- 2 files changed, 47 deletions(-)
tests/functional/test_arm_bpim2u.py +0 -20
@@ -37,11 +37,6 @@ class BananaPiMachine(LinuxKernelTest): '5b41b4e11423e562c6011640f9a7cd3bdd0a3d42b83430f7caa70a432e6cd82c') def test_arm_bpim2u(self): - """ - :avocado: tags=arch:arm - :avocado: tags=machine:bpim2u - :avocado: tags=accel:tcg - """ self.set_machine('bpim2u') deb_path = self.ASSET_DEB.fetch() kernel_path = self.extract_from_deb(deb_path,
@@ -64,11 +59,6 @@ def test_arm_bpim2u(self): os.remove(dtb_path) def test_arm_bpim2u_initrd(self): - """ - :avocado: tags=arch:arm - :avocado: tags=accel:tcg - :avocado: tags=machine:bpim2u - """ self.set_machine('bpim2u') deb_path = self.ASSET_DEB.fetch() kernel_path = self.extract_from_deb(deb_path,
@@ -105,11 +95,6 @@ def test_arm_bpim2u_initrd(self): os.remove(initrd_path) def test_arm_bpim2u_gmac(self): - """ - :avocado: tags=arch:arm - :avocado: tags=machine:bpim2u - :avocado: tags=device:sd - """ self.set_machine('bpim2u') self.require_netdev('user')
@@ -160,11 +145,6 @@ def test_arm_bpim2u_gmac(self): @skipUnless(os.getenv('QEMU_TEST_ALLOW_LARGE_STORAGE'), 'storage limited') def test_arm_bpim2u_openwrt_22_03_3(self): - """ - :avocado: tags=arch:arm - :avocado: tags=machine:bpim2u - :avocado: tags=device:sd - """ self.set_machine('bpim2u') # This test download a 8.9 MiB compressed image and expand it # to 127 MiB.
tests/functional/test_arm_orangepi.py +0 -27
@@ -49,11 +49,6 @@ class BananaPiMachine(LinuxKernelTest): '20d3e07dc057e15c12452620e90ecab2047f0f7940d9cba8182ebc795927177f') def test_arm_orangepi(self): - """ - :avocado: tags=arch:arm - :avocado: tags=machine:orangepi-pc - :avocado: tags=accel:tcg - """ self.set_machine('orangepi-pc') deb_path = self.ASSET_DEB.fetch() kernel_path = self.extract_from_deb(deb_path,
@@ -75,11 +70,6 @@ def test_arm_orangepi(self): os.remove(dtb_path) def test_arm_orangepi_initrd(self): - """ - :avocado: tags=arch:arm - :avocado: tags=accel:tcg - :avocado: tags=machine:orangepi-pc - """ self.set_machine('orangepi-pc') deb_path = self.ASSET_DEB.fetch() kernel_path = self.extract_from_deb(deb_path,
@@ -115,12 +105,6 @@ def test_arm_orangepi_initrd(self): os.remove(initrd_path) def test_arm_orangepi_sd(self): - """ - :avocado: tags=arch:arm - :avocado: tags=accel:tcg - :avocado: tags=machine:orangepi-pc - :avocado: tags=device:sd - """ self.set_machine('orangepi-pc') self.require_netdev('user') deb_path = self.ASSET_DEB.fetch()
@@ -167,11 +151,6 @@ def test_arm_orangepi_sd(self): @skipUnless(os.getenv('QEMU_TEST_ALLOW_LARGE_STORAGE'), 'storage limited') def test_arm_orangepi_armbian(self): - """ - :avocado: tags=arch:arm - :avocado: tags=machine:orangepi-pc - :avocado: tags=device:sd - """ self.set_machine('orangepi-pc') # This test download a 275 MiB compressed image and expand it # to 1036 MiB, but the underlying filesystem is 1552 MiB...
@@ -208,12 +187,6 @@ def test_arm_orangepi_armbian(self): @skipUnless(os.getenv('QEMU_TEST_ALLOW_LARGE_STORAGE'), 'storage limited') def test_arm_orangepi_uboot_netbsd9(self): - """ - :avocado: tags=arch:arm - :avocado: tags=machine:orangepi-pc - :avocado: tags=device:sd - :avocado: tags=os:netbsd - """ self.set_machine('orangepi-pc') # This test download a 304MB compressed image and expand it to 2GB deb_path = self.ASSET_UBOOT.fetch()
Signature · 1 line
2.39.5
PATCH 6/39 tests/functional: remove obsolete reference to avocado bug
In reply to Alex BennéeFrom: Daniel P. Berrangé <[email protected]>
Historical bugs in avocado related to zstd support are not relevant to the code now that it uses QEMU's native test harness.
Message-Id: <[email protected]>
--- tests/functional/qemu_test/tuxruntest.py | 1 - 1 file changed, 1 deletion(-)
tests/functional/qemu_test/tuxruntest.py +0 -1
@@ -39,7 +39,6 @@ def setUp(self): super().setUp() # We need zstd for all the tuxrun tests - # See https://github.com/avocado-framework/avocado/issues/5609 (has_zstd, msg) = has_cmd('zstd') if has_zstd is False: self.skipTest(msg)
Signature · 1 line
2.39.5
PATCH 7/39 tests/functional: remove comments talking about avocado
In reply to Alex BennéeFrom: Daniel P. Berrangé <[email protected]>
The first comment is still relevant but should talk about our own test harness instead. The second comment adds no value over reading the code and can be removed.
Message-Id: <[email protected]>
--- tests/functional/test_acpi_bits.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-)
tests/functional/test_acpi_bits.py +6 -7
@@ -196,11 +196,12 @@ def copy_test_scripts(self): for filename in os.listdir(bits_test_dir): if os.path.isfile(os.path.join(bits_test_dir, filename)) and \ filename.endswith('.py2'): - # all test scripts are named with extension .py2 so that - # avocado does not try to load them. These scripts are - # written for python 2.7 not python 3 and hence if avocado - # loaded them, it would complain about python 3 specific - # syntaxes. + # All test scripts are named with extension .py2 so that + # they are not run by accident. + # + # These scripts are intended to run inside the test VM + # and are written for python 2.7 not python 3, hence + # would cause syntax errors if loaded ouside the VM. newfilename = os.path.splitext(filename)[0] + '.py' shutil.copy2(os.path.join(bits_test_dir, filename), os.path.join(target_test_dir, newfilename))
@@ -399,8 +400,6 @@ def test_acpi_smbios_bits(self): # biosbits has been configured to run all the specified test suites # in batch mode and then automatically initiate a vm shutdown. - # Set timeout to BITS_TIMEOUT for SHUTDOWN event from bits VM at par - # with the avocado test timeout. self._vm.event_wait('SHUTDOWN', timeout=BITS_TIMEOUT) self._vm.wait(timeout=None) self.logger.debug("Checking console output ...")
Signature · 1 line
2.39.5
Re: [PATCH 07/39] tests/functional: remove comments talking about avocado
Quoted 36 lines · Alex Bennée
From: Daniel P. Berrangé <[email protected]>
The first comment is still relevant but should talk about our own test harness instead. The second comment adds no value over reading the code and can be removed.
Signed-off-by Daniel P. Berrangé <[email protected]>Message-Id: <[email protected]>
Signed-off-by Alex Bennée <[email protected]>--- tests/functional/test_acpi_bits.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-)tests/functional/test_acpi_bits.py +6
-5@@ -196,11 +196,12 @@ def copy_test_scripts(self): for filename in os.listdir(bits_test_dir): if os.path.isfile(os.path.join(bits_test_dir, filename)) and \ filename.endswith('.py2'): - # all test scripts are named with extension .py2 so that - # avocado does not try to load them. These scripts are - # written for python 2.7 not python 3 and hence if avocado - # loaded them, it would complain about python 3 specific - # syntaxes. + # All test scripts are named with extension .py2 so that + # they are not run by accident. + # + # These scripts are intended to run inside the test VM + # and are written for python 2.7 not python 3, hence + # would cause syntax errors if loaded ouside the VM. newfilename = os.path.splitext(filename)[0] + '.py' shutil.copy2(os.path.join(bits_test_dir, filename), os.path.join(target_test_dir, newfilename))
tests/functional/test_acpi_bits.py def test_acpi_smbios_bits(self): · line 405
Quoted 8 lines
tests/functional/test_acpi_bits.py +0
-2@@ -399,8 +400,6 @@ def test_acpi_smbios_bits(self): # biosbits has been configured to run all the specified test suites # in batch mode and then automatically initiate a vm shutdown. - # Set timeout to BITS_TIMEOUT for SHUTDOWN event from bits VM at par - # with the avocado test timeout. self._vm.event_wait('SHUTDOWN', timeout=BITS_TIMEOUT) self._vm.wait(timeout=None) self.logger.debug("Checking console output ...")
PATCH 8/39 tests/functional: honour self.workdir in ACPI bits tests
In reply to Alex BennéeFrom: Daniel P. Berrangé <[email protected]>
The ACPI bits test sets up its own private temporary directory into it creates scratch files. This is justified by a suggestion that we need to be able to preserve the scratch files. We have the ability to preserve the scratch dir with our functional harness, so there's no reason to diverge from standard practice in file placement.
Message-Id: <[email protected]>
--- tests/functional/test_acpi_bits.py | 44 +++++++++--------------------- 1 file changed, 13 insertions(+), 31 deletions(-)
tests/functional/test_acpi_bits.py +13 -31
@@ -150,7 +150,6 @@ class AcpiBitsTest(QemuBaseTest): #pylint: disable=too-many-instance-attributes def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self._vm = None - self._workDir = None self._baseDir = None self._debugcon_addr = '0x403'
@@ -169,7 +168,7 @@ def copy_bits_config(self): config_file = 'bits-cfg.txt' bits_config_dir = os.path.join(self._baseDir, 'acpi-bits', 'bits-config') - target_config_dir = os.path.join(self._workDir, + target_config_dir = os.path.join(self.workdir, 'bits-%d' %self.BITS_INTERNAL_VER, 'boot') self.assertTrue(os.path.exists(bits_config_dir))
@@ -186,7 +185,7 @@ def copy_test_scripts(self): bits_test_dir = os.path.join(self._baseDir, 'acpi-bits', 'bits-tests') - target_test_dir = os.path.join(self._workDir, + target_test_dir = os.path.join(self.workdir, 'bits-%d' %self.BITS_INTERNAL_VER, 'boot', 'python')
@@ -225,8 +224,8 @@ def fix_mkrescue(self, mkrescue): the directory where we have extracted our pre-built bits grub tarball. """ - grub_x86_64_mods = os.path.join(self._workDir, 'grub-inst-x86_64-efi') - grub_i386_mods = os.path.join(self._workDir, 'grub-inst') + grub_x86_64_mods = os.path.join(self.workdir, 'grub-inst-x86_64-efi') + grub_i386_mods = os.path.join(self.workdir, 'grub-inst') self.assertTrue(os.path.exists(grub_x86_64_mods)) self.assertTrue(os.path.exists(grub_i386_mods))
@@ -247,11 +246,11 @@ def generate_bits_iso(self): """ Uses grub-mkrescue to generate a fresh bits iso with the python test scripts """ - bits_dir = os.path.join(self._workDir, + bits_dir = os.path.join(self.workdir, 'bits-%d' %self.BITS_INTERNAL_VER) - iso_file = os.path.join(self._workDir, + iso_file = os.path.join(self.workdir, 'bits-%d.iso' %self.BITS_INTERNAL_VER) - mkrescue_script = os.path.join(self._workDir, + mkrescue_script = os.path.join(self.workdir, 'grub-inst-x86_64-efi', 'bin', 'grub-mkrescue')
@@ -290,17 +289,7 @@ def setUp(self): # pylint: disable=arguments-differ self._baseDir = Path(__file__).parent - # workdir could also be avocado's own workdir in self.workdir. - # At present, I prefer to maintain my own temporary working - # directory. It gives us more control over the generated bits - # log files and also for debugging, we may chose not to remove - # this working directory so that the logs and iso can be - # inspected manually and archived if needed. - self._workDir = tempfile.mkdtemp(prefix='acpi-bits-', - suffix='.tmp') - self.logger.info('working dir: %s', self._workDir) - - prebuiltDir = os.path.join(self._workDir, 'prebuilt') + prebuiltDir = os.path.join(self.workdir, 'prebuilt') if not os.path.isdir(prebuiltDir): os.mkdir(prebuiltDir, mode=0o775)
@@ -321,10 +310,10 @@ def setUp(self): # pylint: disable=arguments-differ # extract the bits software in the temp working directory with zipfile.ZipFile(bits_zip_file, 'r') as zref: - zref.extractall(self._workDir) + zref.extractall(self.workdir) with tarfile.open(grub_tar_file, 'r', encoding='utf-8') as tarball: - tarball.extractall(self._workDir) + tarball.extractall(self.workdir) self.copy_test_scripts() self.copy_bits_config()
@@ -334,7 +323,7 @@ def parse_log(self): """parse the log generated by running bits tests and check for failures. """ - debugconf = os.path.join(self._workDir, self._debugcon_log) + debugconf = os.path.join(self.workdir, self._debugcon_log) log = "" with open(debugconf, 'r', encoding='utf-8') as filehandle: log = filehandle.read()
@@ -360,25 +349,18 @@ def tearDown(self): """ if self._vm: self.assertFalse(not self._vm.is_running) - if not os.getenv('BITS_DEBUG') and self._workDir: - self.logger.info('removing the work directory %s', self._workDir) - shutil.rmtree(self._workDir) - else: - self.logger.info('not removing the work directory %s ' \ - 'as BITS_DEBUG is ' \ - 'passed in the environment', self._workDir) super().tearDown() def test_acpi_smbios_bits(self): """The main test case implementation.""" - iso_file = os.path.join(self._workDir, + iso_file = os.path.join(self.workdir, 'bits-%d.iso' %self.BITS_INTERNAL_VER) self.assertTrue(os.access(iso_file, os.R_OK)) self._vm = QEMUBitsMachine(binary=self.qemu_bin, - base_temp_dir=self._workDir, + base_temp_dir=self.workdir, debugcon_log=self._debugcon_log, debugcon_addr=self._debugcon_addr)
Signature · 1 line
2.39.5
PATCH 9/39 tests/functional: put QEMUMachine logs in testcase log directory
In reply to Alex BennéeFrom: Daniel P. Berrangé <[email protected]>
We are not passing the 'log_dir' parameter to QEMUMachine, so the QEMU stdout/err logs are being placed in a temp directory and thus deleted after execution. This makes them inaccessible as gitlab CI artifacts.
Pass the testcase log directory path into QEMUMachine to make the logs persistent.
Message-Id: <[email protected]>
--- tests/functional/qemu_test/testcase.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
tests/functional/qemu_test/testcase.py +3 -2
@@ -163,10 +163,11 @@ def require_device(self, devicename): self.skipTest('no support for device ' + devicename) def _new_vm(self, name, *args): - vm = QEMUMachine(self.qemu_bin, base_temp_dir=self.workdir) + vm = QEMUMachine(self.qemu_bin, + base_temp_dir=self.workdir, + log_dir=self.logdir) self.log.debug('QEMUMachine "%s" created', name) self.log.debug('QEMUMachine "%s" temp_dir: %s', name, vm.temp_dir) - self.log.debug('QEMUMachine "%s" log_dir: %s', name, vm.log_dir) if args: vm.add_args(*args) return vm
Signature · 1 line
2.39.5
PATCH 10/39 tests/functional: honour requested test VM name in QEMUMachine
In reply to Alex BennéeFrom: Daniel P. Berrangé <[email protected]>
The functional test case class is going to the trouble of passing around a machine name, but then fails to give this QEMUMachine. As a result, QEMUMachine will create a completely random name. Since log file names match the machine name, this results in log files accumulating over time.
Message-Id: <[email protected]>
--- tests/functional/qemu_test/testcase.py | 1 + 1 file changed, 1 insertion(+)
tests/functional/qemu_test/testcase.py +1 -0
@@ -164,6 +164,7 @@ def require_device(self, devicename): def _new_vm(self, name, *args): vm = QEMUMachine(self.qemu_bin, + name=name, base_temp_dir=self.workdir, log_dir=self.logdir) self.log.debug('QEMUMachine "%s" created', name)
Signature · 1 line
2.39.5
PATCH 11/39 tests/functional: enable debug logging for QEMUMachine
In reply to Alex BennéeFrom: Daniel P. Berrangé <[email protected]>
Set the 'qemu.machine' logger to 'DEBUG' level, to ensure we see log messages related to the QEMUMachine class. Most importantly this ensures we capture the full QEMU command line args for instances we spawn.
Message-Id: <[email protected]>
--- tests/functional/qemu_test/testcase.py | 6 ++++++ 1 file changed, 6 insertions(+)
tests/functional/qemu_test/testcase.py +6 -0
@@ -57,9 +57,15 @@ def setUp(self, bin_prefix): self._log_fh.setFormatter(fileFormatter) self.log.addHandler(self._log_fh) + # Capture QEMUMachine logging + self.machinelog = logging.getLogger('qemu.machine') + self.machinelog.setLevel(logging.DEBUG) + self.machinelog.addHandler(self._log_fh) + def tearDown(self): if "QEMU_TEST_KEEP_SCRATCH" not in os.environ: shutil.rmtree(self.workdir) + self.machinelog.removeHandler(self._log_fh) self.log.removeHandler(self._log_fh) def main():
Signature · 1 line
2.39.5
Re: [PATCH 11/39] tests/functional: enable debug logging for QEMUMachine
Quoted 24 lines · Alex Bennée
From: Daniel P. Berrangé <[email protected]>
Set the 'qemu.machine' logger to 'DEBUG' level, to ensure we see log messages related to the QEMUMachine class. Most importantly this ensures we capture the full QEMU command line args for instances we spawn.
Signed-off-by Daniel P. Berrangé <[email protected]>Message-Id: <[email protected]>
Signed-off-by Alex Bennée <[email protected]>--- tests/functional/qemu_test/testcase.py | 6 ++++++ 1 file changed, 6 insertions(+)tests/functional/qemu_test/testcase.py +2
-0@@ -57,9 +57,15 @@ def setUp(self, bin_prefix): self._log_fh.setFormatter(fileFormatter) self.log.addHandler(self._log_fh) + # Capture QEMUMachine logging + self.machinelog = logging.getLogger('qemu.machine')
tests/functional/qemu_test/testcase.py def setUp(self, bin_prefix): · line 71
Quoted 10 lines
tests/functional/qemu_test/testcase.py +4
-0+ self.machinelog.setLevel(logging.DEBUG) + self.machinelog.addHandler(self._log_fh) + def tearDown(self): if "QEMU_TEST_KEEP_SCRATCH" not in os.environ: shutil.rmtree(self.workdir) + self.machinelog.removeHandler(self._log_fh) self.log.removeHandler(self._log_fh) def main():
PATCH 12/39 tests/functional: logs details of console interaction operations
In reply to Alex BennéeFrom: Daniel P. Berrangé <[email protected]>
When functional tests go wrong, it will often be related to the console interaction wait state. By logging the messages that we're looking for, and data we're about to be sending, it'll be easier to diagnose where tests are getting stuck.
Message-Id: <[email protected]>
--- tests/functional/qemu_test/cmd.py | 3 +++ 1 file changed, 3 insertions(+)
tests/functional/qemu_test/cmd.py +3 -0
@@ -85,6 +85,9 @@ def _console_interaction(test, success_message, failure_message, vm = test.vm console = vm.console_file console_logger = logging.getLogger('console') + test.log.debug( + f"Console interaction: success_msg='{success_message}' " + + f"failure_msg='{failure_message}' send_string='{send_string}'") while True: if send_string: vm.console_socket.sendall(send_string.encode())
Signature · 1 line
2.39.5
Re: [PATCH 12/39] tests/functional: logs details of console interaction operations
Quoted 19 lines · Alex Bennée
From: Daniel P. Berrangé <[email protected]>
When functional tests go wrong, it will often be related to the console interaction wait state. By logging the messages that we're looking for, and data we're about to be sending, it'll be easier to diagnose where tests are getting stuck.
Signed-off-by Daniel P. Berrangé <[email protected]>Message-Id: <[email protected]>
Signed-off-by Alex Bennée <[email protected]>--- tests/functional/qemu_test/cmd.py | 3 +++ 1 file changed, 3 insertions(+)tests/functional/qemu_test/cmd.py +0
-0
tests/functional/qemu_test/cmd.py def _console_interaction(test, success_message, failure_message, · line 93
Quoted 9 lines
tests/functional/qemu_test/cmd.py +3
-0@@ -85,6 +85,9 @@ def _console_interaction(test, success_message, failure_message, vm = test.vm console = vm.console_file console_logger = logging.getLogger('console') + test.log.debug( + f"Console interaction: success_msg='{success_message}' " + + f"failure_msg='{failure_message}' send_string='{send_string}'") while True: if send_string: vm.console_socket.sendall(send_string.encode())
PATCH 13/39 tests/functional: don't try to wait for the empty string
In reply to Alex BennéeFrom: Daniel P. Berrangé <[email protected]>
Telling exec_command_wand_wait_for_pattern to wait for the empty string does not make any conceptual sense, as a check for empty string will always succeed. It makes even less sense when followed by a call to wait_for_console_pattern() with a real match.
Message-Id: <[email protected]>
--- tests/functional/test_virtio_gpu.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
tests/functional/test_virtio_gpu.py +1 -2
@@ -80,9 +80,8 @@ def test_virtio_vga_virgl(self): self.wait_for_console_pattern("as init process") exec_command_and_wait_for_pattern( - self, "/usr/sbin/modprobe virtio_gpu", "" + self, "/usr/sbin/modprobe virtio_gpu", "features: +virgl +edid" ) - self.wait_for_console_pattern("features: +virgl +edid") def test_vhost_user_vga_virgl(self): # FIXME: should check presence of vhost-user-gpu, virgl, memfd etc
Signature · 1 line
2.39.5
Re: [PATCH 13/39] tests/functional: don't try to wait for the empty string
Quoted 7 lines · Alex Bennée
From: Daniel P. Berrangé <[email protected]>
Telling
exec_command_wand_wait_for_patternto wait for the empty string does not make any conceptual sense, as a check for empty string will always succeed. It makes even less sense when followed by a call towait_for_console_pattern()with a real match.
Quoted 6 lines
Signed-off-by Daniel P. Berrangé <[email protected]>Message-Id: <[email protected]>
Signed-off-by Alex Bennée <[email protected]>--- tests/functional/test_virtio_gpu.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
PATCH 14/39 tests/functional: require non-NULL success_message for console wait
In reply to Alex BennéeFrom: Daniel P. Berrangé <[email protected]>
When waiting for expected output, the 'success_message' is a mandatory parameter, with 'failure_message' defaulting to None.
The code has logic which indicates it was trying to cope with 'success_message' being None and 'failure_message' being non-None but it does not appear able to actually do anything useful. The check for 'success_message is None' will break out of the loop before any check for 'failure_message' has been performed.
IOW, for practcal purposes 'success_message' must be non-None unless 'send_string' is set. Assert this expectation and simplify the loop logic.
Message-Id: <[email protected]>
--- tests/functional/qemu_test/cmd.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
tests/functional/qemu_test/cmd.py +7 -2
@@ -81,6 +81,8 @@ def is_readable_executable_file(path): def _console_interaction(test, success_message, failure_message, send_string, keep_sending=False, vm=None): assert not keep_sending or send_string + assert success_message or send_string + if vm is None: vm = test.vm console = vm.console_file
@@ -95,7 +97,7 @@ def _console_interaction(test, success_message, failure_message, send_string = None # send only once # Only consume console output if waiting for something - if success_message is None and failure_message is None: + if success_message is None: if send_string is None: break continue
@@ -107,7 +109,7 @@ def _console_interaction(test, success_message, failure_message, if not msg: continue console_logger.debug(msg) - if success_message is None or success_message in msg: + if success_message in msg: break if failure_message and failure_message in msg: console.close()
@@ -138,6 +140,7 @@ def interrupt_interactive_console_until_pattern(test, success_message, :param interrupt_string: a string to send to the console before trying to read a new line """ + assert success_message _console_interaction(test, success_message, failure_message, interrupt_string, True)
@@ -152,6 +155,7 @@ def wait_for_console_pattern(test, success_message, failure_message=None, :param success_message: if this message appears, test succeeds :param failure_message: if this message appears, test fails """ + assert success_message _console_interaction(test, success_message, failure_message, None, vm=vm) def exec_command(test, command):
@@ -180,6 +184,7 @@ def exec_command_and_wait_for_pattern(test, command, :param success_message: if this message appears, test succeeds :param failure_message: if this message appears, test fails """ + assert success_message _console_interaction(test, success_message, failure_message, command + '\r') def get_qemu_img(test):
Signature · 1 line
2.39.5
Re: [PATCH 14/39] tests/functional: require non-NULL success_message for console wait
Quoted 62 lines · Alex Bennée
From: Daniel P. Berrangé <[email protected]>
When waiting for expected output, the '
success_message' is a mandatory parameter, with 'failure_message' defaulting to None.The code has logic which indicates it was trying to cope with '
success_message' being None and 'failure_message' being non-None but it does not appear able to actually do anything useful. The check for 'success_messageis None' will break out of the loop before any check for 'failure_message' has been performed.IOW, for practcal purposes '
success_message' must be non-None unless 'send_string' is set. Assert this expectation and simplify the loop logic.Signed-off-by Daniel P. Berrangé <[email protected]>Message-Id: <[email protected]>
Signed-off-by Alex Bennée <[email protected]>--- tests/functional/qemu_test/cmd.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)tests/functional/qemu_test/cmd.py +5
-2@@ -81,6 +81,8 @@ def is_readable_executable_file(path): def _console_interaction(test, success_message, failure_message, send_string, keep_sending=False, vm=None): assert not keep_sending or send_string + assert success_message or send_string + if vm is None: vm = test.vm console = vm.console_file@@ -95,7 +97,7 @@ def _console_interaction(test, success_message, failure_message, send_string = None # send only once # Only consume console output if waiting for something - if success_message is None and failure_message is None: + if success_message is None: if send_string is None: break continue@@ -107,7 +109,7 @@ def _console_interaction(test, success_message, failure_message, if not msg: continue console_logger.debug(msg) - if success_message is None or success_message in msg: + if success_message in msg: break if failure_message and failure_message in msg: console.close()@@ -138,6 +140,7 @@ def interrupt_interactive_console_until_pattern(test, success_message, :param interrupt_string: a string to send to the console before trying to read a new line """ + assert success_message _console_interaction(test, success_message, failure_message, interrupt_string, True)
tests/functional/qemu_test/cmd.py def wait_for_console_pattern(test, success_message, failure_message=None, · line 159
Quoted 5 lines
tests/functional/qemu_test/cmd.py +1
-0@@ -152,6 +155,7 @@ def wait_for_console_pattern(test, success_message, failure_message=None, :param success_message: if this message appears, test succeeds :param failure_message: if this message appears, test fails """ + assert success_message _console_interaction(test, success_message, failure_message, None, vm=vm)
This assert is theoretically not needed since we call _console_interaction with send_string=None, so if success_message is None, the new assert in _console_interaction would trigger instead.
But it also does not hurt to have it here, so fine for me if we keep it.
PATCH 15/39 tests/functional: rewrite console handling to be bytewise
In reply to Alex BennéeFrom: Daniel P. Berrangé <[email protected]>
The console interaction that waits for predicted strings uses readline(), and thus is only capable of waiting for strings that are followed by a newline.
This is inconvenient when needing to match on some things, particularly login prompts, or shell prompts, causing tests to use time.sleep(...) instead, which is unreliable.
Switch to reading the console 1 byte at a time, comparing against the success/failure messages until we see a match, regardless of whether a newline is encountered.
The success/failure comparisons are done with the python bytes type, rather than strings, to avoid the problem of needing to decode partially received multibyte utf8 characters.
Heavily inspired by a patch proposed by Cédric, but written again to work in bytes, rather than strings.
Message-Id: <[email protected]>
--- tests/functional/qemu_test/cmd.py | 79 +++++++++++++++++++++++++------ 1 file changed, 64 insertions(+), 15 deletions(-)
tests/functional/qemu_test/cmd.py +64 -15
@@ -78,6 +78,54 @@ def run_cmd(args): def is_readable_executable_file(path): return os.path.isfile(path) and os.access(path, os.R_OK | os.X_OK) +# @test: functional test to fail if @failure is seen +# @vm: the VM whose console to process +# @success: a non-None string to look for +# @failure: a string to look for that triggers test failure, or None +# +# Read up to 1 line of text from @vm, looking for @success +# and optionally @failure. +# +# If @success or @failure are seen, immediately return True, +# even if end of line is not yet seen. ie remainder of the +# line is left unread. +# +# If end of line is seen, with neither @success or @failure +# return False +# +# If @failure is seen, then mark @test as failed +def _console_read_line_until_match(test, vm, success, failure): + msg = bytes([]) + done = False + while True: + c = vm.console_socket.recv(1) + if c is None: + done = True + test.fail( + f"EOF in console, expected '{success}'") + break + msg += c + + if success in msg: + done = True + break + if failure and failure in msg: + done = True + vm.console_socket.close() + test.fail( + f"'{failure}' found in console, expected '{success}'") + + if c == b'\n': + break + + console_logger = logging.getLogger('console') + try: + console_logger.debug(msg.decode().strip()) + except: + console_logger.debug(msg) + + return done + def _console_interaction(test, success_message, failure_message, send_string, keep_sending=False, vm=None): assert not keep_sending or send_string
@@ -85,11 +133,22 @@ def _console_interaction(test, success_message, failure_message, if vm is None: vm = test.vm - console = vm.console_file - console_logger = logging.getLogger('console') + test.log.debug( f"Console interaction: success_msg='{success_message}' " + f"failure_msg='{failure_message}' send_string='{send_string}'") + + # We'll process console in bytes, to avoid having to + # deal with unicode decode errors from receiving + # partial utf8 byte sequences + success_message_b = None + if success_message is not None: + success_message_b = success_message.encode() + + failure_message_b = None + if failure_message is not None: + failure_message_b = failure_message.encode() + while True: if send_string: vm.console_socket.sendall(send_string.encode())
@@ -102,20 +161,10 @@ def _console_interaction(test, success_message, failure_message, break continue - try: - msg = console.readline().decode().strip() - except UnicodeDecodeError: - msg = None - if not msg: - continue - console_logger.debug(msg) - if success_message in msg: + if _console_read_line_until_match(test, vm, + success_message_b, + failure_message_b): break - if failure_message and failure_message in msg: - console.close() - fail = 'Failure message found in console: "%s". Expected: "%s"' % \ - (failure_message, success_message) - test.fail(fail) def interrupt_interactive_console_until_pattern(test, success_message, failure_message=None,
Signature · 1 line
2.39.5
PATCH 16/39 tests/functional: remove time.sleep usage from tuxrun tests
In reply to Alex BennéeFrom: Daniel P. Berrangé <[email protected]>
The tuxrun tests send a series of strings to the guest to login and then run commands. Since we have been unable to match on console output that isn't followed by a newline, the test used many time.sleep() statements to pretend to synchronize with the guest.
This has proved to be unreliable for the aarch64be instance of the tuxrun tests, with the test often hanging. The hang is a very subtle timing problem, and it is suspected that some (otherwise apparently harmless) I/O error messages could be resulting in full FIFO buffers, stalling interaction with the guest.
With the newly rewritten console interaction able to match strings that don't have a following newline, the tux run tests can now match directly on the login prompt, and/or shell PS1 prompt.
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2689
Message-Id: <[email protected]>
--- tests/functional/qemu_test/tuxruntest.py | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-)
tests/functional/qemu_test/tuxruntest.py +6 -10
@@ -124,16 +124,12 @@ def run_tuxtest_tests(self, haltmsg): then do a few things on the console. Trigger a shutdown and wait to exit cleanly. """ - self.wait_for_console_pattern("Welcome to TuxTest") - time.sleep(0.2) - exec_command(self, 'root') - time.sleep(0.2) - exec_command(self, 'cat /proc/interrupts') - time.sleep(0.1) - exec_command(self, 'cat /proc/self/maps') - time.sleep(0.1) - exec_command(self, 'uname -a') - time.sleep(0.1) + ps1='root@tuxtest:~#' + self.wait_for_console_pattern('tuxtest login:') + exec_command_and_wait_for_pattern(self, 'root', ps1) + exec_command_and_wait_for_pattern(self, 'cat /proc/interrupts', ps1) + exec_command_and_wait_for_pattern(self, 'cat /proc/self/maps', ps1) + exec_command_and_wait_for_pattern(self, 'uname -a', ps1) exec_command_and_wait_for_pattern(self, 'halt', haltmsg) # Wait for VM to shut down gracefully if it can
Signature · 1 line
2.39.5
Re: [PATCH 16/39] tests/functional: remove time.sleep usage from tuxrun tests
Quoted 20 lines · Alex Bennée
From: Daniel P. Berrangé <[email protected]>
The tuxrun tests send a series of strings to the guest to login and then run commands. Since we have been unable to match on console output that isn't followed by a newline, the test used many
time.sleep()statements to pretend to synchronize with the guest.This has proved to be unreliable for the aarch64be instance of the tuxrun tests, with the test often hanging. The hang is a very subtle timing problem, and it is suspected that some (otherwise apparently harmless) I/O error messages could be resulting in full FIFO buffers, stalling interaction with the guest.
With the newly rewritten console interaction able to match strings that don't have a following newline, the tux run tests can now match directly on the login prompt, and/or shell PS1 prompt.
Quoted 7 lines
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2689
Signed-off-by Daniel P. Berrangé <[email protected]>Message-Id: <[email protected]>
Signed-off-by Alex Bennée <[email protected]>--- tests/functional/qemu_test/tuxruntest.py | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-)
PATCH 17/39 tests/functional: add a QMP backdoor for debugging stalled tests
In reply to Alex BennéeFrom: Daniel P. Berrangé <[email protected]>
Support the QEMU_TEST_QMP_BACKDOOR=backdoor.sock env variable as a way to get a QMP backdoor for debugging a stalled QEMU test. Most typically this would be used if running the tests directly:
$ QEMU_TEST_QMP_BACKDOOR=backdoor.sock \ QEMU_TEST_QEMU_BINARY=./build/qemu-system-arm \ PYTHONPATH=./python \ ./tests/functional/test_arm_tuxrun.py
And then, when the test stalls, in a second shell run:
$ ./scripts/qmp/qmp-shell backdoor.sock
Message-Id: <[email protected]>
--- docs/devel/testing/functional.rst | 10 ++++++++++ tests/functional/qemu_test/testcase.py | 7 +++++++ 2 files changed, 17 insertions(+)
docs/devel/testing/functional.rst +10 -0
@@ -176,6 +176,16 @@ primarily depend on the value of the ``qemu_bin`` class attribute. If it is not explicitly set by the test code, its default value will be the result the QEMU_TEST_QEMU_BINARY environment variable. +Debugging hung QEMU +^^^^^^^^^^^^^^^^^^^ + +When test cases go wrong it may be helpful to debug a stalled QEMU +process. While the QEMUMachine class owns the primary QMP monitor +socket, it is possible to request a second QMP monitor be created +by setting the ``QEMU_TEST_QMP_BACKDOOR`` env variable to refer +to a UNIX socket name. The ``qmp-shell`` command can then be +attached to the stalled QEMU to examine its live state. + Attribute reference -------------------
tests/functional/qemu_test/testcase.py +7 -0
@@ -175,6 +175,13 @@ def _new_vm(self, name, *args): log_dir=self.logdir) self.log.debug('QEMUMachine "%s" created', name) self.log.debug('QEMUMachine "%s" temp_dir: %s', name, vm.temp_dir) + + sockpath = os.environ.get("QEMU_TEST_QMP_BACKDOOR", None) + if sockpath is not None: + vm.add_args("-chardev", + f"socket,id=backdoor,path={sockpath},server=on,wait=off", + "-mon", "chardev=backdoor,mode=control") + if args: vm.add_args(*args) return vm
Signature · 1 line
2.39.5
Re: [PATCH 17/39] tests/functional: add a QMP backdoor for debugging stalled tests
Quoted 52 lines · Alex Bennée
From: Daniel P. Berrangé <[email protected]>
Support the QEMU_TEST_QMP_BACKDOOR=backdoor.sock env variable as a way to get a QMP backdoor for debugging a stalled QEMU test. Most typically this would be used if running the tests directly:
$ QEMU_TEST_QMP_BACKDOOR=backdoor.sock \ QEMU_TEST_QEMU_BINARY=./build/qemu-system-arm \ PYTHONPATH=./python \ ./tests/functional/test_arm_tuxrun.pyAnd then, when the test stalls, in a second shell run:
$ ./scripts/qmp/qmp-shell backdoor.sockSigned-off-by Daniel P. Berrangé <[email protected]>Message-Id: <[email protected]>
Signed-off-by Alex Bennée <[email protected]>--- docs/devel/testing/functional.rst | 10 ++++++++++ tests/functional/qemu_test/testcase.py | 7 +++++++ 2 files changed, 17 insertions(+)docs/devel/testing/functional.rst +10
-0@@ -176,6 +176,16 @@ primarily depend on the value of the ``qemu_bin`` class attribute. If it is not explicitly set by the test code, its default value will be the result the QEMU_TEST_QEMU_BINARY environment variable. +Debugging hung QEMU +^^^^^^^^^^^^^^^^^^^ + +When test cases go wrong it may be helpful to debug a stalled QEMU +process. While the QEMUMachine class owns the primary QMP monitor +socket, it is possible to request a second QMP monitor be created +by setting the ``QEMU_TEST_QMP_BACKDOOR`` env variable to refer +to a UNIX socket name. The ``qmp-shell`` command can then be +attached to the stalled QEMU to examine its live state. + Attribute reference -------------------tests/functional/qemu_test/testcase.py +0
-0@@ -175,6 +175,13 @@ def _new_vm(self, name, *args): log_dir=self.logdir) self.log.debug('QEMUMachine "%s" created', name) self.log.debug('QEMUMachine "%s" temp_dir: %s', name, vm.temp_dir)
tests/functional/qemu_test/testcase.py def _new_vm(self, name, *args): · line 187
Quoted 10 lines
tests/functional/qemu_test/testcase.py +7
-0+ + sockpath = os.environ.get("QEMU_TEST_QMP_BACKDOOR", None) + if sockpath is not None: + vm.add_args("-chardev", + f"socket,id=backdoor,path={sockpath},server=on,wait=off", + "-mon", "chardev=backdoor,mode=control") + if args: vm.add_args(*args) return vm
PATCH 18/39 tests/functional: avoid accessing log_filename on earlier failures
In reply to Alex BennéeFrom: Daniel P. Berrangé <[email protected]>
If a failure occurs early in the QemuBaseTest constructor, the 'log_filename' object atttribute may not exist yet. This happens most notably if the QEMU_TEST_QEMU_BINARY is not set. We can't initialize 'log_filename' earlier as we use the binary to identify the architecture which is then used to build the path in which the logs are stored.
Message-Id: <[email protected]>
--- tests/functional/qemu_test/testcase.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)
tests/functional/qemu_test/testcase.py +6 -4
@@ -81,10 +81,12 @@ def main(): res = unittest.main(module = None, testRunner = tr, exit = False, argv=["__dummy__", path]) for (test, message) in res.result.errors + res.result.failures: - print('More information on ' + test.id() + ' could be found here:' - '\n %s' % test.log_filename, file=sys.stderr) - if hasattr(test, 'console_log_name'): - print(' %s' % test.console_log_name, file=sys.stderr) + + if hasattr(test, "log_filename"): + print('More information on ' + test.id() + ' could be found here:' + '\n %s' % test.log_filename, file=sys.stderr) + if hasattr(test, 'console_log_name'): + print(' %s' % test.console_log_name, file=sys.stderr) sys.exit(not res.result.wasSuccessful())
Signature · 1 line
2.39.5
Re: [PATCH 18/39] tests/functional: avoid accessing log_filename on earlier failures
Quoted 4 lines · Alex Bennée
From: Daniel P. Berrangé <[email protected]>
If a failure occurs early in the QemuBaseTest constructor, the '
log_filename' object atttribute may not exist yet. This happens
s/atttribute/attribute/
Quoted 4 lines
most notably if the
QEMU_TEST_QEMU_BINARYis not set. We can't initialize 'log_filename' earlier as we use the binary to identify the architecture which is then used to build the path in which the logs are stored.
With the typo fixed:
PATCH 19/39 tests/functional: Convert the Avocado aarch64 tuxrun tests
In reply to Alex BennéeFrom: Thomas Huth <[email protected]>
Move the tests to a new file so that they can be run via qemu-system-aarch64 in the functional framework.
Since these were the last tests in tests/avocado/tuxrun_baselines.py, we can now remove that file, too.
--- MAINTAINERS | 3 +- tests/avocado/tuxrun_baselines.py | 224 ------------------------ tests/functional/meson.build | 2 + tests/functional/test_aarch64_tuxrun.py | 50 ++++++ 4 files changed, 54 insertions(+), 225 deletions(-) delete mode 100644 tests/avocado/tuxrun_baselines.py create mode 100755 tests/functional/test_aarch64_tuxrun.py
MAINTAINERS +2 -1
@@ -994,6 +994,7 @@ F: hw/arm/virt* F: include/hw/arm/virt.h F: docs/system/arm/virt.rst F: tests/functional/test_aarch64_virt.py +F: tests/functional/test_aarch64_tuxrun.py F: tests/functional/test_arm_tuxrun.py Xilinx Zynq
@@ -4129,7 +4130,7 @@ F: scripts/ci/ F: tests/docker/ F: tests/vm/ F: tests/lcitool/ -F: tests/avocado/tuxrun_baselines.py +F: tests/functional/test_*_tuxrun.py F: scripts/archive-source.sh F: docs/devel/testing.rst W: https://gitlab.com/qemu-project/qemu/pipelines
tests/avocado/tuxrun_baselines.py deleted +0 -224
224 lines not on this page · raw message
tests/functional/meson.build +2 -0
@@ -14,6 +14,7 @@ test_timeouts = { 'aarch64_raspi4' : 480, 'aarch64_sbsaref_alpine' : 720, 'aarch64_sbsaref_freebsd' : 720, + 'aarch64_tuxrun' : 240, 'aarch64_virt' : 720, 'acpi_bits' : 420, 'arm_aspeed' : 600,
@@ -52,6 +53,7 @@ tests_aarch64_system_thorough = [ 'aarch64_sbsaref', 'aarch64_sbsaref_alpine', 'aarch64_sbsaref_freebsd', + 'aarch64_tuxrun', 'aarch64_virt', 'multiprocess', ]
tests/functional/test_aarch64_tuxrun.py new file +50 -0
50 lines not on this page · raw message
Signature · 1 line
2.39.5
PATCH 20/39 tests/functional: update the arm tuxrun tests
In reply to Alex BennéeNow there are new upto date images available we should update to them.
--- tests/functional/test_arm_tuxrun.py | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-)
tests/functional/test_arm_tuxrun.py +14 -14
@@ -17,14 +17,14 @@ class TuxRunArmTest(TuxRunBaselineTest): ASSET_ARMV5_KERNEL = Asset( - 'https://storage.tuxboot.com/20230331/armv5/zImage', - 'c95af2f27647c12265d75e9df44c22ff5228c59855f54aaa70f41ec2842e3a4d') + 'https://storage.tuxboot.com/buildroot/20241119/armv5/zImage', + '3931a3908dbcf0ec0fe292d035ffc4dfed95f797dedd4a59ccfcf7a46e6f92d4') ASSET_ARMV5_ROOTFS = Asset( - 'https://storage.tuxboot.com/20230331/armv5/rootfs.ext4.zst', - '17177afa74e7294da0642861f08c88ca3c836764299a54bf6d1ce276cb9712a5') + 'https://storage.tuxboot.com/buildroot/20241119/armv5/rootfs.ext4.zst', + '60ff78b68c7021df378e4fc2d66d3b016484d1acc7e07fb8920c1d8e30f4571f') ASSET_ARMV5_DTB = Asset( - 'https://storage.tuxboot.com/20230331/armv5/versatile-pb.dtb', - '0bc0c0b0858cefd3c32b385c0d66d97142ded29472a496f4f490e42fc7615b25') + 'https://storage.tuxboot.com/buildroot/20241119/armv5/versatile-pb.dtb', + '50988e69ef3f3b08bfb9146e8fe414129990029e8dfbed444953b7e14809530a') def test_armv5(self): self.set_machine('versatilepb')
@@ -37,11 +37,11 @@ def test_armv5(self): drive="virtio-blk-pci") ASSET_ARMV7_KERNEL = Asset( - 'https://storage.tuxboot.com/20230331/armv7/zImage', - '4c7a22e9f15875bec06bd2a29d822496571eb297d4f22694099ffcdb19077572') + 'https://storage.tuxboot.com/buildroot/20241119/armv7/zImage', + '1377bc3d90de5ce57ab17cd67429fe8b15c2e9964248c775c682b67e6299b991') ASSET_ARMV7_ROOTFS = Asset( - 'https://storage.tuxboot.com/20230331/armv7/rootfs.ext4.zst', - 'ab1fbbeaddda1ffdd45c9405a28cd5370c20f23a7cbc809cc90dc9f243a8eb5a') + 'https://storage.tuxboot.com/buildroot/20241119/armv7/rootfs.ext4.zst', + 'ed2cbc69bd6b3fbd5cafb5ee961393c7cfbe726446f14301c67d6b1f28bfdb51') def test_armv7(self): self.set_machine('virt')
@@ -52,11 +52,11 @@ def test_armv7(self): rootfs_asset=self.ASSET_ARMV7_ROOTFS) ASSET_ARMV7BE_KERNEL = Asset( - 'https://storage.tuxboot.com/20230331/armv7be/zImage', - '7facc62082b57af12015b08f7fdbaf2f123ba07a478367853ae12b219afc9f2f') + 'https://storage.tuxboot.com/buildroot/20241119/armv7be/zImage', + 'a244e6da99f1bbd254827ec7681bd4aac9eb1aa05aaebc6b15e5d289ebb683f3') ASSET_ARMV7BE_ROOTFS = Asset( - 'https://storage.tuxboot.com/20230331/armv7be/rootfs.ext4.zst', - '42ed46dd2d59986206c5b1f6cf35eab58fe3fd20c96b41aaa16b32f3f90a9835') + 'https://storage.tuxboot.com/buildroot/20241119/armv7be/rootfs.ext4.zst', + 'd4f9c57860a512163f30ecc69b2174d1a1bdeb853a43dc49a09cfcfe84e428ea') def test_armv7be(self): self.set_machine('virt')
Signature · 1 line
2.39.5
Re: [PATCH 20/39] tests/functional: update the arm tuxrun tests
Quoted 7 lines · Alex Bennée
Now there are new upto date images available we should update to them.
Signed-off-by Alex Bennée <[email protected]>Cc Anders Roxell <[email protected]>--- tests/functional/test_arm_tuxrun.py | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-)
PATCH 21/39 tests/functional: update the aarch64 tuxrun tests
In reply to Alex BennéeNow there are new upto date images available we should update to them. With the new rootfs the blk I/O errors also go away on arm64be.
--- tests/functional/test_aarch64_tuxrun.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
tests/functional/test_aarch64_tuxrun.py +8 -8
@@ -17,11 +17,11 @@ class TuxRunAarch64Test(TuxRunBaselineTest): ASSET_ARM64_KERNEL = Asset( - 'https://storage.tuxboot.com/20230331/arm64/Image', - 'ce95a7101a5fecebe0fe630deee6bd97b32ba41bc8754090e9ad8961ea8674c7') + 'https://storage.tuxboot.com/buildroot/20241119/arm64/Image', + 'b74743c5e89e1cea0f73368d24ae0ae85c5204ff84be3b5e9610417417d2f235') ASSET_ARM64_ROOTFS = Asset( - 'https://storage.tuxboot.com/20230331/arm64/rootfs.ext4.zst', - 'bbd5ed4b9c7d3f4ca19ba71a323a843c6b585e880115df3b7765769dbd9dd061') + 'https://storage.tuxboot.com/buildroot/20241119/arm64/rootfs.ext4.zst', + 'a1acaaae2068df4648d04ff75f532aaa8c5edcd6b936122b6f0db4848a07b465') def test_arm64(self): self.set_machine('virt')
@@ -32,11 +32,11 @@ def test_arm64(self): rootfs_asset=self.ASSET_ARM64_ROOTFS) ASSET_ARM64BE_KERNEL = Asset( - 'https://storage.tuxboot.com/20230331/arm64be/Image', - 'e0df4425eb2cd9ea9a283e808037f805641c65d8fcecc8f6407d8f4f339561b4') + 'https://storage.tuxboot.com/buildroot/20241119/arm64be/Image', + 'fd6af4f16689d17a2c24fe0053cc212edcdf77abdcaf301800b8d38fa9f6e109') ASSET_ARM64BE_ROOTFS = Asset( - 'https://storage.tuxboot.com/20230331/arm64be/rootfs.ext4.zst', - 'e6ffd8813c8a335bc15728f2835f90539c84be7f8f5f691a8b01451b47fb4bd7') + 'https://storage.tuxboot.com/buildroot/20241119/arm64be/rootfs.ext4.zst', + 'f5e9371b62701aab8dead52592ca7488c8a9e255c9be8d7635c7f30f477c2c21') def test_arm64be(self): self.set_machine('virt')
Signature · 1 line
2.39.5
Re: [PATCH 21/39] tests/functional: update the aarch64 tuxrun tests
Quoted 8 lines · Alex Bennée
Now there are new upto date images available we should update to them. With the new rootfs the blk I/O errors also go away on arm64be.
Signed-off-by Alex Bennée <[email protected]>Cc Anders Roxell <[email protected]>--- tests/functional/test_aarch64_tuxrun.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
PATCH 22/39 tests/functional: update the i386 tuxrun tests
In reply to Alex BennéeNow there are new upto date images available we should update to them.
--- tests/functional/test_i386_tuxrun.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
tests/functional/test_i386_tuxrun.py +4 -4
@@ -17,11 +17,11 @@ class TuxRunI386Test(TuxRunBaselineTest): ASSET_I386_KERNEL = Asset( - 'https://storage.tuxboot.com/20230331/i386/bzImage', - 'a3e5b32a354729e65910f5a1ffcda7c14a6c12a55e8213fb86e277f1b76ed956') + 'https://storage.tuxboot.com/buildroot/20241119/i386/bzImage', + '47fb44e38e34101eb0f71a2a01742b959d40ed5fd67cefb5608a39be11d3b74e') ASSET_I386_ROOTFS = Asset( - 'https://storage.tuxboot.com/20230331/i386/rootfs.ext4.zst', - 'f15e66b2bf673a210ec2a4b2e744a80530b36289e04f5388aab812b97f69754a') + 'https://storage.tuxboot.com/buildroot/20241119/i386/rootfs.ext4.zst', + 'a1a3b3b4c9dccd6475b58db95c107b468b736b700f6620985a8ed050a73d51c8') def test_i386(self): self.set_machine('q35')
Signature · 1 line
2.39.5
Re: [PATCH 22/39] tests/functional: update the i386 tuxrun tests
Quoted 7 lines · Alex Bennée
Now there are new upto date images available we should update to them.
Signed-off-by Alex Bennée <[email protected]>Cc Anders Roxell <[email protected]>--- tests/functional/test_i386_tuxrun.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
PATCH 23/39 tests/functional: add a m68k tuxrun tests
In reply to Alex BennéeWe didn't have this before and as it exercises the m68k virt platform it seems worth adding. We don't wait for the shutdown because QEMU will auto-exit on the shutdown.
--- tests/functional/meson.build | 1 + tests/functional/test_m68k_tuxrun.py | 34 ++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 tests/functional/test_m68k_tuxrun.py
tests/functional/meson.build +1 -0
@@ -95,6 +95,7 @@ tests_m68k_system_thorough = [ 'm68k_mcf5208evb', 'm68k_nextcube', 'm68k_q800', + 'm68k_tuxrun', ] tests_microblaze_system_thorough = [
tests/functional/test_m68k_tuxrun.py new file +34 -0
@@ -0,0 +1,34 @@ +#!/usr/bin/env python3 +# +# Functional test that boots known good tuxboot images the same way +# that tuxrun (www.tuxrun.org) does. This tool is used by things like +# the LKFT project to run regression tests on kernels. +# +# Copyright (c) 2024 Linaro Ltd. +# +# Author: +# Alex Bennée <[email protected]> +# +# SPDX-License-Identifier: GPL-2.0-or-later + +from qemu_test import Asset +from qemu_test.tuxruntest import TuxRunBaselineTest + +class TuxRunM68KTest(TuxRunBaselineTest): + + ASSET_M68K_KERNEL = Asset( + 'https://storage.tuxboot.com/buildroot/20241119/m68k/vmlinux', + '7754e1d5cec753ccf1dc6894729a7f54c1a4965631ebf56df8e4ce1163ad19d8') + ASSET_M68K_ROOTFS = Asset( + 'https://storage.tuxboot.com/buildroot/20241119/m68k/rootfs.ext4.zst', + '557962ffff265607912e82232cf21adbe0e4e5a88e1e1d411ce848c37f0213e9') + + def test_m68k(self): + self.set_machine('virt') + self.cpu="m68040" + self.common_tuxrun(kernel_asset=self.ASSET_M68K_KERNEL, + rootfs_asset=self.ASSET_M68K_ROOTFS, + drive="virtio-blk-device") + +if __name__ == '__main__': + TuxRunBaselineTest.main()
Signature · 1 line
2.39.5
Re: [PATCH 23/39] tests/functional: add a m68k tuxrun tests
Quoted 4 lines · Alex Bennée
We didn't have this before and as it exercises the m68k virt platform it seems worth adding. We don't wait for the shutdown because QEMU will auto-exit on the shutdown.
Quoted 8 lines
Signed-off-by Alex Bennée <[email protected]>Cc Laurent Vivier <[email protected]>Cc Anders Roxell <[email protected]>--- tests/functional/meson.build | 1 + tests/functional/test_m68k_tuxrun.py | 34 ++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+)create mode 100644
tests/functional/test_m68k_tuxrun.py
Nice!
Re: [PATCH 23/39] tests/functional: add a m68k tuxrun tests
In reply to Alex Bennéetests/functional/test_m68k_tuxrun.py
Quoted 27 lines · Alex Bennée
We didn't have this before and as it exercises the m68k virt platform it seems worth adding. We don't wait for the shutdown because QEMU will auto-exit on the shutdown.
Signed-off-by Alex Bennée <[email protected]>Cc Laurent Vivier <[email protected]>Cc Anders Roxell <[email protected]>--- tests/functional/meson.build | 1 + tests/functional/test_m68k_tuxrun.py | 34 ++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+)create mode 100644
tests/functional/test_m68k_tuxrun.pytests/functional/meson.build +1
-0@@ -95,6 +95,7 @@ tests_m68k_system_thorough = [ 'm68k_mcf5208evb', 'm68k_nextcube', 'm68k_q800', + 'm68k_tuxrun', ] tests_microblaze_system_thorough = [tests/functional/test_m68k_tuxrun.py new file +0
-0
Please make it executable like all other test files, so we can run it more easily without the test harness, too!
Thanks,
Thomas
PATCH 24/39 tests/functional: update the mips32 tuxrun tests
In reply to Alex BennéeNow there are new upto date images available we should update to them.
--- tests/functional/test_mips_tuxrun.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
tests/functional/test_mips_tuxrun.py +4 -4
@@ -17,11 +17,11 @@ class TuxRunMipsTest(TuxRunBaselineTest): ASSET_MIPS_KERNEL = Asset( - 'https://storage.tuxboot.com/20230331/mips32/vmlinux', - 'bfd2172f8b17fb32970ca0c8c58f59c5a4ca38aa5855d920be3a69b5d16e52f0') + 'https://storage.tuxboot.com/buildroot/20241119/mips32/vmlinux', + 'b6f97fc698ae8c96456ad8c996c7454228074df0d7520dedd0a15e2913700a19') ASSET_MIPS_ROOTFS = Asset( - 'https://storage.tuxboot.com/20230331/mips32/rootfs.ext4.zst', - 'fc3da0b4c2f38d74c6d705123bb0f633c76ed953128f9d0859378c328a6d11a0') + 'https://storage.tuxboot.com/buildroot/20241119/mips32/rootfs.ext4.zst', + '87055cf3cbde3fd134e5039e7b87feb03231d8c4b21ee712b8ba3308dfa72f50') def test_mips32(self): self.set_machine('malta')
Signature · 1 line
2.39.5
Re: [PATCH 24/39] tests/functional: update the mips32 tuxrun tests
Quoted 1 line · Alex Bennée
Now there are new upto date images available we should update to them.
s/upto/up to/ ?
Quoted 5 lines
Signed-off-by Alex Bennée <[email protected]>Cc Anders Roxell <[email protected]>--- tests/functional/test_mips_tuxrun.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
PATCH 25/39 tests/functional: update the mips32el tuxrun tests
In reply to Alex BennéeNow there are new upto date images available we should update to them.
--- tests/functional/test_mipsel_tuxrun.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
tests/functional/test_mipsel_tuxrun.py +4 -4
@@ -17,11 +17,11 @@ class TuxRunMipsELTest(TuxRunBaselineTest): ASSET_MIPSEL_KERNEL = Asset( - 'https://storage.tuxboot.com/20230331/mips32el/vmlinux', - '8573867c68a8443db8de6d08bb33fb291c189ca2ca671471d3973a3e712096a3') + 'https://storage.tuxboot.com/buildroot/20241119/mips32el/vmlinux', + '660dd8c7a6ca7a32d37b4e6348865532ab0edb66802e8cc07869338444cf4929') ASSET_MIPSEL_ROOTFS = Asset( - 'https://storage.tuxboot.com/20230331/mips32el/rootfs.ext4.zst', - 'e799768e289fd69209c21f4dacffa11baea7543d5db101e8ce27e3bc2c41d90e') + 'https://storage.tuxboot.com/buildroot/20241119/mips32el/rootfs.ext4.zst', + 'c5d69542bcaed54a4f34671671eb4be5c608ee02671d4d0436544367816a73b1') def test_mips32el(self): self.set_machine('malta')
Signature · 1 line
2.39.5
Re: [PATCH 25/39] tests/functional: update the mips32el tuxrun tests
Quoted 7 lines · Alex Bennée
Now there are new upto date images available we should update to them.
Signed-off-by Alex Bennée <[email protected]>Cc Anders Roxell <[email protected]>--- tests/functional/test_mipsel_tuxrun.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
PATCH 26/39 tests/functional: update the mips64 tuxrun tests
In reply to Alex BennéeNow there are new upto date images available we should update to them.
--- tests/functional/test_mips64_tuxrun.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
tests/functional/test_mips64_tuxrun.py +4 -4
@@ -17,11 +17,11 @@ class TuxRunMips64Test(TuxRunBaselineTest): ASSET_MIPS64_KERNEL = Asset( - 'https://storage.tuxboot.com/20230331/mips64/vmlinux', - '09010e51e4b8bcbbd2494786ffb48eca78f228e96e5c5438344b0eac4029dc61') + 'https://storage.tuxboot.com/buildroot/20241119/mips64/vmlinux', + 'fe2882d216898ba2c56b49ba59f46ad392f36871f7fe325373cd926848b9dbdc') ASSET_MIPS64_ROOTFS = Asset( - 'https://storage.tuxboot.com/20230331/mips64/rootfs.ext4.zst', - '69d91eeb04df3d8d172922c6993bb37d4deeb6496def75d8580f6f9de3e431da') + 'https://storage.tuxboot.com/buildroot/20241119/mips64/rootfs.ext4.zst', + 'b8c98400216b6d4fb3b3ff05e9929aa015948b596cf0b82234813c84a4f7f4d5') def test_mips64(self): self.set_machine('malta')
Signature · 1 line
2.39.5
Re: [PATCH 26/39] tests/functional: update the mips64 tuxrun tests
Quoted 7 lines · Alex Bennée
Now there are new upto date images available we should update to them.
Signed-off-by Alex Bennée <[email protected]>Cc Anders Roxell <[email protected]>--- tests/functional/test_mips64_tuxrun.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
PATCH 27/39 tests/functional: update the mips64el tuxrun tests
In reply to Alex BennéeNow there are new upto date images available we should update to them.
--- tests/functional/test_mips64el_tuxrun.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
tests/functional/test_mips64el_tuxrun.py +4 -4
@@ -17,11 +17,11 @@ class TuxRunMips64ELTest(TuxRunBaselineTest): ASSET_MIPS64EL_KERNEL = Asset( - 'https://storage.tuxboot.com/20230331/mips64el/vmlinux', - 'd4e08965e2155c4cccce7c5f34d18fe34c636cda2f2c9844387d614950155266') + 'https://storage.tuxboot.com/buildroot/20241119/mips64el/vmlinux', + '0d2829a96f005229839c4cd586d4d8a136ea4b488d29821611c8e97f2266bfa9') ASSET_MIPS64EL_ROOTFS = Asset( - 'https://storage.tuxboot.com/20230331/mips64el/rootfs.ext4.zst', - 'fba585368f5915b1498ed081863474b2d7ec4e97cdd46d21bdcb2f9698f83de4') + 'https://storage.tuxboot.com/buildroot/20241119/mips64el/rootfs.ext4.zst', + '69c8b69a4f1582ce4c6f01a994968f5d73bffb2fc99cbeeeb26c8b5a28eaeb84') def test_mips64el(self): self.set_machine('malta')
Signature · 1 line
2.39.5
Re: [PATCH 27/39] tests/functional: update the mips64el tuxrun tests
Quoted 7 lines · Alex Bennée
Now there are new upto date images available we should update to them.
Signed-off-by Alex Bennée <[email protected]>Cc Anders Roxell <[email protected]>--- tests/functional/test_mips64el_tuxrun.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
PATCH 28/39 tests/functional: update the ppc32 tuxrun tests
In reply to Alex BennéeNow there are new upto date images available we should update to them.
--- tests/functional/test_ppc_tuxrun.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
tests/functional/test_ppc_tuxrun.py +4 -4
@@ -17,11 +17,11 @@ class TuxRunPPC32Test(TuxRunBaselineTest): ASSET_PPC32_KERNEL = Asset( - 'https://storage.tuxboot.com/20230331/ppc32/uImage', - '1a68f74b860fda022fb12e03c5efece8c2b8b590d96cca37a8481a3ae0b3f81f') + 'https://storage.tuxboot.com/buildroot/20241119/ppc32/uImage', + 'aa5d81deabdb255a318c4bc5ffd6fdd2b5da1ef39f1955dcc35b671d258b68e9') ASSET_PPC32_ROOTFS = Asset( - 'https://storage.tuxboot.com/20230331/ppc32/rootfs.ext4.zst', - '8885b9d999cc24d679542a02e9b6aaf48f718f2050ece6b8347074b6ee41dd09') + 'https://storage.tuxboot.com/buildroot/20241119/ppc32/rootfs.ext4.zst', + '67554f830269d6bf53b67c7dd206bcc821e463993d526b1644066fea8117019b') def test_ppc32(self): self.set_machine('ppce500')
Signature · 1 line
2.39.5
Re: [PATCH 28/39] tests/functional: update the ppc32 tuxrun tests
Quoted 7 lines · Alex Bennée
Now there are new upto date images available we should update to them.
Signed-off-by Alex Bennée <[email protected]>Cc Anders Roxell <[email protected]>--- tests/functional/test_ppc_tuxrun.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
PATCH 29/39 tests/functional: update the ppc64 tuxrun tests
In reply to Alex BennéeNow there are new upto date images available we should update to them.
--- tests/functional/test_ppc64_tuxrun.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
tests/functional/test_ppc64_tuxrun.py +8 -8
@@ -82,11 +82,11 @@ def ppc64_common_tuxrun(self, kernel_asset, rootfs_asset, prefix): drive="scsi-hd") ASSET_PPC64_KERNEL = Asset( - 'https://storage.tuxboot.com/20230331/ppc64/vmlinux', - 'f22a9b9e924174a4c199f4c7e5d91a2339fcfe51c6eafd0907dc3e09b64ab728') + 'https://storage.tuxboot.com/buildroot/20241119/ppc64/vmlinux', + '8219d5cb26e7654ad7826fe8aee6290f7c01eef44f2cd6d26c15fe8f99e1c17c') ASSET_PPC64_ROOTFS = Asset( - 'https://storage.tuxboot.com/20230331/ppc64/rootfs.ext4.zst', - '1d953e81a4379e537fc8e41e05a0a59d9b453eef97aa03d47866c6c45b00bdff') + 'https://storage.tuxboot.com/buildroot/20241119/ppc64/rootfs.ext4.zst', + 'b68e12314303c5dd0fef37ae98021299a206085ae591893e73557af99a02d373') def test_ppc64(self): self.ppc64_common_tuxrun(kernel_asset=self.ASSET_PPC64_KERNEL,
@@ -94,11 +94,11 @@ def test_ppc64(self): prefix='tuxrun_ppc64_') ASSET_PPC64LE_KERNEL = Asset( - 'https://storage.tuxboot.com/20230331/ppc64le/vmlinux', - '979eb61b445a010fb13e2b927126991f8ceef9c590fa2be0996c00e293e80cf2') + 'https://storage.tuxboot.com/buildroot/20241119/ppc64le/vmlinux', + '21aea1fbc18bf6fa7d8ca4ea48d4940b2c8363c077acd564eb47d769b7495279') ASSET_PPC64LE_ROOTFS = Asset( - 'https://storage.tuxboot.com/20230331/ppc64le/rootfs.ext4.zst', - 'b442678c93fb8abe1f7d3bfa20556488de6b475c22c8fed363f42cf81a0a3906') + 'https://storage.tuxboot.com/buildroot/20241119/ppc64le/rootfs.ext4.zst', + '67d36a3f9597b738e8b7359bdf04500f4d9bb82fc35eaa65aa439d888b2392f4') def test_ppc64le(self): self.ppc64_common_tuxrun(kernel_asset=self.ASSET_PPC64LE_KERNEL,
Signature · 1 line
2.39.5
Re: [PATCH 29/39] tests/functional: update the ppc64 tuxrun tests
Quoted 7 lines · Alex Bennée
Now there are new upto date images available we should update to them.
Signed-off-by Alex Bennée <[email protected]>Cc Anders Roxell <[email protected]>--- tests/functional/test_ppc64_tuxrun.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
PATCH 30/39 tests/functional: update the riscv32 tuxrun tests
In reply to Alex BennéeNow there are new upto date images available we should update to them.
--- tests/functional/test_riscv32_tuxrun.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
tests/functional/test_riscv32_tuxrun.py +4 -4
@@ -17,11 +17,11 @@ class TuxRunRiscV32Test(TuxRunBaselineTest): ASSET_RISCV32_KERNEL = Asset( - 'https://storage.tuxboot.com/20230331/riscv32/Image', - '89599407d7334de629a40e7ad6503c73670359eb5f5ae9d686353a3d6deccbd5') + 'https://storage.tuxboot.com/buildroot/20241119/riscv32/Image', + '872bc8f8e0d4661825d5f47f7bec64988e9d0a8bd5db8917d57e16f66d83b329') ASSET_RISCV32_ROOTFS = Asset( - 'https://storage.tuxboot.com/20230331/riscv32/rootfs.ext4.zst', - '7168d296d0283238ea73cd5a775b3dd608e55e04c7b92b76ecce31bb13108cba') + 'https://storage.tuxboot.com/buildroot/20241119/riscv32/rootfs.ext4.zst', + '511ad34e63222db08d6c1da16fad224970de36517a784110956ba6a24a0ee5f6') def test_riscv32(self): self.set_machine('virt')
Signature · 1 line
2.39.5
Re: [PATCH 30/39] tests/functional: update the riscv32 tuxrun tests
Quoted 7 lines · Alex Bennée
Now there are new upto date images available we should update to them.
Signed-off-by Alex Bennée <[email protected]>Cc Anders Roxell <[email protected]>--- tests/functional/test_riscv32_tuxrun.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
PATCH 31/39 tests/functional: update the riscv64 tuxrun tests
In reply to Alex BennéeNow there are new upto date images available we should update to them. Note we re-use the riscv32 kernel and rootfs for test_riscv64_rv32.
--- tests/functional/test_riscv64_tuxrun.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
tests/functional/test_riscv64_tuxrun.py +8 -8
@@ -17,18 +17,18 @@ class TuxRunRiscV64Test(TuxRunBaselineTest): ASSET_RISCV64_KERNEL = Asset( - 'https://storage.tuxboot.com/20230331/riscv64/Image', - 'cd634badc65e52fb63465ec99e309c0de0369f0841b7d9486f9729e119bac25e') + 'https://storage.tuxboot.com/buildroot/20241119/riscv64/Image', + '2bd8132a3bf21570290042324fff48c987f42f2a00c08de979f43f0662ebadba') ASSET_RISCV64_ROOTFS = Asset( - 'https://storage.tuxboot.com/20230331/riscv64/rootfs.ext4.zst', - 'b18e3a3bdf27be03da0b285e84cb71bf09eca071c3a087b42884b6982ed679eb') + 'https://storage.tuxboot.com/buildroot/20241119/riscv64/rootfs.ext4.zst', + 'aa4736a9872651dfc0d95e709465eedf1134fd19d42b8cb305bfd776f9801004') ASSET_RISCV32_KERNEL = Asset( - 'https://storage.tuxboot.com/20230331/riscv32/Image', - '89599407d7334de629a40e7ad6503c73670359eb5f5ae9d686353a3d6deccbd5') + 'https://storage.tuxboot.com/buildroot/20241119/riscv32/Image', + '872bc8f8e0d4661825d5f47f7bec64988e9d0a8bd5db8917d57e16f66d83b329') ASSET_RISCV32_ROOTFS = Asset( - 'https://storage.tuxboot.com/20230331/riscv32/rootfs.ext4.zst', - '7168d296d0283238ea73cd5a775b3dd608e55e04c7b92b76ecce31bb13108cba') + 'https://storage.tuxboot.com/buildroot/20241119/riscv32/rootfs.ext4.zst', + '511ad34e63222db08d6c1da16fad224970de36517a784110956ba6a24a0ee5f6') def test_riscv64(self): self.set_machine('virt')
Signature · 1 line
2.39.5
Re: [PATCH 31/39] tests/functional: update the riscv64 tuxrun tests
Quoted 8 lines · Alex Bennée
Now there are new upto date images available we should update to them. Note we re-use the riscv32 kernel and rootfs for
test_riscv64_rv32.Signed-off-by Alex Bennée <[email protected]>Cc Anders Roxell <[email protected]>--- tests/functional/test_riscv64_tuxrun.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
PATCH 32/39 tests/functional: update the s390x tuxrun tests
In reply to Alex BennéeNow there are new upto date images available we should update to them.
--- tests/functional/test_s390x_tuxrun.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
tests/functional/test_s390x_tuxrun.py +4 -4
@@ -17,11 +17,11 @@ class TuxRunS390xTest(TuxRunBaselineTest): ASSET_S390X_KERNEL = Asset( - 'https://storage.tuxboot.com/20230331/s390/bzImage', - '0414e98dd1c3dafff8496c9cd9c28a5f8d04553bb5ba37e906a812b48d442ef0') + 'https://storage.tuxboot.com/buildroot/20241119/s390/bzImage', + 'ee67e91db52a2aed104a7c72b2a08987c678f8179c029626789c35d6dd0fedf1') ASSET_S390X_ROOTFS = Asset( - 'https://storage.tuxboot.com/20230331/s390/rootfs.ext4.zst', - '88c37c32276677f873a25ab9ec6247895b8e3e6f8259134de2a616080b8ab3fc') + 'https://storage.tuxboot.com/buildroot/20241119/s390/rootfs.ext4.zst', + 'bff7971fc2fef56372d98afe4557b82fd0a785a241e44c29b058e577ad1bbb44') def test_s390(self): self.wait_for_shutdown=False
Signature · 1 line
2.39.5
Re: [PATCH 32/39] tests/functional: update the s390x tuxrun tests
Quoted 7 lines · Alex Bennée
Now there are new upto date images available we should update to them.
Signed-off-by Alex Bennée <[email protected]>Cc Anders Roxell <[email protected]>--- tests/functional/test_s390x_tuxrun.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
PATCH 33/39 tests/functional: update the sparc64 tuxrun tests
In reply to Alex BennéeNow there are new upto date images available we should update to them.
--- tests/functional/test_sparc64_tuxrun.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
tests/functional/test_sparc64_tuxrun.py +4 -4
@@ -17,11 +17,11 @@ class TuxRunSparc64Test(TuxRunBaselineTest): ASSET_SPARC64_KERNEL = Asset( - 'https://storage.tuxboot.com/20230331/sparc64/vmlinux', - 'e34313e4325ff21deaa3d38a502aa09a373ef62b9bd4d7f8f29388b688225c55') + 'https://storage.tuxboot.com/buildroot/20241119/sparc64/vmlinux', + 'a04cfb2e70a264051d161fdd93aabf4b2a9472f2e435c14ed18c5848c5fed261') ASSET_SPARC64_ROOTFS = Asset( - 'https://storage.tuxboot.com/20230331/sparc64/rootfs.ext4.zst', - 'ad2f1dc436ab51583543d25d2c210cab478645d47078d30d129a66ab0e281d76') + 'https://storage.tuxboot.com/buildroot/20241119/sparc64/rootfs.ext4.zst', + '479c3dc104c82b68be55e2c0c5c38cd473d0b37ad4badccde4775bb88ce34611') def test_sparc64(self): self.root='sda'
Signature · 1 line
2.39.5
Re: [PATCH 33/39] tests/functional: update the sparc64 tuxrun tests
Quoted 7 lines · Alex Bennée
Now there are new upto date images available we should update to them.
Signed-off-by Alex Bennée <[email protected]>Cc Anders Roxell <[email protected]>--- tests/functional/test_sparc64_tuxrun.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
PATCH 34/39 tests/functional: update the x86_64 tuxrun tests
In reply to Alex BennéeNow there are new upto date images available we should update to them.
--- tests/functional/test_x86_64_tuxrun.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
tests/functional/test_x86_64_tuxrun.py +4 -4
@@ -17,11 +17,11 @@ class TuxRunX86Test(TuxRunBaselineTest): ASSET_X86_64_KERNEL = Asset( - 'https://storage.tuxboot.com/20230331/x86_64/bzImage', - '2bc7480a669ee9b6b82500a236aba0c54233debe98cb968268fa230f52f03461') + 'https://storage.tuxboot.com/buildroot/20241119/x86_64/bzImage', + 'f57bfc6553bcd6e0a54aab86095bf642b33b5571d14e3af1731b18c87ed5aef8') ASSET_X86_64_ROOTFS = Asset( - 'https://storage.tuxboot.com/20230331/x86_64/rootfs.ext4.zst', - 'b72ac729769b8f51c6dffb221113c9a063c774dbe1d66af30eb593c4e9999b4b') + 'https://storage.tuxboot.com/buildroot/20241119/x86_64/rootfs.ext4.zst', + '4b8b2a99117519c5290e1202cb36eb6c7aaba92b357b5160f5970cf5fb78a751') def test_x86_64(self): self.set_machine('q35')
Signature · 1 line
2.39.5
Re: [PATCH 34/39] tests/functional: update the x86_64 tuxrun tests
Quoted 7 lines · Alex Bennée
Now there are new upto date images available we should update to them.
Signed-off-by Alex Bennée <[email protected]>Cc Anders Roxell <[email protected]>--- tests/functional/test_x86_64_tuxrun.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
PATCH 35/39 plugins: add missing export for qemu_plugin_num_vcpus
In reply to Alex BennéeFrom: Pierrick Bouvier <[email protected]>
Message-Id: <[email protected]>
--- include/qemu/qemu-plugin.h | 1 + 1 file changed, 1 insertion(+)
include/qemu/qemu-plugin.h +1 -0
@@ -803,6 +803,7 @@ void qemu_plugin_register_atexit_cb(qemu_plugin_id_t id, qemu_plugin_udata_cb_t cb, void *userdata);/* returns how many vcpus were started at this point */ +QEMU_PLUGIN_API int qemu_plugin_num_vcpus(void);/**
Signature · 1 line
2.39.5
Re: [PATCH 35/39] plugins: add missing export for qemu_plugin_num_vcpus
Quoted 16 lines · Alex Bennée
From: Pierrick Bouvier <[email protected]>
Fixes 4a448b148ca ("plugins: add qemu_plugin_num_vcpus function")Reviewed-by Philippe Mathieu-Daudé <[email protected]>Signed-off-by Pierrick Bouvier <[email protected]>Message-Id: <[email protected]>
Signed-off-by Alex Bennée <[email protected]>--- include/qemu/qemu-plugin.h | 1 + 1 file changed, 1 insertion(+)include/qemu/qemu-plugin.h +0
-0
include/qemu/qemu-plugin.h void qemu_plugin_register_atexit_cb(qemu_plugin_id_t id, · line 809
Quoted 7 lines
include/qemu/qemu-plugin.h +1
-0@@ -803,6 +803,7 @@ void qemu_plugin_register_atexit_cb(qemu_plugin_id_t id, qemu_plugin_udata_cb_t cb, void *userdata);/* returns how many vcpus were started at this point */ +QEMU_PLUGIN_API int qemu_plugin_num_vcpus(void);/**
r~
PATCH 36/39 plugins: detect qemu plugin API symbols from header
In reply to Alex BennéeFrom: Pierrick Bouvier <[email protected]>
Instead of using a static file (error prone and hard to keep in sync), we generate it using a script.
Note: if a symbol is not exported, we'll now notice it when linking for Windows/MacOS platforms.
Message-Id: <[email protected]>
--- MAINTAINERS | 1 + plugins/meson.build | 12 ++++++--- scripts/qemu-plugin-symbols.py | 45 ++++++++++++++++++++++++++++++++++ 3 files changed, 55 insertions(+), 3 deletions(-) create mode 100755 scripts/qemu-plugin-symbols.py
MAINTAINERS +1 -0
@@ -3752,6 +3752,7 @@ F: plugins/ F: tests/tcg/plugins/ F: tests/functional/test_aarch64_tcg_plugins.py F: contrib/plugins/ +F: scripts/qemu-plugin-symbols.py AArch64 TCG target M: Richard Henderson <[email protected]>
plugins/meson.build +9 -3
@@ -2,17 +2,23 @@ if not get_option('plugins') subdir_done() endif +qemu_plugin_symbols = configure_file( + input: files('../include/qemu/qemu-plugin.h'), + output: 'qemu-plugin.symbols', + capture: true, + command: [files('../scripts/qemu-plugin-symbols.py'), '@INPUT@']) + # Modules need more symbols than just those in plugins/qemu-plugins.symbols if not enable_modules if host_os == 'darwin' configure_file( - input: files('qemu-plugins.symbols'), + input: qemu_plugin_symbols, output: 'qemu-plugins-ld64.symbols', capture: true, command: ['sed', '-ne', 's/^[[:space:]]*\\(qemu_.*\\);/_\\1/p', '@INPUT@']) emulator_link_args += ['-Wl,-exported_symbols_list,plugins/qemu-plugins-ld64.symbols'] else - emulator_link_args += ['-Xlinker', '--dynamic-list=' + (meson.project_source_root() / 'plugins/qemu-plugins.symbols')] + emulator_link_args += ['-Xlinker', '--dynamic-list=' + qemu_plugin_symbols.full_path()] endif endif
@@ -23,7 +29,7 @@ if host_os == 'windows' # First, create a .def file listing all the symbols a plugin should expect to have # available in qemu win32_plugin_def = configure_file( - input: files('qemu-plugins.symbols'), + input: qemu_plugin_symbols, output: 'qemu_plugin_api.def', capture: true, command: ['sed', '-e', '0,/^/s//EXPORTS/; s/[{};]//g', '@INPUT@'])
scripts/qemu-plugin-symbols.py new file +45 -0
45 lines not on this page · raw message
Signature · 1 line
2.39.5
PATCH 37/39 plugins: eradicate qemu-plugins.symbols static file
In reply to Alex BennéeFrom: Pierrick Bouvier <[email protected]>
Message-Id: <[email protected]>
--- plugins/qemu-plugins.symbols | 59 ------------------------------------ 1 file changed, 59 deletions(-) delete mode 100644 plugins/qemu-plugins.symbols
plugins/qemu-plugins.symbols deleted +0 -59
@@ -1,59 +0,0 @@ -{ - qemu_plugin_bool_parse; - qemu_plugin_end_code; - qemu_plugin_entry_code; - qemu_plugin_get_hwaddr; - qemu_plugin_get_registers; - qemu_plugin_hwaddr_device_name; - qemu_plugin_hwaddr_is_io; - qemu_plugin_hwaddr_phys_addr; - qemu_plugin_insn_data; - qemu_plugin_insn_disas; - qemu_plugin_insn_haddr; - qemu_plugin_insn_size; - qemu_plugin_insn_symbol; - qemu_plugin_insn_vaddr; - qemu_plugin_mem_get_value; - qemu_plugin_mem_is_big_endian; - qemu_plugin_mem_is_sign_extended; - qemu_plugin_mem_is_store; - qemu_plugin_mem_size_shift; - qemu_plugin_num_vcpus; - qemu_plugin_outs; - qemu_plugin_path_to_binary; - qemu_plugin_read_memory_vaddr; - qemu_plugin_read_register; - qemu_plugin_register_atexit_cb; - qemu_plugin_register_flush_cb; - qemu_plugin_register_vcpu_exit_cb; - qemu_plugin_register_vcpu_idle_cb; - qemu_plugin_register_vcpu_init_cb; - qemu_plugin_register_vcpu_insn_exec_cb; - qemu_plugin_register_vcpu_insn_exec_cond_cb; - qemu_plugin_register_vcpu_insn_exec_inline_per_vcpu; - qemu_plugin_register_vcpu_mem_cb; - qemu_plugin_register_vcpu_mem_inline_per_vcpu; - qemu_plugin_register_vcpu_resume_cb; - qemu_plugin_register_vcpu_syscall_cb; - qemu_plugin_register_vcpu_syscall_ret_cb; - qemu_plugin_register_vcpu_tb_exec_cb; - qemu_plugin_register_vcpu_tb_exec_cond_cb; - qemu_plugin_register_vcpu_tb_exec_inline_per_vcpu; - qemu_plugin_register_vcpu_tb_trans_cb; - qemu_plugin_request_time_control; - qemu_plugin_reset; - qemu_plugin_scoreboard_free; - qemu_plugin_scoreboard_find; - qemu_plugin_scoreboard_new; - qemu_plugin_start_code; - qemu_plugin_tb_get_insn; - qemu_plugin_tb_n_insns; - qemu_plugin_tb_vaddr; - qemu_plugin_u64_add; - qemu_plugin_u64_get; - qemu_plugin_u64_set; - qemu_plugin_u64_sum; - qemu_plugin_uninstall; - qemu_plugin_update_ns; - qemu_plugin_vcpu_for_each; -};
Signature · 1 line
2.39.5
PATCH 38/39 rust/pl011: Fix range checks for device ID accesses
In reply to Alex BennéeFrom: Junjie Mao <[email protected]>
The peripheral and PrimeCell identification registers of pl011 are located at offset 0xFE0 - 0xFFC. To check if a read falls to such registers, the C implementation checks if the offset-shifted-by-2 (not the offset itself) is in the range 0x3F8 - 0x3FF.
Use the same check in the Rust implementation.
This fixes the timeout of the following avocado tests:
* tests/avocado/boot_linux_console.py:BootLinuxConsole.test_arm_virt
* tests/avocado/replay_kernel.py:ReplayKernelNormal.test_arm_virt
* tests/avocado/replay_kernel.py:ReplayKernelNormal.test_arm_vexpressa9
Message-Id: <SY0P300MB102644C4AC34A3AAD75DC4D5955C2@SY0P300MB1026.AUSP300.PROD.OUTLOOK.COM>
--- rust/hw/char/pl011/src/device.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
rust/hw/char/pl011/src/device.rs +1 -1
@@ -182,7 +182,7 @@ pub fn read(&mut self, offset: hwaddr, _size: c_uint) -> std::ops::ControlFlow<uuse RegisterOffset ::*; std::ops::ControlFlow ::Break (match RegisterOffset ::try_from (offset) { -Err (v)if (0x3f8 ..0x400 ).contains (&v) => { +Err (v)if (0x3f8 ..0x400 ).contains (&(v >>2 )) => { u64::from (self.device_id[(offset -0xfe0 ) >>2 ]) }Err (_) => {
Signature · 1 line
2.39.5
PATCH 39/39 docs: explicitly permit a "commonly known identity" with SoB
In reply to Alex BennéeFrom: Daniel P. Berrangé <[email protected]>
The docs for submitting a patch describe using your "Real Name" with the Signed-off-by line. Although somewhat ambiguous, this has often been interpreted to mean someone's legal name.
In recent times, there's been a general push back[1] against the notion that use of Signed-off-by in a project automatically requires / implies the use of legal ("real") names and greater awareness of the downsides.
Full discussion of the problems of such policies is beyond the scope of this commit message, but at a high level they are liable to marginalize, disadvantage, and potentially result in harm, to contributors.
TL;DR: there are compelling reasons for a person to choose distinct identities in different contexts & a decision to override that choice should not be taken lightly.
A number of key projects have responded to the issues raised by making it clear that a contributor is free to determine the identity used in SoB lines:
* Linux has clarified[2] that they merely expect use of the contributor's "known identity", removing the previous explicit rejection of pseudonyms.
* CNCF has clarified[3] that the real name is simply the identity the contributor chooses to use in the context of the community and does not have to be a legal name, nor birth name, nor appear on any government ID.
Since we have no intention of ever routinely checking any form of ID documents for contributors[4], realistically we have no way of knowing anything about the name they are using, except through chance, or through the contributor volunteering the information. IOW, we almost certainly already have people using pseudonyms for contributions.
This proposes to accept that reality and eliminate unnecessary friction, by following Linux & the CNCF in merely asking that a contributors' commonly known identity, of their choosing, be used with the SoB line.
[1] Raised in many contexts at many times, but a decent overall summary
can be read at https://drewdevault.com/2023/10/31/On-real-names.html
[2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d4563201f33a022fc0353033d9dfeb1606a88330
[3] https://github.com/cncf/foundation/blob/659fd32c86dc/dco-guidelines.md
[4] Excluding the rare GPG key signing parties for regular maintainers
Message-Id: <[email protected]>
--- docs/devel/submitting-a-patch.rst | 7 ++++++- .gitlab-ci.d/check-dco.py | 5 ++++- 2 files changed, 10 insertions(+), 2 deletions(-)
docs/devel/submitting-a-patch.rst +6 -1
@@ -18,7 +18,7 @@ one-shot fix, the bare minimum we ask is that: * - Check - Reason - * - Patches contain Signed-off-by: Real Name <author@email> + * - Patches contain Signed-off-by: Your Name <author@email> - States you are legally able to contribute the code. See :ref:`patch_emails_must_include_a_signed_off_by_line` * - Sent as patch emails to ``[email protected]`` - The project uses an email list based workflow. See :ref:`submitting_your_patches`
@@ -335,6 +335,11 @@ include a "From:" line in the body of the email (different from your envelope From:) that will give credit to the correct author; but again, that author's Signed-off-by: line is mandatory, with the same spelling. +The name used with "Signed-off-by" does not need to be your legal name, +nor birth name, nor appear on any government ID. It is the identity you +choose to be known by in the community, but should not be anonymous, +nor misrepresent whom you are. + There are various tooling options for automatically adding these tags include using ``git commit -s`` or ``git format-patch -s``. For more information see `SubmittingPatches 1.12
.gitlab-ci.d/check-dco.py +4 -1
@@ -78,7 +78,10 @@ To indicate acceptance of the DCO every commit must have a tag - Signed-off-by: REAL NAME <EMAIL> + Signed-off-by: YOUR NAME <EMAIL> + +where "YOUR NAME" is your commonly known identity in the context +of the community. This can be achieved by passing the "-s" flag to the "git commit" command.
Signature · 1 line
2.39.5
Re: [PATCH 39/39] docs: explicitly permit a "commonly known identity" with SoB
Quoted 51 lines · Alex Bennée
From: Daniel P. Berrangé <[email protected]>
The docs for submitting a patch describe using your "Real Name" with the Signed-off-by line. Although somewhat ambiguous, this has often been interpreted to mean someone's legal name.
In recent times, there's been a general push back[1] against the notion that use of Signed-off-by in a project automatically requires / implies the use of legal ("real") names and greater awareness of the downsides.
Full discussion of the problems of such policies is beyond the scope of this commit message, but at a high level they are liable to marginalize, disadvantage, and potentially result in harm, to contributors.
TL;DR: there are compelling reasons for a person to choose distinct identities in different contexts & a decision to override that choice should not be taken lightly.
A number of key projects have responded to the issues raised by making it clear that a contributor is free to determine the identity used in SoB lines:
* Linux has clarified[2] that they merely expect use of the contributor's "known identity", removing the previous explicit rejection of pseudonyms.
* CNCF has clarified[3] that the real name is simply the identity the contributor chooses to use in the context of the community and does not have to be a legal name, nor birth name, nor appear on any government ID.
Since we have no intention of ever routinely checking any form of ID documents for contributors[4], realistically we have no way of knowing anything about the name they are using, except through chance, or through the contributor volunteering the information. IOW, we almost certainly already have people using pseudonyms for contributions.
This proposes to accept that reality and eliminate unnecessary friction, by following Linux & the CNCF in merely asking that a contributors' commonly known identity, of their choosing, be used with the SoB line.
[1] Raised in many contexts at many times, but a decent overall summary
can be read at https://drewdevault.com/2023/10/31/On-real-names.html
[2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d4563201f33a022fc0353033d9dfeb1606a88330
[3] https://github.com/cncf/foundation/blob/659fd32c86dc/dco-guidelines.md
[4] Excluding the rare GPG key signing parties for regular maintainers
Quoted 8 lines
Signed-off-by Daniel P. Berrangé <[email protected]>Acked-by Stefan Hajnoczi <[email protected]>Acked-by Peter Maydell <[email protected]>Reviewed-by Philippe Mathieu-Daudé <[email protected]>Reviewed-by Alex Bennée <[email protected]>Message-Id: <[email protected]>
Signed-off-by Alex Bennée <[email protected]>
Quoted 49 lines
---
docs/devel/submitting-a-patch.rst| 7 ++++++-.gitlab-ci.d/check-dco.py| 5 ++++-2 files changed, 10 insertions(+), 2 deletions(-)docs/devel/submitting-a-patch.rst +1
-1@@ -18,7 +18,7 @@ one-shot fix, the bare minimum we ask is that: * - Check - Reason - * - Patches contain Signed-off-by: Real Name <author@email> + * - Patches contain Signed-off-by: Your Name <author@email> - States you are legally able to contribute the code. See :ref:`patch_emails_must_include_a_signed_off_by_line` * - Sent as patch emails to ``[email protected]`` - The project uses an email list based workflow. See :ref:`submitting_your_patches`@@ -335,6 +335,11 @@ include a "From:" line in the body of the email (different from your envelope From:) that will give credit to the correct author; but again,that author's Signed-off-by: line is mandatory, with the same spelling.
docs/devel/submitting-a-patch.rst +5
-0+The name used with "Signed-off-by" does not need to be your legal name, +nor birth name, nor appear on any government ID. It is the identity you +choose to be known by in the community, but should not be anonymous, +nor misrepresent whom you are. +There are various tooling options for automatically adding these tags include using ``git commit -s`` or ``git format-patch -s``. For more information see `SubmittingPatches 1.12
.gitlab-ci.d/check-dco.py +0
-0@@ -78,7 +78,10 @@To indicate acceptance of the DCO every commit must have a tag
.gitlab-ci.d/check-dco.py +4
-1- Signed-off-by: REAL NAME <EMAIL> + Signed-off-by: YOUR NAME <EMAIL> + +where "YOUR NAME" is your commonly known identity in the context +of the community.This can be achieved by passing the "-s" flag to the "git commit" command.
Signature · 1 line
2.39.5
Re: [PATCH 39/39] docs: explicitly permit a "commonly known identity" with SoB
In reply to Alex BennéeQuoted 47 lines · Alex Bennée
From: Daniel P. Berrangé <[email protected]>
The docs for submitting a patch describe using your "Real Name" with the Signed-off-by line. Although somewhat ambiguous, this has often been interpreted to mean someone's legal name.
In recent times, there's been a general push back[1] against the notion that use of Signed-off-by in a project automatically requires / implies the use of legal ("real") names and greater awareness of the downsides.
Full discussion of the problems of such policies is beyond the scope of this commit message, but at a high level they are liable to marginalize, disadvantage, and potentially result in harm, to contributors.
TL;DR: there are compelling reasons for a person to choose distinct identities in different contexts & a decision to override that choice should not be taken lightly.
A number of key projects have responded to the issues raised by making it clear that a contributor is free to determine the identity used in SoB lines:
* Linux has clarified[2] that they merely expect use of the contributor's "known identity", removing the previous explicit rejection of pseudonyms.
* CNCF has clarified[3] that the real name is simply the identity the contributor chooses to use in the context of the community and does not have to be a legal name, nor birth name, nor appear on any government ID.
Since we have no intention of ever routinely checking any form of ID documents for contributors[4], realistically we have no way of knowing anything about the name they are using, except through chance, or through the contributor volunteering the information. IOW, we almost certainly already have people using pseudonyms for contributions.
This proposes to accept that reality and eliminate unnecessary friction, by following Linux & the CNCF in merely asking that a contributors' commonly known identity, of their choosing, be used with the SoB line.
[1] Raised in many contexts at many times, but a decent overall summary
can be read at https://drewdevault.com/2023/10/31/On-real-names.html[2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d4563201f33a022fc0353033d9dfeb1606a88330
[3] https://github.com/cncf/foundation/blob/659fd32c86dc/dco-guidelines.md
[4] Excluding the rare GPG key signing parties for regular maintainers
Quoted 8 lines
Signed-off-by Daniel P. Berrangé <[email protected]>Acked-by Stefan Hajnoczi <[email protected]>Acked-by Peter Maydell <[email protected]>Reviewed-by Philippe Mathieu-Daudé <[email protected]>Reviewed-by Alex Bennée <[email protected]>Message-Id: <[email protected]>
Signed-off-by Alex Bennée <[email protected]>
Quoted 48 lines
--- docs/devel/submitting-a-patch.rst | 7 ++++++- .gitlab-ci.d/check-dco.py | 5 ++++- 2 files changed, 10 insertions(+), 2 deletions(-)docs/devel/submitting-a-patch.rst +6
-1@@ -18,7 +18,7 @@ one-shot fix, the bare minimum we ask is that: * - Check - Reason - * - Patches contain Signed-off-by: Real Name <author@email> + * - Patches contain Signed-off-by: Your Name <author@email> - States you are legally able to contribute the code. See :ref:`patch_emails_must_include_a_signed_off_by_line` * - Sent as patch emails to ``[email protected]`` - The project uses an email list based workflow. See :ref:`submitting_your_patches`@@ -335,6 +335,11 @@ include a "From:" line in the body of the email (different from your envelope From:) that will give credit to the correct author; but again, that author's Signed-off-by: line is mandatory, with the same spelling. +The name used with "Signed-off-by" does not need to be your legal name, +nor birth name, nor appear on any government ID. It is the identity you +choose to be known by in the community, but should not be anonymous, +nor misrepresent whom you are. + There are various tooling options for automatically adding these tags include using ``git commit -s`` or ``git format-patch -s``. For more information see `SubmittingPatches 1.12.gitlab-ci.d/check-dco.py +4
-1@@ -78,7 +78,10 @@ To indicate acceptance of the DCO every commit must have a tag - Signed-off-by: REAL NAME <EMAIL> + Signed-off-by: YOUR NAME <EMAIL> + +where "YOUR NAME" is your commonly known identity in the context +of the community. This can be achieved by passing the "-s" flag to the "git commit" command.Signature · 1 line
2.39.5
Quoted 5 lines · Alex Bennée
This is a mostly testing focused set of patches but a few bug fixes as well. I plan to send the PR in on Monday. I can drop any patches that are objected to but I think its pretty safe.
Quoted 7 lines
Contains:
- Daniel's clean-up of functional tests
- Anotheravocado->functionconversion from Thomas
- Update the tuxrun baseline images
- Minor fix to the rust pl011 device
- Documentation clarification on identity
Should we really be updating the tuxrun baseline images in the middle of a release freeze period? Unless the old images are going to go away and break the tests, I think it would be better to stick with what we're currently testing.
thanks
-- PMM
Quoted 14 lines · Peter Maydell
Quoted 5 lines · Alex Bennée
This is a mostly testing focused set of patches but a few bug fixes as well. I plan to send the PR in on Monday. I can drop any patches that are objected to but I think its pretty safe.
Quoted 7 lines
Contains:
- Daniel's clean-up of functional tests
- Anotheravocado->functionconversion from Thomas
- Update the tuxrun baseline images
- Minor fix to the rust pl011 device
- Documentation clarification on identity
Quoted 4 lines
Should we really be updating the tuxrun baseline images in the middle of a release freeze period? Unless the old images are going to go away and break the tests, I think it would be better to stick with what we're currently testing.
Well the arm64be fixed a real problem and while I was at it I figured might as well keep the rest in sync. I have tested them so they all pass (although I'm waiting on the CI run now).
Quoted 3 lines
thanks
-- PMM
Signature · 2 lines
Alex Bennée Virtualisation Tech Lead @ Linaro
Quoted 16 lines · Alex Bennée
Quoted 14 lines · Peter Maydell
Quoted 12 lines · Alex Bennée
This is a mostly testing focused set of patches but a few bug fixes as well. I plan to send the PR in on Monday. I can drop any patches that are objected to but I think its pretty safe.
Contains:
- Daniel's clean-up of functional tests
- Anotheravocado->functionconversion from Thomas
- Update the tuxrun baseline images
- Minor fix to the rust pl011 device
- Documentation clarification on identity
Quoted 8 lines
Quoted 4 lines
Should we really be updating the tuxrun baseline images in the middle of a release freeze period? Unless the old images are going to go away and break the tests, I think it would be better to stick with what we're currently testing.
Well the arm64be fixed a real problem and while I was at it I figured might as well keep the rest in sync. I have tested them so they all pass (although I'm waiting on the CI run now).
But there could be new intermittent problems in the new images ... so if we'd face such a problem, we would not know whether it is the image or whether it is QEMU. Thus maybe let's better keep the old versions for 9.2 (except for the arm64 patch that fixes a real problem), and use the new versions for 10.0 ?
Thomas
Quoted 26 lines · Thomas Huth
Quoted 16 lines · Alex Bennée
Quoted 14 lines · Peter Maydell
Quoted 12 lines · Alex Bennée
This is a mostly testing focused set of patches but a few bug fixes as well. I plan to send the PR in on Monday. I can drop any patches that are objected to but I think its pretty safe.
Contains:
- Daniel's clean-up of functional tests
- Anotheravocado->functionconversion from Thomas
- Update the tuxrun baseline images
- Minor fix to the rust pl011 device
- Documentation clarification on identityQuoted 8 lines
Quoted 4 lines
Should we really be updating the tuxrun baseline images in the middle of a release freeze period? Unless the old images are going to go away and break the tests, I think it would be better to stick with what we're currently testing.
Well the arm64be fixed a real problem and while I was at it I figured
might as well keep the rest in sync. I have tested them so they all pass (although I'm waiting on the CI run now).
Quoted 5 lines
But there could be new intermittent problems in the new images ... so if we'd face such a problem, we would not know whether it is the image or whether it is QEMU. Thus maybe let's better keep the old versions for 9.2 (except for the arm64 patch that fixes a real problem), and use the new versions for 10.0 ?
Fair enough. Will drop the others for now.
Quoted 2 lines
Thomas
Signature · 2 lines
Alex Bennée Virtualisation Tech Lead @ Linaro
Hello Alex,
Quoted 14 lines · Alex Bennée
This is a mostly testing focused set of patches but a few bug fixes as well. I plan to send the PR in on Monday. I can drop any patches that are objected to but I think its pretty safe.
Contains:
- Daniel's clean-up of functional tests
- Anotheravocado->functionconversion from Thomas
- Update the tuxrun baseline images
- Minor fix to the rust pl011 device
- Documentation clarification on identityThe following could do with some review:
Quoted 16 lines
tests/functional: update the
x86_64tuxrun tests tests/functional: update the sparc64 tuxrun tests tests/functional: update the s390x tuxrun tests tests/functional: update the riscv64 tuxrun tests tests/functional: update the riscv32 tuxrun tests tests/functional: update the ppc64 tuxrun tests tests/functional: update the ppc32 tuxrun tests tests/functional: update the mips64el tuxrun tests tests/functional: update the mips64 tuxrun tests tests/functional: update the mips32el tuxrun tests tests/functional: update the mips32 tuxrun tests tests/functional: add a m68k tuxrun tests tests/functional: update the i386 tuxrun tests tests/functional: update the aarch64 tuxrun tests tests/functional: update the arm tuxrun tests tests/functional: Convert the Avocado aarch64 tuxrun tests
Do you think we could include patches 2-4 from this series ?
https://lore.kernel.org/all/[email protected]/
Only patch 3 lacks a R-b.
Thanks,
C.
Quoted 34 lines · Cédric Le Goater
Hello Alex,
Quoted 14 lines · Alex Bennée
This is a mostly testing focused set of patches but a few bug fixes as well. I plan to send the PR in on Monday. I can drop any patches that are objected to but I think its pretty safe.
Contains:
- Daniel's clean-up of functional tests
- Anotheravocado->functionconversion from Thomas
- Update the tuxrun baseline images
- Minor fix to the rust pl011 device
- Documentation clarification on identityThe following could do with some review:
Quoted 16 lines
tests/functional: update the
x86_64tuxrun tests tests/functional: update the sparc64 tuxrun tests tests/functional: update the s390x tuxrun tests tests/functional: update the riscv64 tuxrun tests tests/functional: update the riscv32 tuxrun tests tests/functional: update the ppc64 tuxrun tests tests/functional: update the ppc32 tuxrun tests tests/functional: update the mips64el tuxrun tests tests/functional: update the mips64 tuxrun tests tests/functional: update the mips32el tuxrun tests tests/functional: update the mips32 tuxrun tests tests/functional: add a m68k tuxrun tests tests/functional: update the i386 tuxrun tests tests/functional: update the aarch64 tuxrun tests tests/functional: update the arm tuxrun tests tests/functional: Convert the Avocado aarch64 tuxrun tests
Quoted 5 lines
Do you think we could include patches 2-4 from this series ?
https://lore.kernel.org/all/[email protected]/
Only patch 3 lacks a R-b.
I had a question on patch 3 and a suggestion on patch 4 ... could you maybe address them first? Thanks!
Thomas
Quoted 35 lines · Thomas Huth
Quoted 34 lines · Cédric Le Goater
Hello Alex,
Quoted 30 lines · Alex Bennée
This is a mostly testing focused set of patches but a few bug fixes as well. I plan to send the PR in on Monday. I can drop any patches that are objected to but I think its pretty safe.
Contains:
- Daniel's clean-up of functional tests
- Anotheravocado->functionconversion from Thomas
- Update the tuxrun baseline images
- Minor fix to the rust pl011 device
- Documentation clarification on identityThe following could do with some review:
tests/functional: update the
x86_64tuxrun tests tests/functional: update the sparc64 tuxrun tests tests/functional: update the s390x tuxrun tests tests/functional: update the riscv64 tuxrun tests tests/functional: update the riscv32 tuxrun tests tests/functional: update the ppc64 tuxrun tests tests/functional: update the ppc32 tuxrun tests tests/functional: update the mips64el tuxrun tests tests/functional: update the mips64 tuxrun tests tests/functional: update the mips32el tuxrun tests tests/functional: update the mips32 tuxrun tests tests/functional: add a m68k tuxrun tests tests/functional: update the i386 tuxrun tests tests/functional: update the aarch64 tuxrun tests tests/functional: update the arm tuxrun tests tests/functional: Convert the Avocado aarch64 tuxrun tests
Quoted 7 lines
Quoted 5 lines
Do you think we could include patches 2-4 from this series ?
https://lore.kernel.org/all/[email protected]/
Only patch 3 lacks a R-b.
I had a question on patch 3 and a suggestion on patch 4 ... could you maybe address them first? Thanks!
Oh Sorry I forgot.
I did address patch 4 in my tree ... In Patch 3, EXTRA_BOOTARGS was added by Alex IIRC to work around the console issue. We ended up adding the sleep call. I can resend tomorrow.
Thanks,
C.
Quoted 42 lines · Cédric Le Goater
Quoted 41 lines · Thomas Huth
Quoted 39 lines · Cédric Le Goater
Hello Alex,
Quoted 14 lines · Alex Bennée
This is a mostly testing focused set of patches but a few bug fixes as well. I plan to send the PR in on Monday. I can drop any patches that are objected to but I think its pretty safe.
Contains:
- Daniel's clean-up of functional tests
- Anotheravocado->functionconversion from Thomas
- Update the tuxrun baseline images
- Minor fix to the rust pl011 device
- Documentation clarification on identityThe following could do with some review:
Quoted 16 lines
tests/functional: update the
x86_64tuxrun tests tests/functional: update the sparc64 tuxrun tests tests/functional: update the s390x tuxrun tests tests/functional: update the riscv64 tuxrun tests tests/functional: update the riscv32 tuxrun tests tests/functional: update the ppc64 tuxrun tests tests/functional: update the ppc32 tuxrun tests tests/functional: update the mips64el tuxrun tests tests/functional: update the mips64 tuxrun tests tests/functional: update the mips32el tuxrun tests tests/functional: update the mips32 tuxrun tests tests/functional: add a m68k tuxrun tests tests/functional: update the i386 tuxrun tests tests/functional: update the aarch64 tuxrun tests tests/functional: update the arm tuxrun tests tests/functional: Convert the Avocado aarch64 tuxrun testsDo you think we could include patches 2-4 from this series ?
https://lore.kernel.org/all/[email protected]/
Only patch 3 lacks a R-b.
Quoted 7 lines
Quoted 1 line
I had a question on patch 3 and a suggestion on patch 4 ... could you maybe address them first? Thanks!
Oh Sorry I forgot.
I did address patch 4 in my tree ... In Patch 3,
EXTRA_BOOTARGSwas added by Alex IIRC to work around the console issue. We ended up adding the sleep call. I can resend tomorrow.
IMHO v4 looks fine now ( https://lore.kernel.org/qemu-devel/[email protected]/ ) in case you want to pick it up, Alex.
Thomas
Quoted 47 lines · Thomas Huth
Quoted 46 lines · Cédric Le Goater
Quoted 35 lines · Thomas Huth
Quoted 34 lines · Cédric Le Goater
Hello Alex,
Quoted 30 lines · Alex Bennée
This is a mostly testing focused set of patches but a few bug fixes as well. I plan to send the PR in on Monday. I can drop any patches that are objected to but I think its pretty safe.
Contains:
- Daniel's clean-up of functional tests
- Anotheravocado->functionconversion from Thomas
- Update the tuxrun baseline images
- Minor fix to the rust pl011 device
- Documentation clarification on identityThe following could do with some review:
tests/functional: update the
x86_64tuxrun tests tests/functional: update the sparc64 tuxrun tests tests/functional: update the s390x tuxrun tests tests/functional: update the riscv64 tuxrun tests tests/functional: update the riscv32 tuxrun tests tests/functional: update the ppc64 tuxrun tests tests/functional: update the ppc32 tuxrun tests tests/functional: update the mips64el tuxrun tests tests/functional: update the mips64 tuxrun tests tests/functional: update the mips32el tuxrun tests tests/functional: update the mips32 tuxrun tests tests/functional: add a m68k tuxrun tests tests/functional: update the i386 tuxrun tests tests/functional: update the aarch64 tuxrun tests tests/functional: update the arm tuxrun tests tests/functional: Convert the Avocado aarch64 tuxrun testsQuoted 7 lines
Quoted 5 lines
Do you think we could include patches 2-4 from this series ?
https://lore.kernel.org/all/[email protected]/
Only patch 3 lacks a R-b.
I had a question on patch 3 and a suggestion on patch 4 ... could you maybe address them first? Thanks!
Oh Sorry I forgot.
Quoted 8 lines
Quoted 3 lines
I did address patch 4 in my tree ... In Patch 3,
EXTRA_BOOTARGSwas added by Alex IIRC to work around the console issue. We ended up adding the sleep call. I can resend tomorrow.IMHO v4 looks fine now ( https://lore.kernel.org/qemu-devel/[email protected]/ ) in case you want to pick it up, Alex.
Thomas
Here is a check-functional run with this series and the v4 I sent :
https://paste.debian.net/1336417/
This system is fast so the timeouts are more certainly tests failures :
func-sh4-sh4_tuxrun ?
func-rx-rx_gdbsim https://gitlab.com/qemu-project/qemu/-/issues/2691
Thanks,
C.
Quoted 57 lines · Cédric Le Goater
Quoted 47 lines · Thomas Huth
Quoted 46 lines · Cédric Le Goater
Quoted 35 lines · Thomas Huth
Quoted 34 lines · Cédric Le Goater
Hello Alex,
Quoted 30 lines · Alex Bennée
This is a mostly testing focused set of patches but a few bug fixes as well. I plan to send the PR in on Monday. I can drop any patches that are objected to but I think its pretty safe.
Contains:
- Daniel's clean-up of functional tests
- Anotheravocado->functionconversion from Thomas
- Update the tuxrun baseline images
- Minor fix to the rust pl011 device
- Documentation clarification on identityThe following could do with some review:
tests/functional: update the
x86_64tuxrun tests tests/functional: update the sparc64 tuxrun tests tests/functional: update the s390x tuxrun tests tests/functional: update the riscv64 tuxrun tests tests/functional: update the riscv32 tuxrun tests tests/functional: update the ppc64 tuxrun tests tests/functional: update the ppc32 tuxrun tests tests/functional: update the mips64el tuxrun tests tests/functional: update the mips64 tuxrun tests tests/functional: update the mips32el tuxrun tests tests/functional: update the mips32 tuxrun tests tests/functional: add a m68k tuxrun tests tests/functional: update the i386 tuxrun tests tests/functional: update the aarch64 tuxrun tests tests/functional: update the arm tuxrun tests tests/functional: Convert the Avocado aarch64 tuxrun testsQuoted 7 lines
Quoted 5 lines
Do you think we could include patches 2-4 from this series ?
https://lore.kernel.org/all/[email protected]/
Only patch 3 lacks a R-b.
I had a question on patch 3 and a suggestion on patch 4 ... could you maybe address them first? Thanks!
Oh Sorry I forgot.
Quoted 8 lines
Quoted 3 lines
I did address patch 4 in my tree ... In Patch 3,
EXTRA_BOOTARGSwas added by Alex IIRC to work around the console issue. We ended up adding the sleep call. I can resend tomorrow.IMHO v4 looks fine now ( https://lore.kernel.org/qemu- devel/[email protected]/ ) in case you want to pick it up, Alex.
Thomas
Quoted 8 lines
Here is a check-functional run with this series and the v4 I sent :
https://paste.debian.net/1336417/
This system is fast so the timeouts are more certainly tests failures :
func-sh4-sh4_tuxrun ?
func-rx-rx_gdbsim https://gitlab.com/qemu-project/qemu/-/issues/2691
Both tests are marked with QEMU_TEST_FLAKY_TESTS, so yes, it's likely the flakiness of the tests.
Thomas
Quoted 62 lines · Thomas Huth
Quoted 61 lines · Cédric Le Goater
Quoted 47 lines · Thomas Huth
Quoted 46 lines · Cédric Le Goater
Quoted 35 lines · Thomas Huth
Quoted 34 lines · Cédric Le Goater
Hello Alex,
Quoted 30 lines · Alex Bennée
This is a mostly testing focused set of patches but a few bug fixes as well. I plan to send the PR in on Monday. I can drop any patches that are objected to but I think its pretty safe.
Contains:
- Daniel's clean-up of functional tests
- Anotheravocado->functionconversion from Thomas
- Update the tuxrun baseline images
- Minor fix to the rust pl011 device
- Documentation clarification on identityThe following could do with some review:
tests/functional: update the
x86_64tuxrun tests tests/functional: update the sparc64 tuxrun tests tests/functional: update the s390x tuxrun tests tests/functional: update the riscv64 tuxrun tests tests/functional: update the riscv32 tuxrun tests tests/functional: update the ppc64 tuxrun tests tests/functional: update the ppc32 tuxrun tests tests/functional: update the mips64el tuxrun tests tests/functional: update the mips64 tuxrun tests tests/functional: update the mips32el tuxrun tests tests/functional: update the mips32 tuxrun tests tests/functional: add a m68k tuxrun tests tests/functional: update the i386 tuxrun tests tests/functional: update the aarch64 tuxrun tests tests/functional: update the arm tuxrun tests tests/functional: Convert the Avocado aarch64 tuxrun testsQuoted 7 lines
Quoted 5 lines
Do you think we could include patches 2-4 from this series ?
https://lore.kernel.org/all/[email protected]/
Only patch 3 lacks a R-b.
I had a question on patch 3 and a suggestion on patch 4 ... could you maybe address them first? Thanks!
Oh Sorry I forgot.
Quoted 8 lines
Quoted 3 lines
I did address patch 4 in my tree ... In Patch 3,
EXTRA_BOOTARGSwas added by Alex IIRC to work around the console issue. We ended up adding the sleep call. I can resend tomorrow.IMHO v4 looks fine now ( https://lore.kernel.org/qemu- devel/[email protected]/ ) in case you want to pick it up, Alex.
Thomas
Here is a check-functional run with this series and the v4 I sent :
Quoted 8 lines
Quoted 4 lines
This system is fast so the timeouts are more certainly tests failures :
func-sh4-sh4_tuxrun ?
func-rx-rx_gdbsim https://gitlab.com/qemu-project/qemu/-/issues/2691Both tests are marked with
QEMU_TEST_FLAKY_TESTS, so yes, it's likely the flakiness of the tests.Thomas
func-sh4-sh4_tuxrun runs fine with :
@@ -46,10 +46,8 @@ class TuxRunSh4Test(TuxRunBaselineTest):
console_index=1)
self.vm.launch()
- self.wait_for_console_pattern("Welcome to TuxTest")
- time.sleep(0.1)
- exec_command(self, 'root')
- time.sleep(0.1)
+ self.wait_for_console_pattern("tuxtest login:")
+ exec_command_and_wait_for_pattern(self, 'root', 'root@tuxtest:~#') exec_command_and_wait_for_pattern(self, 'halt',
"reboot: System halted")
Quoted 14 lines · Alex Bennée
This is a mostly testing focused set of patches but a few bug fixes as well. I plan to send the PR in on Monday. I can drop any patches that are objected to but I think its pretty safe.
Contains:
- Daniel's clean-up of functional tests
- Anotheravocado->functionconversion from Thomas
- Update the tuxrun baseline images
- Minor fix to the rust pl011 device
- Documentation clarification on identityThe following could do with some review:
Quoted 15 lines
tests/functional: update the
x86_64tuxrun tests tests/functional: update the sparc64 tuxrun tests tests/functional: update the s390x tuxrun tests tests/functional: update the riscv64 tuxrun tests tests/functional: update the riscv32 tuxrun tests tests/functional: update the ppc64 tuxrun tests tests/functional: update the ppc32 tuxrun tests tests/functional: update the mips64el tuxrun tests tests/functional: update the mips64 tuxrun tests tests/functional: update the mips32el tuxrun tests tests/functional: update the mips32 tuxrun tests tests/functional: add a m68k tuxrun tests tests/functional: update the i386 tuxrun tests tests/functional: update the aarch64 tuxrun tests tests/functional: update the arm tuxrun tests
If you've got some spare time: Maybe also update the sh4 tuxrun test to see whether we could drop the FLAKY marker there now?
Thomas