From Fedora Project Wiki

(Created page with "{{QA/Test_Case |description=This test case verifies that debug logging of Fedora Packager for Eclipse works as expected. |setup= # Boot into the machine/VM you wish to test # Ens...")
 
No edit summary
Line 5: Line 5:
# 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}}.
|actions=
|actions=
# <<<FIXME>>>
# Create an appropriate {{filename|.options}} file in the current working directory. <code>$ echo org.fedoraproject.eclipse.packager/debug=true > .options</code>
# Start Eclipse from a terminal with the debug switch enabled. {{command|eclipse -debug -consolelog -data test_day_20111013_fpe_debug_logging}}
# In Eclipse, press {{command|CTRL+ALT+F I}} to open the Fedora Packager for Eclipse import wizard. Alternatively press {{command|CTRL+3}} and start typing "Projects from Fedora Git", then press return.
# Enter the package name {{package|eclipse-fedorapackager}}. Make sure that the "Clone Anonymously" option is checked. Click "Finish". This will clone the {{package|eclipse-fedorapackager}} package into your workspace.
# In your workspace, expand the {{command|eclipse-fedorapackager}} project and double-click the .spec file.
# Once the .spec file content is shown in the editor area, right-click in the .spec file, select "Fedora Packager" => "Download Sources". Alternatively, you can press {{key_press|Ctrl|Alt|F}} {{key_press|D}} in order to trigger the same action.
|results=
|results=
# <<<FIXME>>>
# In the terminal where you've started Eclipse, you should see output similar to this: {{command|Debug options:    file:/path/to/.options loaded}}. This indicates that Eclipse found the {{command|.options}} file we've created earlier and will use options as specified in the file.
# You should also see output something like this:
<code>!ENTRY org.fedoraproject.eclipse.packager 1 0 2011-09-21 19:24:44.904<br/>
!MESSAGE Using project root class org.fedoraproject.eclipse.packager.FedoraProjectRoot
 
!ENTRY org.fedoraproject.eclipse.packager 1 0 2011-09-21 19:24:44.918<br/>
!MESSAGE Calling org.fedoraproject.eclipse.packager.api.DownloadSourceCommand
 
!ENTRY org.fedoraproject.eclipse.packager 1 0 2011-09-21 19:24:44.919<br/>
!MESSAGE Using download URL http://pkgs.fedoraproject.org/repo/pkgs
</code>
}}
}}

Revision as of 23:48, 21 September 2011

Description

This test case verifies that debug logging of Fedora Packager for Eclipse works as expected.

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.

How to test

  1. Create an appropriate .options file in the current working directory. $ echo org.fedoraproject.eclipse.packager/debug=true > .options
  2. Start Eclipse from a terminal with the debug switch enabled. eclipse -debug -consolelog -data test_day_20111013_fpe_debug_logging
  3. In Eclipse, press CTRL+ALT+F I to open the Fedora Packager for Eclipse import wizard. Alternatively press CTRL+3 and start typing "Projects from Fedora Git", then press return.
  4. Enter the package name Package-x-generic-16.pngeclipse-fedorapackager. Make sure that the "Clone Anonymously" option is checked. Click "Finish". This will clone the Package-x-generic-16.pngeclipse-fedorapackager package into your workspace.
  5. In your workspace, expand the eclipse-fedorapackager project and double-click the .spec file.
  6. Once the .spec file content is shown in the editor area, right-click in the .spec file, select "Fedora Packager" => "Download Sources". Alternatively, you can press Ctrl+Alt+F D in order to trigger the same action.

Expected Results

  1. In the terminal where you've started Eclipse, you should see output similar to this: Debug options: file:/path/to/.options loaded. This indicates that Eclipse found the .options file we've created earlier and will use options as specified in the file.
  2. You should also see output something like this:

!ENTRY org.fedoraproject.eclipse.packager 1 0 2011-09-21 19:24:44.904
!MESSAGE Using project root class org.fedoraproject.eclipse.packager.FedoraProjectRoot

!ENTRY org.fedoraproject.eclipse.packager 1 0 2011-09-21 19:24:44.918
!MESSAGE Calling org.fedoraproject.eclipse.packager.api.DownloadSourceCommand

!ENTRY org.fedoraproject.eclipse.packager 1 0 2011-09-21 19:24:44.919
!MESSAGE Using download URL http://pkgs.fedoraproject.org/repo/pkgs