qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] 6c1c4c: tests/boot_linux_console: Let extract


From: Peter Maydell
Subject: [Qemu-commits] [qemu/qemu] 6c1c4c: tests/boot_linux_console: Let extract_from_deb han...
Date: Wed, 12 Jun 2019 05:49:14 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 6c1c4c33b58b003a562de58cb1731b29614a9446
      
https://github.com/qemu/qemu/commit/6c1c4c33b58b003a562de58cb1731b29614a9446
  Author: Philippe Mathieu-Daudé <address@hidden>
  Date:   2019-06-11 (Tue, 11 Jun 2019)

  Changed paths:
    M tests/acceptance/boot_linux_console.py

  Log Message:
  -----------
  tests/boot_linux_console: Let extract_from_deb handle various compressions

Debian binary package format supports various compressions.

Per man deb(5):

  NAME
    deb - Debian binary package format

  FORMAT
    ...
    The third, last required member is named data.tar.  It contains the
    filesystem as a tar archive, either not compressed (supported since
    dpkg 1.10.24), or compressed with gzip (with .gz extension),
    xz (with .xz extension, supported since dpkg 1.15.6),
    bzip2 (with .bz2 extension, supported since dpkg 1.10.24) or
    lzma (with .lzma extension, supported since dpkg 1.13.25).

List the archive files to have the 3rd name with the correct extension.

The function avocado.utils.archive.extract() will handle the different
compression format for us.

Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
Message-Id: <address@hidden>
Reviewed-by: Cleber Rosa <address@hidden>
Signed-off-by: Eduardo Habkost <address@hidden>


  Commit: da77bc919d83ebacc952bd8fd5cde4b2fe3a52ba
      
https://github.com/qemu/qemu/commit/da77bc919d83ebacc952bd8fd5cde4b2fe3a52ba
  Author: Philippe Mathieu-Daudé <address@hidden>
  Date:   2019-06-11 (Tue, 11 Jun 2019)

  Changed paths:
    M tests/acceptance/boot_linux_console.py

  Log Message:
  -----------
  BootLinuxConsoleTest: Do not log empty lines

Avoid to log empty lines in console debug logs.

Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
Message-Id: <address@hidden>
Reviewed-by: Alistair Francis <address@hidden>
Reviewed-by: Cleber Rosa <address@hidden>
Tested-by: Cleber Rosa <address@hidden>
Acked-by: Aleksandar Markovic <address@hidden>
Signed-off-by: Eduardo Habkost <address@hidden>


  Commit: 77ead6b83a926f71c452a6eac5ceb7b215b4b90a
      
https://github.com/qemu/qemu/commit/77ead6b83a926f71c452a6eac5ceb7b215b4b90a
  Author: Philippe Mathieu-Daudé <address@hidden>
  Date:   2019-06-11 (Tue, 11 Jun 2019)

  Changed paths:
    M tests/acceptance/boot_linux_console.py

  Log Message:
  -----------
  BootLinuxConsoleTest: Test the SmartFusion2 board

Similar to the x86_64/pc test, it boots a Linux kernel on an
Emcraft board and verify the serial is working.

If ARM is a target being built, "make check-acceptance" will
automatically include this test by the use of the "arch:arm" tags.

Alternatively, this test can be run using:

  $ avocado run -t arch:arm tests/acceptance
  $ avocado run -t machine:emcraft_sf2 tests/acceptance

Based on the recommended test setup from Subbaraya Sundeep:
https://lists.gnu.org/archive/html/qemu-devel/2017-05/msg03810.html

Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
Message-Id: <address@hidden>
Reviewed-by: Alistair Francis <address@hidden>
Signed-off-by: Eduardo Habkost <address@hidden>


  Commit: f375ad6a0d6720924065cddc24a37e31797a6951
      
https://github.com/qemu/qemu/commit/f375ad6a0d6720924065cddc24a37e31797a6951
  Author: Philippe Mathieu-Daudé <address@hidden>
  Date:   2019-06-11 (Tue, 11 Jun 2019)

  Changed paths:
    M tests/acceptance/boot_linux_console.py

  Log Message:
  -----------
  BootLinuxConsoleTest: Test nanoMIPS kernels on the I7200 CPU

Similar to the x86_64/pc test, it boots a Linux kernel on a Malta
machine and verify the serial is working.

Use the documentation added in commit f7d257cb4a17 to test
nanoMIPS kernels and the I7200 CPU.

This test can be run using:

  $ avocado --show=console run -t arch:mipsel 
tests/acceptance/boot_linux_console.py
  console: [    0.000000] Linux version 4.15.18-00432-gb2eb9a8b 
