From Fedora Project Wiki
(Created page with "{{QA/Test_Case |description=This test case tests whether the {{command|%prep}} section of the .spec file can be executed only. |setup= # Boot into the machine/VM you wish to test...") |
No edit summary |
||
Line 13: | Line 13: | ||
|results= | |results= | ||
# Code in the {{command|%prep}} section should get executed and output shown in the "Console" view. | # Code in the {{command|%prep}} section should get executed and output shown in the "Console" view. | ||
# | # A folder containing the deflated sources which are perhaps patched should show up in the current project in your workspace. | ||
}} | }} |
Latest revision as of 01:40, 22 September 2011
Description
This test case tests whether the %prep
section of the .spec file can be executed only.
Setup
- Boot into the machine/VM you wish to test
- Ensure the
eclipse-fedorapackager-0.2.1-1.fc16
package IS installed. Install it viayum install eclipse-fedorapackager-0.2.1-1.fc16
.
How to test
- Open Eclipse and use a new workspace.
eclipse -data test_day_20111013_fpe_prepare_sources
- Press Ctrl+Alt+F I to open the import wizard. Alternatively press Ctrl+3 and start typing "Projects from Fedora Git", then press return.
- Enter the package name of a package you maintain or use package
eclipse-fedorapackager
. Make sure to clone anonymously by selecting the appropriate checkbox and click "Finish". - The package you've just cloned should show up in your workspace
- 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.
- 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
- Code in the
%prep
section should get executed and output shown in the "Console" view. - A folder containing the deflated sources which are perhaps patched should show up in the current project in your workspace.