1 Test Plan for libvirt Sandbox
2 =============================
4 For all tests, repeat with both KVM and LXC, eg
6 export LIBVIRT_DEFAULT_URI=qemu:///session
7 export LIBVIRT_DEFAULT_URI=qemu:///system
8 export LIBVIRT_DEFAULT_URI=lxc:///
14 virt-sandbox /bin/false
16 b. Output only, with TTY
18 virt-sandbox /bin/date
20 c. Input/output, with TTY
24 d. No I/O, without TTY
26 virt-sandbox /bin/false < /dev/null > /dev/null
28 e. Output only, without TTY
30 virt-sandbox /bin/date > date.txt
32 f. Input/output, without TTY
34 virt-sandbox /bin/cat < src.txt > dst.txt
43 c. Host FS + /tmp tempdir
45 d. Host FS + /home dir + /tmp tempdir
47 e. Host FS + /home file
49 f. Host FS + /home block
51 g. Host FS + /mnt file + /home bind + /tmp bind
56 a. Host FS + /tmp dir + copy file /home/tmp/foo into /tmp/foo
58 b. Host FS + /tmp tempdir + copy file /home/tmp/foo into /tmp/foo
60 c. Host FS + /tmp dir + copy dir /home/tmp/bar into /tmp/bar
62 d. Host FS + /tmp tempdir + copy dir /home/tmp/bar into /tmp/bar
64 e. Host FS + /tmp dir + copy filelist /home/tmp/foolist
66 f. Host FS + /tmp tempdir + copy filelist /home/tmp/foolist
69 4. Environment / security
71 a. Same UID/GID, same $USER, same $HOME, no capabilities
73 b. UID/GID > 0, USER=foo, HOME=/home/foo, no capabilities
75 c. UID/GID == 0, USER=root, HOME=/root, no capabilities
77 d. UID/GID == 0, USER=root, HOME=/root, all capabilities