Meego Wiki
Views

Quality/QA-tools/Corelysis

From MeeGo wiki
(Difference between revisions)
Jump to: navigation, search
(Installation)
(Installation)
Line 19: Line 19:
==  Installation ==
==  Installation ==
-
=== Prepare ===
+
=== Preparation - Adding MeeGo Tools:Testing repository ===
 +
'''Ubuntu'''
 +
 +
* Depending on your distribution, add either of the below lines to /etc/apt/sources.list.
 +
 +
deb http://download.meego.com/live/Tools:/Testing/xUbuntu_10.04/ /
 +
 +
deb http://download.meego.com/live/Tools:/Testing/xUbuntu_10.10/ /
 +
 +
* Add the repository keys
 +
 +
gpg --keyserver subkeys.pgp.net --recv-keys 0BC7BEC479FC1F8A
 +
gpg --export --armor 0BC7BEC479FC1F8A | sudo apt-key add -
 +
 +
* Update the package list
 +
 +
sudo apt-get update
 +
 +
'''Fedora'''
 +
 +
* Add the repository
 +
 +
cd /etc/yum.repos.d/
 +
sudo wget http://download.meego.com/live/Tools:/Testing/Fedora13/Tools:Testing.repo
 +
 +
* Add the repository keys
 +
 +
gpg --keyserver subkeys.pgp.net --recv-keys 0BC7BEC479FC1F8A
 +
gpg --export --armor 0BC7BEC479FC1F8A | sudo apt-key add -
=== Install from MeeGo package repositories ===
=== Install from MeeGo package repositories ===
Line 31: Line 59:
  git clone git://gitorious.org/meego-quality-assurance/corelysis.git
  git clone git://gitorious.org/meego-quality-assurance/corelysis.git
-
* Install dependencies ('''Ubuntu''')
+
* Install dependencies  
 +
 
 +
'''Ubuntu'''
  sudo apt-get install python-setuptools python-pyinotify sp-rich-core-postproc
  sudo apt-get install python-setuptools python-pyinotify sp-rich-core-postproc
-
* Install dependencies ('''Fedora''')
+
'''Fedora'''
  sudo yum install python-setuptools python-inotify sp-rich-core-postproc
  sudo yum install python-setuptools python-inotify sp-rich-core-postproc

Revision as of 11:07, 3 June 2011

Contents

Corelysis

Introduction

Corelysis is a daemon service written in Python, which extracts, processes rich core dumps from saved from MeeGo devices and finally publishes crash data in Crash Reports. Corelysis runs on back-end server and works closely with OTS service.

Corelysis has originated from Nokia, where it has been utilized for Maemo related QA work. Later on Corelysis has been developed for MeeGo N900 DeveloperEdition to report process crashes occured in automated test execution runs.

Automated testing and crash reporting

How does it work?

The idea of Corelysis is quite simple. It takes a rich core dump as an input extracts the data from it and runs it through a set of "tasks", which each manipulate the data in different way. Maybe the most relevant task is the one which generates the backtrace from plain core dump. To be able to do this, Corelysis needs a fs-type meego image with corresponding debuginfo-packages installed. To generate the backtrace, a cross-compiled GDB is executed in chrooted target.

Corelysis work flow

What it provides?

Installation

Preparation - Adding MeeGo Tools:Testing repository

Ubuntu

  • Depending on your distribution, add either of the below lines to /etc/apt/sources.list.
deb http://download.meego.com/live/Tools:/Testing/xUbuntu_10.04/ /
deb http://download.meego.com/live/Tools:/Testing/xUbuntu_10.10/ /
  • Add the repository keys
gpg --keyserver subkeys.pgp.net --recv-keys 0BC7BEC479FC1F8A
gpg --export --armor 0BC7BEC479FC1F8A | sudo apt-key add -
  • Update the package list
sudo apt-get update

Fedora

  • Add the repository
cd /etc/yum.repos.d/
sudo wget http://download.meego.com/live/Tools:/Testing/Fedora13/Tools:Testing.repo
  • Add the repository keys
gpg --keyserver subkeys.pgp.net --recv-keys 0BC7BEC479FC1F8A
gpg --export --armor 0BC7BEC479FC1F8A | sudo apt-key add -

Install from MeeGo package repositories

TODO

Install from sources

  • Get sources
git clone git://gitorious.org/meego-quality-assurance/corelysis.git
  • Install dependencies

Ubuntu

sudo apt-get install python-setuptools python-pyinotify sp-rich-core-postproc

Fedora

sudo yum install python-setuptools python-inotify sp-rich-core-postproc
  • Install everything
cd corelysis
sudo python setup.py install

Executing Corelysis

sudo /usr/bin/corelysis

Contact

In Corelysis related issues/ questions contact us in the following channels:

Personal tools