From: Peter Krempa Date: Thu, 16 Jan 2020 15:02:15 +0000 (+0100) Subject: tests: virstorage: Add test data for json specified raw image with offset/size X-Git-Tag: v6.1.0-rc1~141 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=554ae62637fe4205b7f51a75e798be9223dfdc3d;p=thirdparty%2Flibvirt.git tests: virstorage: Add test data for json specified raw image with offset/size QEMU allows specifying the offset and size into a raw file to expose a sub-slice of the image to the guest with the raw driver. Libvirt currently doesn't support it but we can add test case for future reference. Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko --- diff --git a/tests/virstoragetest.c b/tests/virstoragetest.c index 6d62aab654..25d41f0de4 100644 --- a/tests/virstoragetest.c +++ b/tests/virstoragetest.c @@ -1593,6 +1593,15 @@ mymain(void) "\n" " \n" "\n"); + TEST_BACKING_PARSE_FULL("json:{ \"driver\": \"raw\"," + "\"offset\": 10752," + "\"size\": 4063232," + "\"file\": { \"driver\": \"file\"," + "\"filename\": \"/tmp/testfle\"" + "}" + "}", + "\n", 0); + #endif /* WITH_YAJL */ cleanup: