From Fedora Project Wiki

(Created page with "{{QA/Test_Case |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 Ecl...")
 
No edit summary
 
(13 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 {{package|eclipse-fedorapackager-0.2.1-1.fc16}} package is '''NOT''' installed. Remove it via {{command|yum remove eclipse-fedorapackager-0.2.1-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}}}
# Ensure the {{package|eclipse-fedorapackager-0.1.12-1.fc16}} package '''IS''' installed. Install it via {{command|yum install eclipse-fedorapackager-0.1.12-1.fc16}}.
# 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}}
# If the tool allows it, try enabling and disabling network time (NTP), and check that the time is correctly adjusted when you enable it
# 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
# With network time disabled, try changing the date and time manually. See if the changed date and time are reflected in the desktop panel, and at a console with the {{command|date}} command
# You should now see the "eclipse-fedorapackager" and "ed" projects in your Eclipse workspace again.
# If the tool allows it, try changing the time zone. See if the time changes appropriately for the timezone change, and if the changes are reflected in the desktop panel, and at a console with the {{command|date}} command. It may take a few seconds for the desktop panel to reflect the change
# We now install Fedora Packager for Eclipse 0.2. {{command|yum install eclipse-fedorapackager-0.2.1-1.fc16}}
# Leave the desktop's own tool, and launch {{command|system-config-date}}, entering the root password when requested
# Restart Eclipse. File => Restart.
# Repeat the tests as above, using {{command|system-config-date}}
# 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.
# Leave {{command|system-config-date}}, and open a console
# Open the "Fedora Packaging" perspective. Go to "Window" => "Open Perspective" => "Other..." and select "Fedora Packaging"
# Use the {{command|date}} command to set the system date and time: the format is {{command|date MMDDhhmm}}, for instance, {{command|date 02051600}} to set the date and time to 16:00 on the 5th of February in the current year
# Click the Fedora icon as shown in this image: [[Image:ConversionToolIcon.png|Fedora Packager for Eclipse project conversion icon]]
# Again check if the changes are reflected in the desktop panel, allowing a few seconds
# Select project {{command|eclipse-fedorapackager}} from the list and click OK.
# You should get expected results as noted below. Don't forget to reinstate your Fedora certificates: {{command|mv ~/.fedora.cert{-away,}}}  
|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 {{command|eclipse-fedorapackager}} got converted.
# 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.
}}
}}

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.