From Fedora Project Wiki

Revision as of 05:08, 1 April 2010 by Adamwill (talk | contribs) (rewrite (hope this is right, the original is shortened and unclear))

Description

This test case checks whether ABRT's actions and reporters function works correctly.


How to test

  1. Ensure the appropriate packages are installed with the command su -c 'yum install abrt-plugin-runapp abrt-plugin-mailx'
  2. Edit the config file /etc/abrt/abrt.conf, and change the ActionsAndReporters line to read:
    ActionsAndReporters = RunApp("ls", "ls-output")
  3. Set up an executable-specific report action in the AnalyzerActionsAndReporters section, such as:
    [ AnalyzerActionsAndReporters ]
    # all C/C++ crashes will be reported via Logger plugin
    CCpp = Logger
    # if gedit crashes, then an email will be send and Logger (from ''CCpp'' section) should be silent
    CCpp:gedit = Mailx("[abrt] Gedit crashed")
  4. Restart ABRT with the command su -c 'service abrtd restart'
  5. Run the specified command (gedit in our example) and then kill it with the command kill -SIGSEGV (pid)

Expected Results

  1. Verify that a directory listing appears in the file ls-output FIXME: Where should this file be?
  2. Verify that the Mailx plugin was used to send a mail about the crash