From Fedora Project Wiki

Revision as of 13:13, 13 April 2012 by Berrange (talk | contribs) (Created page with "{{QA/Test_Case |description=This aims to test that a basic interactive shell works |setup= Follow the VirtSandbox common setup |actions=...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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