iotests: define group in each iotest

We are going to drop group file. Define group in tests as a preparatory
step.

The patch is generated by

    cd tests/qemu-iotests

    grep '^[0-9]\{3\} ' group | while read line; do
        file=$(awk '{print $1}' <<< "$line");
        groups=$(sed -e 's/^... //' <<< "$line");
        awk "NR==2{print \"# group: $groups\"}1" $file > tmp;
        cat tmp > $file;
    done

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20210116134424.82867-7-vsementsov@virtuozzo.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
Vladimir Sementsov-Ogievskiy 2021-01-16 16:44:19 +03:00 committed by Eric Blake
parent 92a476e959
commit 9dd003a998
291 changed files with 291 additions and 0 deletions

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw auto quick
#
# Test simple read/write using plain bdrv_pread/bdrv_pwrite
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw auto quick
#
# Test simple read/write using plain bdrv_pread/bdrv_pwrite
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw auto
#
# Test simple read/write using bdrv_aio_readv/bdrv_aio_writev
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw auto quick
#
# Make sure we can't read and write outside of the image size.
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: img auto quick
#
# Make sure qemu-img can create 5TB images
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: snapshot auto
#
# Check for one possible case of qcow2 refcount corruption.
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw auto quick
#
# Test simple asynchronous read/write operations.
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw auto quick
#
# Nolan I qcow2 corruption - incorrectly reports free clusters
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw auto quick
#
# Nolan II qcow2 corruption - wrong used cluster
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw auto quick
#
# Test for AIO allocation on the same cluster
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: auto quick
#
# Make sure we can open read-only images
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw auto
#
# qcow2 pattern test, empty and compressed image - 4k cluster patterns
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw
#
# qcow2 pattern test, complex patterns including compression and snapshots
# Using patterns for 4k cluster size.

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw snapshot
#
# Combined test to grow the refcount table and test snapshots.
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw backing auto quick
#
# Simple backing file reads
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw backing auto quick
#
# Merge backing file into test image when converting the image
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw backing auto quick
#
# When using a backing file for the output image in qemu-img convert,
# the backing file clusters must not copied. The data must still be

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw backing auto quick
#
# Commit changes to backing file
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: io auto quick
#
# Test handling of invalid patterns arguments to qemu-io
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw snapshot auto
#
# Test bdrv_load/save_vmstate using the usual patterns
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw
#
# qcow2 pattern test with various cluster sizes
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw backing auto quick
#
# Rebasing COW images
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw auto quick
#
# Resizing images
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw blkdbg
#
# qcow2 error path testing
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw auto quick
#
# Test that sub-cluster allocating writes zero the rest of the cluster
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw backing quick
#
# Test that backing files can be smaller than the image
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw auto quick
#
# qcow2 internal snapshots/VM state tests
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env python3
# group: rw auto backing
#
# Tests for image streaming.
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw auto quick
#
# Test that all qcow2 header extensions survive a header rewrite
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw auto quick
#
# Test that AIO requests are drained before an image is closed. This used
# to segfault because the request coroutine kept running even after the

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw auto quick
#
# Test aligned and misaligned write zeroes operations.
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw auto backing quick
#
# Test bdrv_pwrite_zeroes with backing files (see also 154)
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw auto quick
#
# Let a few AIO requests run in parallel and have them access different L2
# tables so that the cache has a chance to get used up.

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw auto quick
#
# Test qcow2 feature bits
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw auto backing quick
#
# Test COW from backing files
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw auto backing quick
#
# Test COW from backing files with AIO
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw auto quick
#
# Test qcow2 lazy refcounts
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env python3
# group: rw auto
#
# Tests for image block commit.
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env python3
# group: rw auto backing
#
# Tests for image mirroring.
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw auto quick
#
# Test qemu-img operation on zero size images
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw auto backing
#
# Test that qemu-img info --backing-chain detects infinite loops
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env python3
# group: rw
#
# Tests growing a large refcount table.
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env python3
# group: rw quick
#
# Tests for fdsets and getfd.
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw auto aio quick
#
# Test concurrent cluster allocations
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw auto quick
#
# Regression test for commit b7ab0fea (which was a corruption fix,
# despite the commit message claiming otherwise)

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: img auto quick
##
## qemu-img compare test
##

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw auto
#
# Check qemu-img option parsing
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw auto backing quick
#
# Test qemu-img rebase with zero clusters
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw
#
# Test command line configuration of block devices and driver-specific options
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw auto backing quick
#
# Test bdrv_pread/bdrv_pwrite using BDRV_O_SNAPSHOT
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw auto quick
#
# Test qemu-img convert when image length is not a multiple of cluster size
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw auto quick
#
# Test huge qcow2 images
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env python3
# group: rw
#
# Tests for drive-backup and blockdev-backup
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env python3
# group: rw backing
#
# Tests for drive-backup
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env python3
# group: rw
#
# Tests for internal snapshot.
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw quick
#
# Test export internal snapshot by qemu-nbd, convert it by qemu-img.
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw quick
#
# Test case for vmdk
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw auto quick
#
# Test case for image corruption (overlapping data structures) in qcow2
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw auto
#
# Test case for image option amendment in qcow2.
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw auto quick
#
# Test case for snapshotting images with unallocated zero clusters in
# qcow2

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw auto quick
#
# test of qemu-img convert -n - convert without creation
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw quick
#
# Test VHDX read/write from a sample image created with Hyper-V
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env python3
# group: rw quick
#
# Test for additional information emitted by qemu-img info on qcow2
# images

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw auto quick
#
# Test case for preallocated zero clusters in qcow2
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw quick
#
# Test case for loading a saved VM state from a qcow2 image
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw auto quick
#
# Test case for deleting a backing file
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw quick
#
# Test VHDX log replay from an image with a journal that needs to be
# replayed

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw auto quick
#
# Test case for the QMP blkdebug and blkverify interfaces
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw auto quick
#
# Test case for nested image formats
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw auto quick
#
# Test count_contiguous_clusters in qcow2
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw auto quick
##
## qemu-img compare test (qcow2 only ones)
##

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw quick
#
# cloop format input validation tests
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: io
#
# parallels format input validation tests
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw quick
#
# Test concurrent pread/pwrite
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw quick
#
# bochs format input validation tests
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw auto
#
# Test qcow2 preallocation with different cluster_sizes
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw auto
#
# qcow2 format input validation tests
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw quick
#
# Test Quorum block driver
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw quick
#
# Test qemu-img command line parsing
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw
#
# Test NBD client unexpected disconnect
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: img quick
#
# Test case for VDI header corruption; image too large, and too many blocks.
# Also simple test for creating dynamic and static VDI images.

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw
#
# Live snapshot tests
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw auto quick
#
# Test qemu-img progress output
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw quick
#
# Test unsupported blockdev-add cases
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw quick
#
# vpc (VHD) format input validation tests
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw auto quick
#
# Test case for support of JSON filenames
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw auto quick
#
# Test for discarding compressed clusters on qcow2 images
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw migration quick
#
# Live migration test
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw quick
#
# qcow1 format input validation tests
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env python3
# group: throttle
#
# Tests for IO throttling
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw quick
#
# Test case for drive-mirror to NBD
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw quick
#
# Test for commit of larger active layer
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env python3
# group: rw quick
#
# Test that snapshots move the throttling configuration to the active
# layer

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw auto backing
#
# Commit changes into backing chains and empty the top image if the
# backing image is not explicitly specified

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw auto backing quick
#
# Test qcow2's bdrv_make_empty for images without internal snapshots
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw auto quick
#
# Test valid filenames for blkdebug and blkverify representatively for
# other protocols (such as NBD) when queried

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw quick
#
# Test short file I/O
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw quick
#
# Test case for qemu-io -c map and qemu-img map
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw auto quick
#
# Test case for qcow2 metadata cache size specification
#

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# group: rw auto
#
# Test image creation with aligned and unaligned sizes
#

Some files were not shown because too many files have changed in this diff Show more