QA:Testcase VirtSandbox Shell

From FedoraProject

(Difference between revisions)
Jump to: navigation, search
(Created page with "{{QA/Test_Case |description=This aims to test that a basic interactive shell works |setup= Follow the VirtSandbox common setup |actions=...")
 
 
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

Contents

Description

This aims to test that a basic interactive shell works

Setup

Follow the VirtSandbox common setup

How to test

  1. Run a basic interactive shell
    # virt-sandbox -c $URI /bin/sh
  2. Inside the shell get a process list
    # ps ef
  3. Inside the shell get the current directory
    # pwd
  4. Inside the shell get the current username
    # whoami
  5. Exit the shell using 'Ctrl-D'

Expected Results

  1. You should get a shell prompt
    sh-4.2$
  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
  3. The 'pwd' should match your home directory
    /home/berrange
  4. The 'whoami' output should match your username
    berrange
  5. The shell should exit