qemu/tests/acceptance
Max Reitz af1bb3fe7f tests/acceptance: Add virtiofs_submounts.py
This test invokes several shell scripts to create a random directory
tree full of submounts, and then check in the VM whether every submount
has its own ID and the structure looks as expected.

(Note that the test scripts must be non-executable, so Avocado will not
try to execute them as if they were tests on their own, too.)

Because at this commit's date it is unlikely that the Linux kernel on
the image provided by boot_linux.py supports submounts in virtio-fs, the
test will be cancelled if no custom Linux binary is provided through the
vmlinuz parameter.  (The on-image kernel can be used by providing an
empty string via vmlinuz=.)

So, invoking the test can be done as follows:
$ avocado run \
    tests/acceptance/virtiofs_submounts.py \
    -p vmlinuz=/path/to/linux/build/arch/x86/boot/bzImage

This test requires root privileges (through passwordless sudo -n),
because at this point, virtiofsd requires them.  (If you have a
timestamp_timeout period for sudoers (e.g. the default of 5 min), you
can provide this by executing something like "sudo true" before invoking
Avocado.)

Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-Id: <20201102161859.156603-8-mreitz@redhat.com>
Tested-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
2020-11-02 19:23:48 +00:00
..
avocado_qemu tests/acceptance: Add Test.fetch_asset(cancel_on_missing=True) 2020-09-10 10:46:57 +01:00
virtiofs_submounts.py.data tests/acceptance: Add virtiofs_submounts.py 2020-11-02 19:23:48 +00:00
boot_linux_console.py tests/acceptance: Allow running Orange Pi test using cached artifacts 2020-10-26 18:20:51 +01:00
boot_linux.py tests/acceptance/boot_linux: Accept SSH pubkey 2020-11-02 19:22:51 +00:00
cpu_queries.py
empty_cpu_model.py
linux_initrd.py
linux_ssh_mips_malta.py
machine_arm_canona1100.py
machine_arm_integratorcp.py
machine_arm_n8x0.py
machine_avr6.py
machine_m68k_nextcube.py tests/acceptance: Use .ppm extention for Portable PixMap files 2020-10-26 09:54:16 +01:00
machine_mips_malta.py
machine_rx_gdbsim.py tests/acceptance: disable machine_rx_gdbsim on GitLab 2020-10-09 17:27:55 +01:00
machine_sparc64_sun4u.py
machine_sparc_leon3.py
migration.py
pc_cpu_hotplug_props.py
ppc_prep_40p.py test/acceptance: Remove the CONTINUOUS_INTEGRATION tags 2020-10-26 09:54:16 +01:00
README.rst
replay_kernel.py tests/acceptance: Add MIPS record/replay tests 2020-10-17 13:59:40 +02:00
reverse_debugging.py tests/acceptance: pick a random gdb port for reverse debugging 2020-10-27 09:53:51 +00:00
version.py
virtio_check_params.py
virtio_version.py
virtiofs_submounts.py tests/acceptance: Add virtiofs_submounts.py 2020-11-02 19:23:48 +00:00
vnc.py
x86_cpu_model_versions.py

============================================
Acceptance tests using the Avocado Framework
============================================

This directory contains functional tests, also known as acceptance
level tests.  They're usually higher level, and may interact with
external resources and with various guest operating systems.

For more information, please refer to ``docs/devel/testing.rst``,
section "Acceptance tests using the Avocado Framework".