From Fedora Project Wiki

No edit summary
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 3: Line 3:
|setup=
|setup=
# 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 '''NOT''' installed. Remove it via {{command|yum remove eclipse-fedorapackager-0.2.1-1.fc16}}.
# Ensure the {{command|eclipse-fedorapackager-0.1.12-1.fc16}} package '''IS''' installed. Install it via {{command|yum install eclipse-fedorapackager-0.1.12-1.fc16}}.
# Make sure that file ~/.fedora.cert does not exist. You can move it out of the way via {{command|mv ~/.fedora.cert{,-away}}}
# Make sure that file ~/.fedora.cert does not exist. You can move it out of the way via {{command|mv ~/.fedora.cert{,-away}}}
# Create a 0.1.12 Fedora Packager for Eclipse project in order to have something to upgrade. If you have 0.1.12 projects in some existing workspace, you can use these instead.
## Download [http://eclipse.org/downloads/packages/eclipse-classic-37/indigor Eclipse Indigo classic]
## Extract the tarball in your home directory and run it: e.g. {{command|mkdir -p ~/test_day_efp/eclipse-indigo-upgrade-test && cd ~/test_day_efp/eclipse-indigo-upgrade-test && tar -xzvf <ECLIPSE_3.7_TARBALL> && ./eclipse/eclipse -data ~/workspace_fpe_upgrade}}
## Install Fedora Packager for Eclipse 0.1.12 from our p2 repository:
### Go to "Help" => "Install New Software..."
### Click on "Add.."
### Enter a "Name" for the repository, for example "Fedora Packager for Eclipse"
### In the "Location" field enter: https://fedorahosted.org/released/eclipse-fedorapackager/p2-repo/
### Click "OK" and wait until the list of available software comes up.
### Below the list of available software, uncheck "Group items by category" and "Show only latest versions of software".
### Then, select "Eclipse Fedora Packager Tools" from the list of available packages. Make sure to install version 0.1.12.X
### The installation dialog should now look similar to this:<br/> [[Image:FedoraPackagerInstall0112.png]]
### Click "Next >", accept the license and click "Ok" if warnings are presented with respect to unsigned software being installed.
### When Eclipse asks if it should restart, select "Restart now".
### Now you should have Fedora Packager for Eclipse 0.1.12 installed.
### Import packages from Fedora Git via "File" => "Import" => "Git" => "Projects from Fedora Git". Enter {{package|eclipse-fedorapackager}} as package name and click "Finish".
### Repeat step 12 but use package name {{package|ed}}.
### You should now see two 0.1.12 projects, namely "eclipse-fedorapackager" and "ed, in your workspace.
### If you right-click on either project, you should see a context menu item called "Fedora Packager"
|actions=
|actions=
# Open Eclipse (it is recommended to use a new workspace).
# Open Eclipse as provided with Fedora. Don't use Eclipse which you have downloaded in the "Setup" section. {{command| $ cd ~ && eclipse -data ~/workspace_fpe_upgrade}}
# Open the "Import from Fedora Git" wizard. Press {{command|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
# Open the "Import from Fedora Git" wizard. Press {{key_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
# Enter "eclipse-fedorapackager" (this should clone the eclipse-fedorapackager package from Fedora Git
# You should now see the "eclipse-fedorapackager" and "ed" projects in your Eclipse workspace again.
# You should now see an "eclipse-fedorapackager" project in your Eclipse workspace.
# We now install Fedora Packager for Eclipse 0.2. {{command|yum install eclipse-fedorapackager-0.2.1-1.fc16}}
# If you right-click on this project, you should see a context menu item called "Fedora Packager"
# 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 in order for the context menu to show up again.
# Once Eclipse has been restarted, try right-clicking on 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. Go to "Window" => "Open Perspective" => "Other..." and select "Fedora Packaging"  
# Open the "Fedora Packaging" perspective. Go to "Window" => "Open Perspective" => "Other..." and select "Fedora Packaging"  
# Click the Fedora icon as shown in this image: [[Image:ConversionToolIcon.png|Fedora Packager for Eclipse project conversion icon]]
# Click the Fedora icon as shown in this image: [[Image:ConversionToolIcon.png|Fedora Packager for Eclipse project conversion icon]]
Line 21: Line 36:
|results=
|results=
# A message dialog should show up indicating that project {{command|eclipse-fedorapackager}} got converted.
# A message dialog should show up indicating that project {{command|eclipse-fedorapackager}} got converted.
# If you right-click on the project you should see the "Fedora Packager" context menu item again.
# If you right-click on project "eclipse-fedorapackager" 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.
# 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.
}}
}}

