From Fedora Project Wiki

No edit summary
No edit summary
Line 14: Line 14:
# We now upgrade eclipse-fedorapackager. {{command|yum update eclipse-fedorapackager-0.2.1-1.fc16}}
# We now upgrade eclipse-fedorapackager. {{command|yum update eclipse-fedorapackager-0.2.1-1.fc16}}
# Restart Eclipse. File => Restart.
# Restart Eclipse. File => Restart.
# Once Eclipse has been restarted, try right-clicking on the project "eclipse-fedorapackager". The "Fedora Packager" context menu item should be gone. Now we need to upgrade this project.
# Once Eclipse has been restarted, try right-clicking on the project "eclipse-fedorapackager". The "Fedora Packager" context menu item should be gone. Now we need to upgrade this project in order for the context menu to show up again.
# Open the "Fedora Packaging" perspective
# Open the "Fedora Packaging" perspective. Go to "Window" => "Open Perspective" => "Other..." and select "Fedora Packaging"
# <<<FIXME>>>
# Click the Fedora icon as shown in this image: [[Image:ConversionToolIcon.png|Fedora Packager for Eclipse project conversion icon]]
# Select project {{package|eclipse-fedorapackager}} from the list and click OK.
|results=
|results=
# Changes made to the date and time in the desktop's own configuration app, in {{command|system-config-date}}, and with the console {{command|date}} command should all work correctly and be reflected in the date displayed within the desktop
# A message dialog should show up indicating that project {{package|eclipse-fedorapackager}} got converted.
# If you right-click on the project you should see the "Fedora Packager" context menu item again.
# If you double-click on the file {{command|eclipse-fedorapackager.spec}} the contents of the .spec file should show and right-clicking in that .spec file should show the "Fedora Packager" context menu item as well.
}}
}}

Revision as of 15:16, 2 September 2011

Description

This test case tests whether old projects cloned with Fedora Packager for Eclipse 0.1.12 and below can be properly upgraded to Fedora Packager for Eclipse 0.2 using the conversion tool shipped with 0.2.

Setup

  1. Boot into the machine/VM you wish to test
  2. Ensure the Package-x-generic-16.pngeclipse-fedorapackager-0.2.1-1.fc16 package is NOT installed. Remove it via yum remove eclipse-fedorapackager-0.2.1-1.fc16.
  3. Ensure the Package-x-generic-16.pngeclipse-fedorapackager-0.1.12-1.fc16 package IS installed. Install it via yum install eclipse-fedorapackager-0.1.12-1.fc16.
  4. Make sure that file ~/.fedora.cert does not exist. You can move it out of the way via mv ~/.fedora.cert{,-away}

How to test

  1. Open Eclipse (it is recommended to use a new workspace).
  2. Open the "Import from Fedora Git" wizard. Press CTRL+3 and start typing "Projects from Fedora" and hit return once it's the only option shown. Alternatively, use File => Import => Git => Projects from Fedora Git
  3. Enter "eclipse-fedorapackager" (this should clone the eclipse-fedorapackager package from Fedora Git
  4. You should now see an "eclipse-fedorapackager" project in your Eclipse workspace.
  5. If you right-click on this project, you should see a context menu item called "Fedora Packager"
  6. We now upgrade eclipse-fedorapackager. yum update eclipse-fedorapackager-0.2.1-1.fc16
  7. Restart Eclipse. File => Restart.
  8. Once Eclipse has been restarted, try right-clicking on the project "eclipse-fedorapackager". The "Fedora Packager" context menu item should be gone. Now we need to upgrade this project in order for the context menu to show up again.
  9. Open the "Fedora Packaging" perspective. Go to "Window" => "Open Perspective" => "Other..." and select "Fedora Packaging"
  10. Click the Fedora icon as shown in this image: Fedora Packager for Eclipse project conversion icon
  11. Select project Package-x-generic-16.pngeclipse-fedorapackager from the list and click OK.

Expected Results

  1. A message dialog should show up indicating that project Package-x-generic-16.pngeclipse-fedorapackager got converted.
  2. If you right-click on the project you should see the "Fedora Packager" context menu item again.
  3. If you double-click on the file eclipse-fedorapackager.spec the contents of the .spec file should show and right-clicking in that .spec file should show the "Fedora Packager" context menu item as well.