QA:Testcase fpe local build

From FedoraProject

Jump to: navigation, search

Contents

Description

This test case tests whether local building of a Fedora package works correctly when using Fedora Packager for Eclipse.

Setup

  1. Boot into the machine/VM you wish to test
  2. Ensure the eclipse-fedorapackager-0.2.1-1.fc16 package IS installed. Install it via yum install eclipse-fedorapackager-0.2.1-1.fc16.

How to test

  1. Open Eclipse and use a new workspace. eclipse -data test_day_20111013_fpe_local_build
  2. Press Ctrl+Alt+F I to open the import wizard. Alternatively press Ctrl+3 and start typing "Projects from Fedora Git", then press return.
  3. Enter the package name of a package you maintain or use package Package-x-generic-16.pnged. Make sure to clone anonymously by selecting the appropriate checkbox and click "Finish".
  4. The package you've just cloned should show up in your workspace.
  5. Expand the project you've cloned into your workspace and double-click the .spec file in it. The .spec file should open in the editor.
  6. Right-click in the .spec file and select "Fedora Packager" => "Build for Local Architecture", alternatively press Ctrl+Alt+F L with the .spec file open in the Eclipse editor view. You may have to install all packages which are required for building the package at hand (look for BuildRequire listings in the .spec file).
  7. This will trigger a local RPM build of your cloned package using the sources as listed in the sources file (for the current branch, usually master, which is mapped to rawhide).
  8. Go to the "Git Repositories" view, expand the repository of the package your are currently working on, expand "Branches", then "Local", then double-click on "f15". This should checkout the "f15" branch of your local Git clone.
  9. Repeat steps 6-7. This should produce RPMs for Fedora 15.

Expected Results

  1. Build is correctly triggered and relevant output is printed to the Eclipse console.
  2. After the build has been finished successfully, a folder <ARCH> is created in the project of the package you've just built. For example if your package was noarch, you should see a noarch folder which contains all binary RPM files for the current distribution which the .spec file produces. The distribution is determined by the currently checked out Git branch. For example if the current branch was f15 you should see .f15 in the file names of the produced binary RPMs.