[PATCH v4 0/7] tests/functional: Convert few MIPS avocado tests

Philippe Mathieu-Daudé posted 7 patches 2 months, 4 weeks ago
MAINTAINERS                                 |   6 +-
tests/avocado/boot_linux_console.py         | 217 --------------------
tests/avocado/machine_mips_fuloong2e.py     |  42 ----
tests/avocado/machine_mips_malta.py         | 162 ---------------
tests/functional/meson.build                |  13 ++
tests/functional/qemu_test/utils.py         |  20 ++
tests/functional/test_mips64el_fuloong2e.py |  67 ++++++
tests/functional/test_mips64el_malta.py     | 190 +++++++++++++++++
tests/functional/test_mips_malta.py         |  84 ++++++++
tests/functional/test_mipsel_malta.py       |  98 +++++++++
10 files changed, 476 insertions(+), 423 deletions(-)
delete mode 100644 tests/avocado/machine_mips_fuloong2e.py
delete mode 100644 tests/avocado/machine_mips_malta.py
create mode 100755 tests/functional/test_mips64el_fuloong2e.py
create mode 100755 tests/functional/test_mips64el_malta.py
create mode 100755 tests/functional/test_mips_malta.py
create mode 100755 tests/functional/test_mipsel_malta.py
[PATCH v4 0/7] tests/functional: Convert few MIPS avocado tests
Posted by Philippe Mathieu-Daudé 2 months, 4 weeks ago
Since v3:
- Use linux_kernel_wait_for_pattern (Thomas)

$ RESCUE_YL_PATH=/path/to/fuloong2e/rescue-yl \
  QEMU_TEST_ALLOW_UNTRUSTED_CODE=1 \
  QEMU_TEST_FLAKY_TESTS=1 \
  QEMU_TEST_TIMEOUT_EXPECTED=1 \
    make check-functional V=1
▶  2/17 test_empty_cpu_model.EmptyCPUModel.test                                                      OK
 2/17 qemu:func-quick+func-mips64el / func-mips64el-empty_cpu_model                                  OK  0.14s   1 subtests passed
▶  8/17 test_empty_cpu_model.EmptyCPUModel.test                                                      OK
 8/17 qemu:func-quick+func-mips / func-mips-empty_cpu_model                                          OK  0.13s   1 subtests passed
▶  4/17 test_version.Version.test_qmp_human_info_version                                             OK
▶  5/17 test_empty_cpu_model.EmptyCPUModel.test                                                      OK
▶  7/17 test_version.Version.test_qmp_human_info_version                                             OK
 4/17 qemu:func-quick+func-mips64el / func-mips64el-version                                          OK  0.17s   1 subtests passed
 5/17 qemu:func-quick+func-mipsel / func-mipsel-empty_cpu_model                                      OK  0.17s   1 subtests passed
 7/17 qemu:func-quick+func-mipsel / func-mipsel-version                                              OK  0.18s   1 subtests passed
▶ 10/17 test_version.Version.test_qmp_human_info_version                                             OK
10/17 qemu:func-quick+func-mips / func-mips-version                                                  OK  0.21s   1 subtests passed
▶  1/17 test_mips64el_fuloong2e.MipsFuloong2e.test_linux_kernel_2_6_27_isa_serial                    OK
▶  3/17 test_info_usernet.InfoUsernet.test_hostfwd                                                   OK
▶ 11/17 test_empty_cpu_model.EmptyCPUModel.test                                                      OK
 3/17 qemu:func-quick+func-mips64el / func-mips64el-info_usernet                                     OK  0.29s   1 subtests passed
▶  6/17 test_info_usernet.InfoUsernet.test_hostfwd                                                   OK
11/17 qemu:func-quick+func-mips64 / func-mips64-empty_cpu_model                                      OK  0.16s   1 subtests passed
 6/17 qemu:func-quick+func-mipsel / func-mipsel-info_usernet                                         OK  0.30s   1 subtests passed
▶  9/17 test_info_usernet.InfoUsernet.test_hostfwd                                                   OK
 9/17 qemu:func-quick+func-mips / func-mips-info_usernet                                             OK  0.30s   1 subtests passed