(emubuild@mipscs563) (gcc version 6.3.0 (Codescape GNU Tools 2018.04-02 for 
nanoMIPS Linux)) #1 SMP Wed Jun 27 11:10:08 PDT 2018
  console: [    0.000000] GCRs appear to have been moved (expected them at 
0x1fbf8000)!
  console: [    0.000000] GCRs appear to have been moved (expected them at 
0x1fbf8000)!
  console: [    0.000000] CPU0 revision is: 00010000 (MIPS GENERIC QEMU)
  console: [    0.000000] MIPS: machine is mti,malta
  console: [    0.000000] Determined physical RAM map:
  console: [    0.000000]  memory: 08000000 @ 00000000 (usable)
  console: [    0.000000] earlycon: ns16550a0 at I/O port 0x3f8 (options 
'38400n8')
  console: [    0.000000] bootconsole [ns16550a0] enabled
  console: [    0.000000] User-defined physical RAM map:
  console: [    0.000000]  memory: 10000000 @ 00000000 (usable)
  console: [    0.000000] Initrd not found or empty - disabling initrd
  console: [    0.000000] MIPS CPS SMP unable to proceed without a CM
  console: [    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 
32 bytes.
  console: [    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, 
linesize 32 bytes
  console: [    0.000000] This processor doesn't support highmem. -262144k 
highmem ignored
  console: [    0.000000] Zone ranges:
  console: [    0.000000]   Normal   [mem 0x0000000000000000-0x000000000fffffff]
  console: [    0.000000]   HighMem  empty
  console: [    0.000000] Movable zone start for each node
  console: [    0.000000] Early memory node ranges
  console: [    0.000000]   node   0: [mem 
0x0000000000000000-0x000000000fffffff]
  console: [    0.000000] Initmem setup node 0 [mem 
0x0000000000000000-0x000000000fffffff]
  console: [    0.000000] random: get_random_bytes called from 
start_kernel+0x60/0x2f0 with crng_init=0
  console: [    0.000000] percpu: Embedded 16 pages/cpu @(ptrval) s36620 r8192 
d20724 u65536
  console: [    0.000000] Built 1 zonelists, mobility grouping on.  Total 
pages: 64960
  console: [    0.000000] Kernel command line: printk.time=0 mem=256m@@0x0 
console=ttyS0 earlycon

Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
Message-Id: <address@hidden>
Acked-by: Aleksandar Markovic <address@hidden>
Signed-off-by: Eduardo Habkost <address@hidden>


  Commit: 89368673493f6d35beb56f76d2dd5ae8a88d5c3f
      
https://github.com/qemu/qemu/commit/89368673493f6d35beb56f76d2dd5ae8a88d5c3f
  Author: Philippe Mathieu-Daudé <address@hidden>
  Date:   2019-06-11 (Tue, 11 Jun 2019)

  Changed paths:
    M tests/acceptance/boot_linux_console.py

  Log Message:
  -----------
  BootLinuxConsoleTest: Run kerneltests BusyBox on Malta

This tests boots a Linux kernel on a Malta machine up to a
busybox shell on the serial console. Few commands are executed
before halting the machine (via reboot).

We use the initrd cpio image from the kerneltests project:
https://kerneltests.org/

If MIPS is a target being built, "make check-acceptance" will
automatically include this test by the use of the "arch:mips" tags.

Alternatively, this test can be run using:

  $ avocado --show=console run -t arch:mips 
tests/acceptance/boot_linux_console.py
  [...]
  console: Boot successful.
  [...]
  console: / # uname -a
  console: Linux buildroot 4.5.0-2-4kc-malta #1 Debian 4.5.5-1 (2016-05-29) 
mips GNU/Linux
  console: / # reboot
  console: / # reboot: Restarting system

Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
Message-Id: <address@hidden>
Acked-by: Aleksandar Markovic <address@hidden>
Signed-off-by: Eduardo Habkost <address@hidden>


  Commit: 6d7a134da4afebe8551a69329478415cfb4cbe91
      
https://github.com/qemu/qemu/commit/6d7a134da4afebe8551a69329478415cfb4cbe91
  Author: Eduardo Habkost <address@hidden>
  Date:   2019-06-11 (Tue, 11 Jun 2019)

  Changed paths:
    M .travis.yml

  Log Message:
  -----------
  travis: Make check-acceptance job more verbose

It will help us debug issues when tests fail.

Signed-off-by: Eduardo Habkost <address@hidden>


  Commit: d3e3413bd6a8c0287dbad8942e208d562fd8e29e
      
https://github.com/qemu/qemu/commit/d3e3413bd6a8c0287dbad8942e208d562fd8e29e
  Author: Peter Maydell <address@hidden>
  Date:   2019-06-12 (Wed, 12 Jun 2019)

  Changed paths:
    M .travis.yml
    M tests/acceptance/boot_linux_console.py

  Log Message:
  -----------
  Merge remote-tracking branch 'remotes/ehabkost/tags/python-next-pull-request' 
into staging

Python queue, 2019-06-11

* New boot_linux_console test cases (Philippe Mathieu-Daudé)
* Make check-acceptance Travis job more verbose (Eduardo Habkost)

# gpg: Signature made Tue 11 Jun 2019 18:13:35 BST
# gpg:                using RSA key 2807936F984DC5A6
# gpg: Good signature from "Eduardo Habkost <address@hidden>" [full]
# Primary key fingerprint: 5A32 2FD5 ABC4 D3DB ACCF  D1AA 2807 936F 984D C5A6

* remotes/ehabkost/tags/python-next-pull-request:
  travis: Make check-acceptance job more verbose
  BootLinuxConsoleTest: Run kerneltests BusyBox on Malta
  BootLinuxConsoleTest: Test nanoMIPS kernels on the I7200 CPU
  BootLinuxConsoleTest: Test the SmartFusion2 board
  BootLinuxConsoleTest: Do not log empty lines
  tests/boot_linux_console: Let extract_from_deb handle various compressions

Signed-off-by: Peter Maydell <address@hidden>


Compare: https://github.com/qemu/qemu/compare/219dca61ebf4...d3e3413bd6a8



reply via email to

[Prev in Thread] Current Thread [Next in Thread]