diff options
author | Max Reitz <mreitz@redhat.com> | 2014-11-11 10:23:45 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2014-12-10 10:31:11 +0100 |
commit | f48a33b608b6d98cbe2eaba27cbae925fc221284 (patch) | |
tree | b82511e9fed6d25f888ea83f41ca1ba052bc1379 /tests/qemu-iotests/099 | |
parent | 8779441b1b0e03bd3e5213dee447ab0c955e374b (diff) | |
download | qemu-f48a33b608b6d98cbe2eaba27cbae925fc221284.tar.gz qemu-f48a33b608b6d98cbe2eaba27cbae925fc221284.tar.bz2 qemu-f48a33b608b6d98cbe2eaba27cbae925fc221284.zip |
iotests: Plain blkdebug filename generation
Add one test whether blkdebug is able to generate a plain filename if
given a configuration file and a file to be tested only; and add another
test whether blkdebug is able to do the same without being given a
configuration file.
Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 1415697825-26678-3-git-send-email-mreitz@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/099')
-rwxr-xr-x | tests/qemu-iotests/099 | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/tests/qemu-iotests/099 b/tests/qemu-iotests/099 index ffc7ea795a..132aa0b228 100755 --- a/tests/qemu-iotests/099 +++ b/tests/qemu-iotests/099 @@ -107,8 +107,21 @@ echo # generate a JSON object here as well test_qemu "file.driver=blkverify,file.raw.filename=$TEST_IMG.compare,file.test.file.driver=blkdebug,file.test.file.image.filename=$TEST_IMG,file.test.file.inject-error.0.event=l1_update" +echo +echo '=== Testing plain filename for blkdebug ===' +echo + +touch "$TEST_DIR/blkdebug.conf" +test_qemu "file.driver=blkdebug,file.config=$TEST_DIR/blkdebug.conf,file.image.filename=$TEST_IMG" + +echo +echo '=== Testing plain filename for blkdebug without configuration file ===' +echo + +test_qemu "file.driver=blkdebug,file.image.filename=$TEST_IMG" + -rm -f "$TEST_IMG.compare" +rm -f "$TEST_IMG.compare" "$TEST_DIR/blkdebug.conf" # success, all done echo "*** done" |