mbox series

[v2,0/5] Convert the MIPS replay tests to the functional framework

Message ID 20250128152839.184599-1-thuth@redhat.com (mailing list archive)
Headers show
Series Convert the MIPS replay tests to the functional framework | expand

Message

Thomas Huth Jan. 28, 2025, 3:28 p.m. UTC
tests/avocado/replay_kernel.py is a rather big file with a lot of
Avocado-based tests in it. But in the long run, we rather want to
get away from Avocado, so we eventually have to convert these tests
to the functional framework. For this, we have to separate the tests
by target architecture, since the functional framework cannot detect
this on the fly like Avocado (which e.g. looks at the tag annotations 
in the comments). Let's start the convertion by handling the
MIPS-related tests first (the other replay_kernel tests will follow
later).

v2:
- Put the tests in new files
- Rename the environment variable for enabling slow tests

Thomas Huth (5):
  tests/functional: Add a decorator for skipping long running tests
  tests/functional: Add the ReplayKernelBase class
  tests/functional/test_mipsel_malta: Convert the mipsel replay tests
  tests/functional/test_mips64el_malta: Convert the mips64el replay
    tests
  tests/functional/test_mips_malta: Convert the mips big endian replay
    tests

 MAINTAINERS                                   |   1 +
 docs/devel/testing/functional.rst             |   8 +
 tests/avocado/replay_kernel.py                | 165 ------------------
 tests/functional/meson.build                  |   4 +
 tests/functional/qemu_test/__init__.py        |   2 +-
 tests/functional/qemu_test/decorators.py      |  14 ++
 tests/functional/replay_kernel.py             |  84 +++++++++
 .../functional/test_aarch64_sbsaref_alpine.py |   5 +-
 .../test_aarch64_sbsaref_freebsd.py           |   9 +-
 tests/functional/test_arm_quanta_gsj.py       |   6 +-
 tests/functional/test_mips64el_replay.py      |  60 +++++++
 tests/functional/test_mips_replay.py          |  55 ++++++
 tests/functional/test_mipsel_replay.py        |  54 ++++++
 13 files changed, 289 insertions(+), 178 deletions(-)
 create mode 100644 tests/functional/replay_kernel.py
 create mode 100755 tests/functional/test_mips64el_replay.py
 create mode 100755 tests/functional/test_mips_replay.py
 create mode 100644 tests/functional/test_mipsel_replay.py