Latest revision as of 16:13, 12 October 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. Make sure that file ~/.fedora.cert does not exist. You can move it out of the way via mv ~/.fedora.cert{,-away}
  3. Create a 0.1.12 Fedora Packager for Eclipse project in order to have something to upgrade. If you have 0.1.12 projects in some existing workspace, you can use these instead.
    1. Download Eclipse Indigo classic
    2. Extract the tarball in your home directory and run it: e.g. mkdir -p ~/test_day_efp/eclipse-indigo-upgrade-test && cd ~/test_day_efp/eclipse-indigo-upgrade-test && tar -xzvf <ECLIPSE_3.7_TARBALL> && ./eclipse/eclipse -data ~/workspace_fpe_upgrade
    3. Install Fedora Packager for Eclipse 0.1.12 from our p2 repository:
      1. Go to "Help" => "Install New Software..."
      2. Click on "Add.."
      3. Enter a "Name" for the repository, for example "Fedora Packager for Eclipse"
      4. In the "Location" field enter: https://fedorahosted.org/released/eclipse-fedorapackager/p2-repo/
      5. Click "OK" and wait until the list of available software comes up.
      6. Below the list of available software, uncheck "Group items by category" and "Show only latest versions of software".
      7. Then, select "Eclipse Fedora Packager Tools" from the list of available packages. Make sure to install version 0.1.12.X
      8. The installation dialog should now look similar to this:
        FedoraPackagerInstall0112.png
      9. Click "Next >", accept the license and click "Ok" if warnings are presented with respect to unsigned software being installed.
      10. When Eclipse asks if it should restart, select "Restart now".
      11. Now you should have Fedora Packager for Eclipse 0.1.12 installed.
      12. Import packages from Fedora Git via "File" => "Import" => "Git" => "Projects from Fedora Git". Enter Package-x-generic-16.pngeclipse-fedorapackager as package name and click "Finish".
      13. Repeat step 12 but use package name Package-x-generic-16.pnged.
      14. You should now see two 0.1.12 projects, namely "eclipse-fedorapackager" and "ed, in your workspace.
      15. If you right-click on either project, you should see a context menu item called "Fedora Packager"

How to test

  1. Open Eclipse as provided with Fedora. Don't use Eclipse which you have downloaded in the "Setup" section. $ cd ~ && eclipse -data ~/workspace_fpe_upgrade
  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. You should now see the "eclipse-fedorapackager" and "ed" projects in your Eclipse workspace again.
  4. We now install Fedora Packager for Eclipse 0.2. yum install eclipse-fedorapackager-0.2.1-1.fc16
  5. Restart Eclipse. File => Restart.
  6. Once Eclipse has been restarted, try right-clicking on 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.
  7. Open the "Fedora Packaging" perspective. Go to "Window" => "Open Perspective" => "Other..." and select "Fedora Packaging"
  8. Click the Fedora icon as shown in this image: Fedora Packager for Eclipse project conversion icon
  9. Select project eclipse-fedorapackager from the list and click OK.
  10. You should get expected results as noted below. Don't forget to reinstate your Fedora certificates: mv ~/.fedora.cert{-away,}

Expected Results

  1. A message dialog should show up indicating that project eclipse-fedorapackager got converted.
  2. If you right-click on project "eclipse-fedorapackager" 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.