提交 23e9aa72 编写于 作者: J John Ferlan

tests: Add luks creation examples to storagevolxml2argvtest

Add the storagevolxml2xmltest "luks" and "luks-cipher" tests
to the storagevolxml2argvtest.
Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
ACKed-by: NMichal Privoznik <mprivozn@redhat.com>
上级 b056e09b
qemu-img create -f luks \
--object secret,id=LuksDemo.img_encrypt0,file=/path/to/secretFile \
-o key-secret=LuksDemo.img_encrypt0,cipher-alg=serpent-256,cipher-mode=cbc,\
hash-alg=sha256,ivgen-alg=plain64,ivgen-hash-alg=sha256 \
/var/lib/libvirt/images/LuksDemo.img 5242880K
qemu-img create -f luks \
--object secret,id=LuksDemo.img_encrypt0,file=/path/to/secretFile \
-o key-secret=LuksDemo.img_encrypt0 \
/var/lib/libvirt/images/LuksDemo.img 5242880K
...@@ -232,6 +232,13 @@ mymain(void) ...@@ -232,6 +232,13 @@ mymain(void)
"pool-dir", "vol-file-iso", "pool-dir", "vol-file-iso",
"iso-input", 0); "iso-input", 0);
DO_TEST("pool-dir", "vol-luks",
NULL, NULL,
"luks", 0);
DO_TEST("pool-dir", "vol-luks-cipher",
NULL, NULL,
"luks-cipher", 0);
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE; return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册