From Fedora Project Wiki

Description

This test case tests whether the %prep section of the .spec file can be executed only.

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_prepare_sources
  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.pngeclipse-fedorapackager. 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" => "Prepare Sources for Build", alternatively press Ctrl+Alt+F P with the .spec file open in the Eclipse editor view. This will execute the %prep section of your .spec file. You may want to use the "Outline" view in order to quickly jump to this section.

Expected Results

  1. Code in the %prep section should get executed and output shown in the "Console" view.
  2. A folder containing the deflated sources which are perhaps patched should show up in the current project in your workspace.