Acceptance tests fixes for 5.0-rc2
Another pull request on behalf of Eduardo and Cleber.
The following changes since commit 53ef8a92eb04ee19640f5aad3bff36cd4a36c250:
Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-2020040=
6' into staging (2020-04-06 12:36:45 +0100)
are available in the Git repository at:
https://gitlab.com/philmd/qemu.git tags/acceptance-fixes-20200407
for you to fetch changes up to a41f167547ec4e4752795572193d1cbb889c4885:
.travis.yml: Cache acceptance-test assets (2020-04-06 20:03:14 +0200)
----------------------------------------------------------------
Acceptance tests patches
- Fixed EXEC migration
- Reduce PReP/40p artifacts download failures,
- Disable Leon3 HelenOS
- Speed up Travis-CI job by using a specific cache bucket
CI jobs results:
https://gitlab.com/philmd/qemu/pipelines/133379305
https://travis-ci.org/github/philmd/qemu/builds/671762970
----------------------------------------------------------------
Oksana Vohchana (1):
Acceptance test: Fix to EXEC migration
Philippe Mathieu-Daud=C3=A9 (4):
tests/acceptance/ppc_prep_40p: Use cdn.netbsd.org hostname tests/acceptance/ppc_prep_40p: Use mirror for ftp.software.ibm.com tests/acceptance/machine_sparc_leon3: Disable HelenOS test .travis.yml: Cache acceptance-test assets
.travis.yml | 2 ++ tests/acceptance/machine_sparc_leon3.py | 4 ++++ tests/acceptance/migration.py | 6 +++--- tests/acceptance/ppc_prep_40p.py | 7 ++++--- 4 files changed, 13 insertions(+), 6 deletions(-)
--=20
2.21.1
[PULL 1/5] Acceptance test: Fix to EXEC migration
From: Oksana Vohchana <[email protected]>
The exec migration test isn't run a whole test scenario. This patch fixes it
Message-Id: <[email protected]>
--- tests/acceptance/migration.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
tests/acceptance/migration.py +3 -3
@@ -70,8 +70,8 @@ def test_migration_with_unix(self): @skipUnless(find_command('nc', default=False), "'nc' command not found") def test_migration_with_exec(self): - """ - The test works for both netcat-traditional and netcat-openbsd packages - """ + """The test works for both netcat-traditional and netcat-openbsd packages.""" free_port = self._get_free_port() dest_uri = 'exec:nc -l localhost %u' % free_port + src_uri = 'exec:nc localhost %u' % free_port + self.do_migrate(dest_uri, src_uri)
Signature · 1 line
2.21.1
[PULL 3/5] tests/acceptance/ppc_prep_40p: Use mirror for ftp.software.ibm.com
In reply to Philippe Mathieu-DaudéTo avoid regular failures on Travis-CI with ftp.software.ibm.com, use a mirror.
Message-Id: <[email protected]>
--- tests/acceptance/ppc_prep_40p.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
tests/acceptance/ppc_prep_40p.py +2 -1
@@ -30,7 +30,8 @@ def test_factory_firmware_and_netbsd(self): :avocado: tags=machine:40p :avocado: tags=slowness:high """ - bios_url = ('ftp://ftp.boulder.ibm.com/rs6000/firmware/' + bios_url = ('http://ftpmirror.your.org/pub/misc/' + 'ftp.software.ibm.com/rs6000/firmware/' '7020-40p/P12H0456.IMG') bios_hash = '1775face4e6dc27f3a6ed955ef6eb331bf817f03' bios_path = self.fetch_asset(bios_url, asset_hash=bios_hash)
Signature · 1 line
2.21.1
[PULL 4/5] tests/acceptance/machine_sparc_leon3: Disable HelenOS test
In reply to Philippe Mathieu-DaudéFrom: Philippe Mathieu-Daudé <[email protected]>
This test was written/tested around beginning of 2019, but was extracted from a bigger series and posted end of June 2019 [*]. Unfortunately I did not notice commit 162abf1a8 was merged by then, which implements the AHB and APB plug and play devices.
HelenOS 0.6 is expecting the PnP registers to be not implemented by QEMU, then forces the discovered AMBA devices (see [2]).
Before 162abf1a8, the console was displaying:
HelenOS bootloader, release 0.6.0 (Elastic Horse) Built on 2014-12-21 20:17:42 for sparc32 Copyright (c) 2001-2014 HelenOS project
0x4000bf20|0x4000bf20: kernel image (496640/128466 bytes) 0x4002b4f2|0x4002b4f2: ns image (154195/66444 bytes) 0x4003b87e|0x4003b87e: loader image (153182/66437 bytes) 0x4004bc03|0x4004bc03: init image (155339/66834 bytes) 0x4005c115|0x4005c115: locsrv image (162063/70267 bytes) 0x4006d390|0x4006d390: rd image (152678/65889 bytes) 0x4007d4f1|0x4007d4f1: vfs image (168480/73394 bytes) 0x4008f3a3|0x4008f3a3: logger image (158034/68368 bytes) 0x4009feb3|0x4009feb3: ext4fs image (234510/100301 bytes) 0x400b8680|0x400b8680: initrd image (8388608/1668901 bytes)
ABMA devices:
<1:00c> at 0x80000100 irq 3
<1:00d> at 0x80000200
<1:011> at 0x80000300 irq 8
Memory size: 64 MB
As of this commit, it is now confused:
ABMA devices:
<1:3000> at 0x00000000 irq 0
<1:3000> at 0x00000000 irq 0
<1:3000> at 0x00000000 irq 0
<1:3000> at 0x00000000 irq 0
<1:3000> at 0x00000000 irq 0
<1:3000> at 0x00000000 irq 0
<1:3000> at 0x00000000 irq 0
...
As this test is not working as expected, simply disable it (by skipping it) for now.
[1] https://www.mail-archive.com/[email protected]/msg627094.html
[2] https://github.com/HelenOS/helenos/blob/0.6.0/boot/arch/sparc32/src/ambapp.c#L75
Message-Id: <[email protected]>
--- tests/acceptance/machine_sparc_leon3.py | 4 ++++ 1 file changed, 4 insertions(+)
tests/acceptance/machine_sparc_leon3.py +4 -0
@@ -7,12 +7,16 @@ from avocado_qemu import Test from avocado_qemu import wait_for_console_pattern +from avocado import skip class Leon3Machine(Test): timeout = 60 + @skip("Test currently broken") + # A Window Underflow exception occurs before booting the kernel, + # and QEMU exit calling cpu_abort(), which makes this test to fail. def test_leon3_helenos_uimage(self): """ :avocado: tags=arch:sparc
Signature · 1 line
2.21.1
[PULL 2/5] tests/acceptance/ppc_prep_40p: Use cdn.netbsd.org hostname
In reply to Philippe Mathieu-DaudéUse NetBSD content delivery network to get faster downloads.
Message-Id: <[email protected]>
--- tests/acceptance/ppc_prep_40p.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
tests/acceptance/ppc_prep_40p.py +2 -2
@@ -34,7 +34,7 @@ def test_factory_firmware_and_netbsd(self): '7020-40p/P12H0456.IMG') bios_hash = '1775face4e6dc27f3a6ed955ef6eb331bf817f03' bios_path = self.fetch_asset(bios_url, asset_hash=bios_hash) - drive_url = ('https://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/' + drive_url = ('https://cdn.netbsd.org/pub/NetBSD/NetBSD-archive/' 'NetBSD-4.0/prep/installation/floppy/generic_com0.fs') drive_hash = 'dbcfc09912e71bd5f0d82c7c1ee43082fb596ceb' drive_path = self.fetch_asset(drive_url, asset_hash=drive_hash)
@@ -66,7 +66,7 @@ def test_openbios_and_netbsd(self): :avocado: tags=arch:ppc :avocado: tags=machine:40p """ - drive_url = ('https://ftp.netbsd.org/pub/NetBSD/iso/7.1.2/' + drive_url = ('https://cdn.netbsd.org/pub/NetBSD/iso/7.1.2/' 'NetBSD-7.1.2-prep.iso') drive_hash = 'ac6fa2707d888b36d6fa64de6e7fe48e' drive_path = self.fetch_asset(drive_url, asset_hash=drive_hash,
Signature · 1 line
2.21.1
[PULL 5/5] .travis.yml: Cache acceptance-test assets
In reply to Philippe Mathieu-DaudéKeep all acceptance-test assets in the same cache bucket.
As of v5.0.0-rc1, the cache is 2610.11MB:
https://travis-ci.org/github/philmd/qemu/jobs/670558103
Message-Id: <[email protected]>
--- .travis.yml | 2 ++ 1 file changed, 2 insertions(+)
.travis.yml +2 -0
@@ -318,8 +318,10 @@ jobs: env: - CONFIG="--enable-tools --target-list=aarch64-softmmu,alpha-softmmu,arm-softmmu,m68k-softmmu,microblaze-softmmu,mips-softmmu,mips64el-softmmu,nios2-softmmu,or1k-softmmu,ppc-softmmu,ppc64-softmmu,s390x-softmmu,sparc-softmmu,x86_64-softmmu,xtensa-softmmu" - TEST_CMD="make check-acceptance" + - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-acceptance" after_script: - python3 -c 'import json; r = json.load(open("tests/results/latest/results.json")); [print(t["logfile"]) for t in r["tests"] if t["status"] not in ("PASS", "SKIP")]' | xargs cat + - du -chs $HOME/avocado/data/cache addons: apt: packages:
Signature · 1 line
2.21.1
Peter Maydell
AppliedQuoted 24 lines · Philippe Mathieu-Daudé
Another pull request on behalf of Eduardo and Cleber.
The following changes since commit
53ef8a92eb04ee19640f5aad3bff36cd4a36c250:Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-2020040=
6' into staging (2020-04-06 12:36:45 +0100)are available in the Git repository at:
https://gitlab.com/philmd/qemu.git tags/acceptance-fixes-20200407
for you to fetch changes up to
a41f167547ec4e4752795572193d1cbb889c4885:.travis.yml: Cache acceptance-test assets (2020-04-06 20:03:14 +0200)
----------------------------------------------------------------
Acceptance tests patches- Fixed EXEC migration
- Reduce PReP/40p artifacts download failures,
- Disable Leon3 HelenOS
- Speed up Travis-CI job by using a specific cache bucket
Quoted 4 lines
CI jobs results:
https://gitlab.com/philmd/qemu/pipelines/133379305
https://travis-ci.org/github/philmd/qemu/builds/671762970
----------------------------------------------------------------
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/5.0
for any user-visible changes.
-- PMM