mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15:17 +00:00
Update of the apparmore regression tests
* tests/virt-aa-helper-test: test augmented with hostdev and sdl display checks
This commit is contained in:
parent
2df320609a
commit
ef962afb74
@ -204,7 +204,8 @@ if [ "$test_hostdev" = "yes" ]; then
|
|||||||
cat "$template_xml" | sed "s,###UUID###,$uuid,g" | sed "s,###DISK###,$disk1,g" | sed "s,</disk>,</disk><hostdev mode='subsystem' type='usb'><source><address bus='002' device='004'/></source></hostdev>,g" > "$test_xml"
|
cat "$template_xml" | sed "s,###UUID###,$uuid,g" | sed "s,###DISK###,$disk1,g" | sed "s,</disk>,</disk><hostdev mode='subsystem' type='usb'><source><address bus='002' device='004'/></source></hostdev>,g" > "$test_xml"
|
||||||
testme "0" "create hostdev (USB)" "-c -u $valid_uuid" "$test_xml"
|
testme "0" "create hostdev (USB)" "-c -u $valid_uuid" "$test_xml"
|
||||||
|
|
||||||
cat "$template_xml" | sed "s,###UUID###,$uuid,g" | sed "s,###DISK###,$disk1,g" | sed "s,</disk>,</disk><hostdev mode='subsystem' type='pci'><source><address bus='0x00' slot='0x00' function='0x0'/></source></hostdev>,g" > "$test_xml"
|
cat "$template_xml" | sed "s,###UUID###,$uuid,g" | sed "s,###DISK###,$disk1,g" | sed "s,</disk>,</disk><hostdev mode='subsystem' type='pci'><source><address bus='0x00' slot='0x19' function='0x0'/></source></hostdev>,g" > "$test_xml"
|
||||||
|
|
||||||
testme "0" "create hostdev (PCI)" "-c -u $valid_uuid" "$test_xml"
|
testme "0" "create hostdev (PCI)" "-c -u $valid_uuid" "$test_xml"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -265,6 +266,9 @@ testme "0" "initrd is /initrd/ramdisk" "-r -u $valid_uuid" "$test_xml"
|
|||||||
cat "$template_xml" | sed "s,###UUID###,$uuid,g" | sed "s,###DISK###,$disk1,g" | sed "s,</os>,<initrd>/initrd.img</initrd></os>,g" > "$test_xml"
|
cat "$template_xml" | sed "s,###UUID###,$uuid,g" | sed "s,###DISK###,$disk1,g" | sed "s,</os>,<initrd>/initrd.img</initrd></os>,g" > "$test_xml"
|
||||||
testme "0" "initrd is /initrd.img" "-r -u $valid_uuid" "$test_xml"
|
testme "0" "initrd is /initrd.img" "-r -u $valid_uuid" "$test_xml"
|
||||||
|
|
||||||
|
cat "$template_xml" | sed "s,###UUID###,$uuid,g" | sed "s,###DISK###,$disk1,g" | sed "s,<graphics*,<graphics type='sdl' display=':0.0' xauth='/home/myself/.Xauthority'/>,g" > "$test_xml"
|
||||||
|
testme "0" "sdl Xauthority" "-r -u $valid_uuid" "$test_xml"
|
||||||
|
|
||||||
testme "0" "help" "-h"
|
testme "0" "help" "-h"
|
||||||
|
|
||||||
echo "" >$output
|
echo "" >$output
|
||||||
|
Loading…
x
Reference in New Issue
Block a user