docs/system: Fix the information on how to run certain functional tests
PATCH 1/1 docs/system: Fix the information on how to run certain functional tests
The tests have been converted to the functional framework, so we should not talk about Avocado here anymore.
--- docs/system/arm/bananapi_m2u.rst | 5 ++--- docs/system/arm/orangepi.rst | 6 +++--- docs/system/devices/igb.rst | 4 ++-- 3 files changed, 7 insertions(+), 8 deletions(-)
docs/system/arm/bananapi_m2u.rst +2 -3
@@ -135,6 +135,5 @@ provide the following command: .. code-block:: bash $ cd qemu-build-dir - $ AVOCADO_ALLOW_LARGE_STORAGE=yes tests/venv/bin/avocado \ - --verbose --show=app,console run -t machine:bpim2u \ - ../tests/avocado/boot_linux_console.py + $ QEMU_TEST_ALLOW_LARGE_STORAGE=1 \ + meson test --suite thorough func-arm-arm_bpim2u
docs/system/arm/orangepi.rst +3 -3
@@ -257,9 +257,9 @@ Orange Pi PC integration tests The Orange Pi PC machine has several integration tests included. To run the whole set of tests, build QEMU from source and simply -provide the following command: +provide the following command from the build directory: .. code-block:: bash - $ AVOCADO_ALLOW_LARGE_STORAGE=yes avocado --show=app,console run \ - -t machine:orangepi-pc tests/avocado/boot_linux_console.py + $ QEMU_TEST_ALLOW_LARGE_STORAGE=1 \ + meson test --suite thorough func-arm-arm_orangepi
docs/system/devices/igb.rst +2 -2
@@ -57,11 +57,11 @@ directory: meson test qtest-x86_64/qos-test ethtool can test register accesses, interrupts, etc. It is automated as an -Avocado test and can be ran with the following command: +functional test and can be ran with the following command: .. code:: shell - make check-avocado AVOCADO_TESTS=tests/avocado/netdev-ethtool.py + meson test --suite thorough func-x86_64-netdev_ethtool References ==========
Signature · 1 line
2.48.1
Hi Thomas,
Quoted 35 lines · Thomas Huth
The tests have been converted to the functional framework, so we should not talk about Avocado here anymore.
Fixes f7d6b772200 ("tests/functional: Convert BananaPi tests to thefunctional framework")
Fixes 380f7268b7b ("tests/functional: Convert the OrangePi tests to thefunctional framework")
Fixes 4c0a2df81c9 ("tests/functional: Convert some tests that downloadfiles via
fetch_asset()")Signed-off-by Thomas Huth <[email protected]>--- docs/system/arm/bananapi_m2u.rst | 5 ++--- docs/system/arm/orangepi.rst | 6 +++--- docs/system/devices/igb.rst | 4 ++-- 3 files changed, 7 insertions(+), 8 deletions(-)docs/system/arm/bananapi_m2u.rst +2
-3@@ -135,6 +135,5 @@ provide the following command: .. code-block:: bash $ cd qemu-build-dir - $ AVOCADO_ALLOW_LARGE_STORAGE=yes tests/venv/bin/avocado \ - --verbose --show=app,console run -t machine:bpim2u \ - ../tests/avocado/boot_linux_console.py + $ QEMU_TEST_ALLOW_LARGE_STORAGE=1 \ + meson test --suite thorough func-arm-arm_bpim2udocs/system/arm/orangepi.rst +0
-0
docs/system/arm/orangepi.rst Orange Pi PC integration tests · line 257
Quoted 1 line
docs/system/arm/orangepi.rst +0
-0@@ -257,9 +257,9 @@ Orange Pi PC integration tests
Perhaps for consistency, we can also rename to 'functional tests' here.
docs/system/arm/orangepi.rst Orange Pi PC integration tests · line 261
Quoted 3 lines
docs/system/arm/orangepi.rst +0
-0The Orange Pi PC machine has several integration tests included.
And same on this line.
docs/system/arm/orangepi.rst Orange Pi PC integration tests · line 265
Quoted 11 lines
docs/system/arm/orangepi.rst +3
-3To run the whole set of tests, build QEMU from source and simply -provide the following command: +provide the following command from the build directory: .. code-block:: bash - $ AVOCADO_ALLOW_LARGE_STORAGE=yes avocado --show=app,console run \ - -t machine:orangepi-pc tests/avocado/boot_linux_console.py + $ QEMU_TEST_ALLOW_LARGE_STORAGE=1 \ + meson test --suite thorough func-arm-arm_orangepi
I've tried to run on my Ubuntu 24.04.1 LTS based system using this exact same command, but got this error:
$ QEMU_TEST_ALLOW_LARGE_STORAGE=1 meson test --suite thorough func-arm-arm_orangepi
ERROR: Build data file '/home/user/qemu/build/meson-private/build.dat' references functions or classes that don't exist. This probably means that it was generated with an old version of meson. Consider reconfiguring the directory with "meson setup --reconfigure".
The meson version I have installed via apt-get is 1.3.2-1ubuntu1. Only when running using the 'meson' command from the pyvenv, it runs OK:
$ QEMU_TEST_ALLOW_LARGE_STORAGE=1 ./pyvenv/bin/meson test --suite thorough
func-arm-arm_orangepi
ninja: Entering directory `/home/user/qemu/build'
[1/6] Generating qemu-version.h with a custom command (wrapped by meson to
capture output)
1/1 qemu:func-thorough+func-arm-thorough+thorough / func-arm-arm_orangepi
OK 165.81s 5 subtests passedQuoted 22 lines
docs/system/devices/igb.rst +2
-3@@ -57,11 +57,11 @@ directory: meson test qtest-x86_64/qos-test ethtool can test register accesses, interrupts, etc. It is automated as an -Avocado test and can be ran with the following command: +functional test and can be ran with the following command: .. code:: shell - make check-avocado AVOCADO_TESTS=tests/avocado/netdev-ethtool.py + meson test --suite thorough func-x86_64-netdev_ethtool References ========== --2.48.1
Signature · 1 line
Niek Linnenbank
Hi!
Quoted 6 lines · Niek Linnenbank
Hi Thomas,
On Tue, Mar 11, 2025 at 5:08 PM Thomas Huth <[email protected] <mailto:[email protected]>> wrote:
The tests have been converted to the functional framework, so we should not talk about Avocado here anymore.
...
Quoted 7 lines
diff --git a/docs/system/arm/orangepi.rst b/docs/system/arm/orangepi.rst index db87e81fec4..8b9448ca7b0 100644 --- a/docs/system/arm/orangepi.rst +++ b/docs/system/arm/orangepi.rst @@ -257,9 +257,9 @@ Orange Pi PC integration testsPerhaps for consistency, we can also rename to 'functional tests' here.
Agreed, we don't use the term "integration tests" for this anymore.
Quoted 18 lines
The Orange Pi PC machine has several integration tests included.
And same on this line.
To run the whole set of tests, build QEMU from source and simply
-provide the following command:
+provide the following command from the build directory:.. code-block:: bash
- $ AVOCADO_ALLOW_LARGE_STORAGE=yes avocado --show=app,console run \
- -t machine:orangepi-pctests/avocado/boot_linux_console.py+ $ QEMU_TEST_ALLOW_LARGE_STORAGE=1 \
+ meson test --suite thorough func-arm-arm_orangepiI've tried to run on my Ubuntu 24.04.1 LTS based system using this exact same command, but got this error:
Quoted 7 lines
$ QEMU_TEST_ALLOW_LARGE_STORAGE=1 meson test --suite thorough func-arm- arm_orangepiERROR: Build data file '
/home/user/qemu/build/meson-private/build.dat' references functions or classes that don't exist. This probably means that it was generated with an old version of meson. Consider reconfiguring the directory with "meson setup --reconfigure".The meson version I have installed via apt-get is 1.3.2-1ubuntu1. Only when running using the 'meson' command from the pyvenv, it runs OK:
$ QEMU_TEST_ALLOW_LARGE_STORAGE=1 ./pyvenv/bin/meson test --suite thorough func-arm-arm_orangepi
Oh, you're right! Thanks for catching it!
I guess I still had a "export PYTHONPATH=$HOME/qemu/python" in my environment, so I did not notice. Would you like to send a patch, or want me to do it?
Thomas
Niek Linnenbank
Reviewed-byHi Thomas,
Quoted 57 lines · Thomas Huth
Hi!
Quoted 7 lines · Niek Linnenbank
Hi Thomas,
On Tue, Mar 11, 2025 at 5:08 PM Thomas Huth <[email protected] <mailto:[email protected]>> wrote:
The tests have been converted to the functional framework, so we should not talk about Avocado here anymore.
...
Quoted 1 line
diff --git a/docs/system/arm/orangepi.rst
b/docs/system/arm/orangepi.rstQuoted 6 lines
index db87e81fec4..8b9448ca7b0 100644 --- a/docs/system/arm/orangepi.rst +++ b/docs/system/arm/orangepi.rst @@ -257,9 +257,9 @@ Orange Pi PC integration testsPerhaps for consistency, we can also rename to 'functional tests' here.
Agreed, we don't use the term "integration tests" for this anymore.
Quoted 16 lines
The Orange Pi PC machine has several integration tests included.
And same on this line.
To run the whole set of tests, build QEMU from source and simply
-provide the following command:
+provide the following command from the build directory:.. code-block:: bash
- $ AVOCADO_ALLOW_LARGE_STORAGE=yes avocado --show=app,console run \
- -t machine:orangepi-pctests/avocado/boot_linux_console.py
+ $ QEMU_TEST_ALLOW_LARGE_STORAGE=1 \
+ meson test --suite thorough func-arm-arm_orangepiQuoted 8 lines
I've tried to run on my Ubuntu 24.04.1 LTS based system using this exact same command, but got this error:
$ QEMU_TEST_ALLOW_LARGE_STORAGE=1 meson test --suite thorough func-arm- arm_orangepiERROR: Build data file '
/home/user/qemu/build/meson-private/build.dat' references functions or classes that don't exist. This probably meansthat
Quoted 1 line
it was generated with an old version of meson. Consider reconfiguring
the
Quoted 3 lines
directory with "meson setup --reconfigure".
The meson version I have installed via apt-get is 1.3.2-1ubuntu1. Only
when
Quoted 3 lines
running using the 'meson' command from the pyvenv, it runs OK:
$ QEMU_TEST_ALLOW_LARGE_STORAGE=1 ./pyvenv/bin/meson test --suitethorough
Quoted 9 lines
Quoted 1 line
func-arm-arm_orangepi
Oh, you're right! Thanks for catching it!
I guess I still had a "export PYTHONPATH=$HOME/qemu/python" in my environment, so I did not notice. Would you like to send a patch, or want me
to do it?
Yes please feel free to go ahead with the patch. With the above minor remarks resolved, it looks fine to me:
Regards,
Niek
Quoted 4 lines
Thomas
Signature · 1 line
Niek Linnenbank