mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
tests: Add luks creation examples to storagevolxml2argvtest
Add the storagevolxml2xmltest "luks" and "luks-cipher" tests to the storagevolxml2argvtest. Signed-off-by: John Ferlan <jferlan@redhat.com> ACKed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
b056e09b28
commit
23e9aa7297
5
tests/storagevolxml2argvdata/luks-cipher.argv
Normal file
5
tests/storagevolxml2argvdata/luks-cipher.argv
Normal file
@ -0,0 +1,5 @@
|
||||
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
|
4
tests/storagevolxml2argvdata/luks.argv
Normal file
4
tests/storagevolxml2argvdata/luks.argv
Normal file
@ -0,0 +1,4 @@
|
||||
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)
|
||||
"pool-dir", "vol-file-iso",
|
||||
"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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user