▶ 13/17 test_version.Version.test_qmp_human_info_version                                             OK
13/17 qemu:func-quick+func-mips64 / func-mips64-version                                              OK  0.19s   1 subtests passed
▶ 12/17 test_info_usernet.InfoUsernet.test_hostfwd                                                   OK
12/17 qemu:func-quick+func-mips64 / func-mips64-info_usernet                                         OK  0.24s   1 subtests passed
▶ 17/17 test_mips_malta.MaltaMachineConsole.test_mips_malta                                          OK
▶ 16/17 test_mipsel_malta.MaltaMachineConsole.test_mips_malta32el_nanomips_16k_up                    OK
▶  1/17 test_mips64el_fuloong2e.MipsFuloong2e.test_linux_kernel_3_16                                 OK
 1/17 qemu:func-quick+func-mips64el / func-mips64el-mips64el_fuloong2e                               OK  3.10s   2 subtests passed
▶ 16/17 test_mipsel_malta.MaltaMachineConsole.test_mips_malta32el_nanomips_4k                        OK
▶ 14/17 test_mips64el_loongson3v.MipsLoongson3v.test_pmon_serial_console                             OK
14/17 qemu:func-thorough+func-mips64el-thorough+thorough / func-mips64el-mips64el_loongson3v         OK  4.71s   1 subtests passed
▶ 16/17 test_mipsel_malta.MaltaMachineConsole.test_mips_malta32el_nanomips_64k_dbg                   OK
▶ 16/17 test_mipsel_malta.MaltaMachineYAMON.test_mipsel_malta_yamon                                  OK
16/17 qemu:func-thorough+func-mipsel-thorough+thorough / func-mipsel-mipsel_malta                    OK  8.64s   4 subtests passed
▶ 15/17 test_mips64el_malta.MaltaMachineConsole.test_mips64el_malta                                  OK
▶ 17/17 test_mips_malta.MaltaMachineConsole.test_mips_malta_cpio                                     OK
17/17 qemu:func-thorough+func-mips-thorough+thorough / func-mips-mips_malta                          OK  14.06s   2 subtests passed
▶ 15/17 test_mips64el_malta.MaltaMachineConsole.test_mips64el_malta_5KEc_cpio                        OK
▶ 15/17 test_mips64el_malta.MaltaMachineFramebuffer.test_mips_malta_i6400_framebuffer_logo_1core     OK
▶ 15/17 test_mips64el_malta.MaltaMachineFramebuffer.test_mips_malta_i6400_framebuffer_logo_7cores    OK
▶ 15/17 test_mips64el_malta.MaltaMachineFramebuffer.test_mips_malta_i6400_framebuffer_logo_8cores    OK
▶ 15/17 test_mipsel_malta.MaltaMachineYAMON.test_mipsel_malta_yamon                                  OK
15/17 qemu:func-thorough+func-mips64el-thorough+thorough / func-mips64el-mips64el_malta              OK  56.88s   6 subtests passed

Ok:                 17
Expected Fail:      0
Fail:               0
Unexpected Pass:    0
Skipped:            0
Timeout:            0

Based-on: <20240826221058.75126-2-philmd@linaro.org>

Philippe Mathieu-Daudé (7):
  tests/functional: Convert mips64el Fuloong2e avocado test (1/2)
  tests/functional: Convert mips64el Fuloong2e avocado test (2/2)
  tests/functional: Convert mips64el I6400 Malta avocado tests
  tests/functional: Convert mips64el 5KEc Malta avocado tests
  tests/functional: Convert mips32el Malta YAMON avocado test
  tests/functional: Convert nanomips Malta avocado tests
  tests/functional: Convert mips32eb 4Kc Malta avocado tests

 MAINTAINERS                                 |   6 +-
 tests/avocado/boot_linux_console.py         | 217 --------------------
 tests/avocado/machine_mips_fuloong2e.py     |  42 ----
 tests/avocado/machine_mips_malta.py         | 162 ---------------
 tests/functional/meson.build                |  13 ++
 tests/functional/qemu_test/utils.py         |  20 ++
 tests/functional/test_mips64el_fuloong2e.py |  67 ++++++
 tests/functional/test_mips64el_malta.py     | 190 +++++++++++++++++
 tests/functional/test_mips_malta.py         |  84 ++++++++
 tests/functional/test_mipsel_malta.py       |  98 +++++++++
 10 files changed, 476 insertions(+), 423 deletions(-)
 delete mode 100644 tests/avocado/machine_mips_fuloong2e.py
 delete mode 100644 tests/avocado/machine_mips_malta.py
 create mode 100755 tests/functional/test_mips64el_fuloong2e.py
 create mode 100755 tests/functional/test_mips64el_malta.py
 create mode 100755 tests/functional/test_mips_malta.py
 create mode 100755 tests/functional/test_mipsel_malta.py

-- 
2.45.2