(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 |
||
(One intermediate revision by the same user not shown) | |||
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= | ||
# << | # 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 {{key_press|Ctrl|Alt|F}} {{key_press|I}} to open the Fedora Packager for Eclipse import wizard. Alternatively press {{key_press|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= | ||
# <<< | # 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> | |||
}} | }} |
Latest revision as of 23:50, 21 September 2011
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
- Ensure the
eclipse-fedorapackager-0.2.1-1.fc16
package IS installed. Install it viayum install eclipse-fedorapackager-0.2.1-1.fc16
.
How to test
- Create an appropriate
.options
file in the current working directory.$ echo org.fedoraproject.eclipse.packager/debug=true > .options
- Start Eclipse from a terminal with the debug switch enabled.
eclipse -debug -consolelog -data test_day_20111013_fpe_debug_logging
- 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.
- Enter the package name
eclipse-fedorapackager
. Make sure that the "Clone Anonymously" option is checked. Click "Finish". This will clone theeclipse-fedorapackager
package into your workspace. - In your workspace, expand the
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 Ctrl+Alt+F D in order to trigger the same action.
Expected Results
- 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. - 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