QA:Testcase VirtSandbox Batch

From FedoraProject

Revision as of 13:28, 13 April 2012 by Berrange (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

Description

This test aims to verify that non-interactive batch commands work

Setup

Follow the VirtSandbox common setup

How to test

  1. Run the 'date' command
    # virt-sandbox -c $URI /bin/date
  2. Run the 'rev' command
    # echo "Hello World" | virt-sandbox -c $URI /usr/bin/rev
  3. Compress and decompress a large file and verify result
    # virt-sandbox -c $URI /usr/bin/gzip < /lib64/libc.so.6 | gunzip -c > libc.so.6
    # diff libc.so.6 /lib64/libc.so.6

Expected Results

  1. Today's date is printed
    Fri Apr 13 14:22:32 BST 2012
  2. The string 'Hello World' is reversed
    dlroW olleH
  3. The original & processed files do not differ