QA:Testcase fpe debug logging

From FedoraProject

Jump to: navigation, search

Contents

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