diff options
author | Jamie Strandboge <jamie@ubuntu.com> | 2010-04-06 22:59:31 +0200 |
---|---|---|
committer | Daniel Veillard <veillard@redhat.com> | 2010-04-06 23:01:24 +0200 |
commit | ef962afb7405d8e9ee7024f2061049cf7778fce3 (patch) | |
tree | 196cd3de1d4d9417c3ac99669ada9b4ae78bf301 /tests/virt-aa-helper-test | |
parent | 2df320609acc9d2dd79665b16381257bdaf92aef (diff) | |
download | libvirt-ef962afb7405d8e9ee7024f2061049cf7778fce3.tar.gz |
Update of the apparmore regression tests
* tests/virt-aa-helper-test: test augmented with hostdev and sdl display
checks
Diffstat (limited to 'tests/virt-aa-helper-test')
-rwxr-xr-x | tests/virt-aa-helper-test | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/virt-aa-helper-test b/tests/virt-aa-helper-test index a776f7f64b..3a2e74b1a7 100755 --- a/tests/virt-aa-helper-test +++ b/tests/virt-aa-helper-test @@ -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" 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" 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" 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" echo "" >$output |