From Fedora Project Wiki

m (improve results description)
No edit summary
Line 1: Line 1:
{{QA/Test_Case
{{QA/Test_Case
|description=A full cross-architecture build and platform conversion in one command.
|description=
|setup=Clone the BoxGrinder test appliances into a convenient location using command <code>git clone https://github.com/msavy/boxgrinder-appliances.git</code>
{{admon/note|This is Test Case is only applicable for users on x86_64 architectures|A 32 bit VM is not capable of building 64 bit images in BoxGrinder.}}
|actions={{admon/note|This is Test Case is only applicable for users on x86_64 architectures|A 32 bit VM is not capable of building 64 bit images in BoxGrinder. Check with <code>uname -i</code>. If you are on a 32 bit VM or machine, skip this Test Case!}}
A full cross-architecture build and platform conversion in one command.
 
|setup=
{{admon/tip|If you are doing this test case using a virtual machine|You should transfer any images produced by BoxGrinder Build for testing onto your ''real'' host rather than attempting to execute a VM inside of another VM.}}
# [[Test_Day:2011-04-28_Cloud_SIG_BoxGrinder_Build#Prepare your environment|Prepare your environment]]
 
# Ensure you have a 64 bit operating system installed:
# Navigate to directory <code>boxgrinder-appliances/testing-appliances/jeos-appls/</code>
<pre>uname -i</pre>
# Execute BoxGrinder with <code>setarch</code>. You may want to use a specific platform format, such as vmware or EC2, see: http://boxgrinder.org/tutorials/boxgrinder-build-plugins/#Platform_plugins <pre>setarch i386 boxgrinder-build fedora-15-jeos.appl -p virtualbox</pre>
|actions=
# Run the produced vdi file in your favourite virtualization application: <code>build/appliances/i686/fedora/15/f15-jeos/virtualbox-plugin/f15-jeos.vdi</code>  
# Execute: <pre>setarch i386 testing-appliances/jeos-appls/fedora-15-jeos.appl -p virtualbox</pre>
# Produced disk image can be found in <code>build/appliances/$ARCH/fedora/15/fedora-15-jeos/virtualbox-plugin/</code>. Add this disk to VirtualBox drive manager, create new virtual machine using VirtualBox wizard selecting Fedora 15 as the operating system and add produced disk image as the main disk. Remember to select 32 bit OS.
# Log in with user: <code>root</code> password: <code>boxgrinder</code>   
# Log in with user: <code>root</code> password: <code>boxgrinder</code>   
# Executing <code>uname -i</code> should indicate i386 (32 bit)
# Execute <pre>uname -i</pre>
# Run the following Test Case in the VM: [[QA:Network_basic_test_case]]
# Run the following Test Case in the VM: [[QA:Network_basic_test_case]]
|results=
|results=
The following must be true to consider this a successful test run.
The following must be true to consider this a successful test run.
# Step #2 completes without error (indicated on console)
# Step #1 completes without error (indicated on console)
# Program completes with exit code 0
# Program completes with exit code 0
# Successfully boot and log into the VirtualBox appliance without error
# Successfully boot and log into the VirtualBox appliance without error
# Step #3 indicates the expected architecture (i386/i686)
# Step #4 indicates the expected architecture (i386/i686)
# [[QA:Network_basic_test_case]] is performed successfully on the new appliance
# [[QA:Network_basic_test_case]] is performed successfully on the new appliance
}}
}}

Revision as of 09:16, 23 April 2011

Description

This is Test Case is only applicable for users on x86_64 architectures
A 32 bit VM is not capable of building 64 bit images in BoxGrinder.

A full cross-architecture build and platform conversion in one command.

Setup

  1. Prepare your environment
  2. Ensure you have a 64 bit operating system installed:
uname -i

How to test

  1. Execute:
    setarch i386 testing-appliances/jeos-appls/fedora-15-jeos.appl -p virtualbox
  2. Produced disk image can be found in build/appliances/$ARCH/fedora/15/fedora-15-jeos/virtualbox-plugin/. Add this disk to VirtualBox drive manager, create new virtual machine using VirtualBox wizard selecting Fedora 15 as the operating system and add produced disk image as the main disk. Remember to select 32 bit OS.
  3. Log in with user: root password: boxgrinder
  4. Execute
    uname -i
  5. Run the following Test Case in the VM: QA:Network_basic_test_case

Expected Results

The following must be true to consider this a successful test run.

  1. Step #1 completes without error (indicated on console)
  2. Program completes with exit code 0
  3. Successfully boot and log into the VirtualBox appliance without error
  4. Step #4 indicates the expected architecture (i386/i686)
  5. QA:Network_basic_test_case is performed successfully on the new appliance