From Fedora Project Wiki
(Created page with "{{QA/Test_Case |description=This aims to test that a basic interactive shell works |setup= Follow the VirtSandbox common setup |actions=...") |
No edit summary |
||
Line 11: | Line 11: | ||
#: # pwd | #: # pwd | ||
# Inside the shell get the current username | # Inside the shell get the current username | ||
#: # whoami | #: # whoami | ||
# Exit the shell using 'Ctrl-D' | # Exit the shell using 'Ctrl-D' | ||
|results= | |results= | ||
Line 26: | Line 26: | ||
# The shell should exit | # The shell should exit | ||
}} | }} | ||
[[Category:Virtualization_VirtSandbox_Test_Cases]] |
Latest revision as of 13:43, 13 April 2012
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