From Fedora Project Wiki
Description
This aims to test that a basic interactive shell works
Setup
Follow the VirtSandbox common setup
How to test
- Run a basic interactive shell
- # virt-sandbox -c $URI /bin/sh
- Inside the shell get a process list
- # ps ef
- Inside the shell get the current directory
- # pwd
- Inside the shell get the current username
- # whoami
- Exit the shell using 'Ctrl-D'
Expected Results
- You should get a shell prompt
- sh-4.2$
- The 'ps axf' command should show 3 userspace processes:
- 1 ? S 0:00 /usr/libexec/libvirt-sandbox-init-common
- 38 pts/0 Ss 0:00 /bin/sh
- 45 pts/0 R+ 0:00 \_ ps -afx
- The 'pwd' should match your home directory
- /home/berrange
- The 'whoami' output should match your username
- berrange
- The shell should exit