From Fedora Project Wiki

(Add feature coverage appliances test case)
 
(add local repo stuff)
Line 2: Line 2:
|description=Build an appliance based upon the modular appliances, which are designed to provide more comprehensive BoxGrinder Build feature coverage.
|description=Build an appliance based upon the modular appliances, which are designed to provide more comprehensive BoxGrinder Build feature coverage.
|setup=Clone the BoxGrinder test appliances into a convenient location using command <code>git clone https://github.com/msavy/boxgrinder-appliances.git</code>
|setup=Clone the BoxGrinder test appliances into a convenient location using command <code>git clone https://github.com/msavy/boxgrinder-appliances.git</code>
We must create a local RPM repository in order to include our custom programs, this is the most effective way of adding custom applications into a BoxGrinder appliance.  All of the hard work of dependency resolution is done via the RPMs!
# Create a directory tree of <code>/var/repo/RPMS/noarch/</code>
# Download the BoxGrinder test RPM file (<code> wget --directory-prefix=/var/repo/RPMS/noarch http://www.boxgrinder.org/testday/ephemeral-test.rpm</code>) to <code>/var/repo/RPMS/noarch/</code>
# Execute <code>createrepo /var/repo/RPMS/noarch</code>
|actions=
|actions=
# Navigate to directory <code>boxgrinder-appliances/testing-appliances/modular-appls/</code>
# Navigate to directory <code>boxgrinder-appliances/testing-appliances/modular-appls/</code>

Revision as of 13:00, 22 April 2011

Description

Build an appliance based upon the modular appliances, which are designed to provide more comprehensive BoxGrinder Build feature coverage.

Setup

Clone the BoxGrinder test appliances into a convenient location using command git clone https://github.com/msavy/boxgrinder-appliances.git

We must create a local RPM repository in order to include our custom programs, this is the most effective way of adding custom applications into a BoxGrinder appliance. All of the hard work of dependency resolution is done via the RPMs!

  1. Create a directory tree of /var/repo/RPMS/noarch/
  2. Download the BoxGrinder test RPM file ( wget --directory-prefix=/var/repo/RPMS/noarch http://www.boxgrinder.org/testday/ephemeral-test.rpm) to /var/repo/RPMS/noarch/
  3. Execute createrepo /var/repo/RPMS/noarch

How to test

  1. Navigate to directory boxgrinder-appliances/testing-appliances/modular-appls/
  2. Execute boxgrinder-build fedora_rawhide.appl

Expected Results

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

  1. Step #2 completes without error (indicated on console)
  2. Program completes with exit code 0