From Fedora Project Wiki
(Created page with "{{QA/Test_Case |description=This test case tests whether local building of a Fedora package works correctly when using Fedora Packager for Eclipse. |setup= # Boot into the machin...") |
No edit summary |
||
Line 10: | Line 10: | ||
# The package you've just cloned should show up in your workspace. | # 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. | # 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" => "Build for Local Architecture", alternatively press {{key_press|Ctrl|Alt|F}} {{key_press|L}} with the .spec file open in the Eclipse editor view. | # Right-click in the .spec file and select "Fedora Packager" => "Build for Local Architecture", alternatively press {{key_press|Ctrl|Alt|F}} {{key_press|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). | ||
# This will trigger a local RPM build of your cloned package using the sources as listed in the {{filename|sources}} file (for the current branch, usually master, which is mapped to rawhide). | # This will trigger a local RPM build of your cloned package using the sources as listed in the {{filename|sources}} file (for the current branch, usually master, which is mapped to rawhide). | ||
# 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. | # 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. | ||
# Repeat | # Repeat steps 6-7. This should produce RPMs for Fedora 15. | ||
|results= | |results= | ||
# Build is correctly triggered and relevant output is printed to the Eclipse console. | # Build is correctly triggered and relevant output is printed to the Eclipse console. | ||
# After the build has been finished successfully, a folder {{filename|<ARCH>}} is created in the project of the package you've just built. For example if your package was {{command|noarch}}, you should see a {{command|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 {{filename|f15}} you should see {{filename|.f15}} in the file names of the produced binary RPMs. | # After the build has been finished successfully, a folder {{filename|<ARCH>}} is created in the project of the package you've just built. For example if your package was {{command|noarch}}, you should see a {{command|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 {{filename|f15}} you should see {{filename|.f15}} in the file names of the produced binary RPMs. | ||
}} | }} |
Latest revision as of 02:00, 22 September 2011
Description
This test case tests whether local building of a Fedora package works correctly when using Fedora Packager for Eclipse.
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_local_build
- 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
ed
. 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" => "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).
- 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). - 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.
- Repeat steps 6-7. This should produce RPMs for Fedora 15.
Expected Results
- Build is correctly triggered and relevant output is printed to the Eclipse console.
- 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 wasnoarch
, you should see anoarch
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 wasf15
you should see.f15
in the file names of the produced binary RPMs.