From Fedora Project Wiki

No edit summary
No edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 4: Line 4:
# Boot into the machine/VM you wish to test
# Boot into the machine/VM you wish to test
# Ensure the {{command|eclipse-fedorapackager-0.2.1-1.fc16}} package '''IS''' installed. Install it via {{command|yum install eclipse-fedorapackager-0.2.1-1.fc16}}.
# Ensure the {{command|eclipse-fedorapackager-0.2.1-1.fc16}} package '''IS''' installed. Install it via {{command|yum install eclipse-fedorapackager-0.2.1-1.fc16}}.
# Ensure that the SRPM to populate the local project from is on the machine.
# Ensure that the .spec file to create the package is on the machine.
# Ensure that the .xml file to create the local project from is on the machine.
|actions=
|actions=
# Open Eclipse and use a new workspace. {{command|eclipse -data test_day_20111013_local_fedora_rpm}}
# Open Eclipse and use a new workspace. {{command|eclipse -data test_day_20111013_local_fedora_rpm}}
# Open the "Fedora Packaging" perspective: "Window" => "Open Perspective" => "Other...", select "Fedora Packaging" and click "OK".
# Open the "Fedora Packaging" perspective: "Window" => "Open Perspective" => "Other...", select "Fedora Packaging" and click "OK".
# Open the Fedora RPM project wizard. Here is one way to do it [[Image:blah.png]]
# Open the Fedora RPM project wizard. Here is one way to do it: [[Image:FedoraPackagerOpenFedoraRPMProject.png]]
# Create a new Fedora RPM project as described in our [https://fedoraproject.org/wiki/Fedora_Packager_For_Eclipse_User_Guide#Creating_a_Local_Fedora_RPM_Project user guide]
# Create a new Fedora RPM project as described in our [https://fedoraproject.org/wiki/Fedora_Packager_For_Eclipse_User_Guide#Creating_a_Local_Fedora_RPM_Project user guide]
# You may choose to start a .spec file from scratch.
# You may choose to start a .spec file from scratch.
|results=
|results=
# Once the project is created you should be able to right-click on the .spec file and see a "Fedora Packager" context menu item with useful items for building your package based on your .spec file.
# Once the project is created you should be able to right-click on the .spec file and see a "Fedora Packager" context menu item with useful items for building your package based on your .spec file. (Please note that if you create the project, .spec file, from scratch or using RPM Stubby, more information need to be added to the .spec file in order to enable creating a package, however, the context menu can be tested on a situation that project has been created by importing an .src.rpm file)
# The "Fedora Packager" context menu item should also be available if you right-click anywhere '''in''' the .spec file. Moreover, if the .spec file is currently active in your editor, relevant commands should be available via keyboard short-cuts.
# The "Fedora Packager" context menu item should also be available if you right-click anywhere '''in''' the .spec file. Moreover, if the .spec file is currently active in your editor, relevant commands should be available via keyboard short-cuts, such as {{key_press|Ctrl|Alt|F}} {{key_press|L}}
# Note that the newly created project will have a Git repository initialized. You can commit your changes right away.
}}
}}

Latest revision as of 02:09, 23 September 2011

Description

This test case tests whether local Fedora RPM project can be created and relevant Fedora Packager for Eclipse context menu items work on Fedora RPM projects.

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.
  3. Ensure that the SRPM to populate the local project from is on the machine.
  4. Ensure that the .spec file to create the package is on the machine.
  5. Ensure that the .xml file to create the local project from is on the machine.

How to test

  1. Open Eclipse and use a new workspace. eclipse -data test_day_20111013_local_fedora_rpm
  2. Open the "Fedora Packaging" perspective: "Window" => "Open Perspective" => "Other...", select "Fedora Packaging" and click "OK".
  3. Open the Fedora RPM project wizard. Here is one way to do it:
  4. Create a new Fedora RPM project as described in our user guide
  5. You may choose to start a .spec file from scratch.

Expected Results

  1. Once the project is created you should be able to right-click on the .spec file and see a "Fedora Packager" context menu item with useful items for building your package based on your .spec file. (Please note that if you create the project, .spec file, from scratch or using RPM Stubby, more information need to be added to the .spec file in order to enable creating a package, however, the context menu can be tested on a situation that project has been created by importing an .src.rpm file)
  2. The "Fedora Packager" context menu item should also be available if you right-click anywhere in the .spec file. Moreover, if the .spec file is currently active in your editor, relevant commands should be available via keyboard short-cuts, such as Ctrl+Alt+F L
  3. Note that the newly created project will have a Git repository initialized. You can commit your changes right away.