From Fedora Project Wiki

(double grrrr)
(updated to match current abrt)
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
{{QA/Test_Case
 
{{QA/Test_Case
|description=This test case tests the functionality of the ABRT kerneloops feature. We will check that the {{command|abrt-dump-oops}} works and provides correct amount of crashes detected.
+
|description=This test case tests the functionality of the ABRT kerneloops feature.
 
|actions=
 
|actions=
{{admon/note|Syslog|This test abuses syslog a bit - don't forget to restart it at the end of the test case.}}
 
# Download files:
 
#* [http://git.fedorahosted.org/git/?p=abrt.git;a=blob_plain;f=examples/oops1.test;h=e4f02d26c11cf613c522d577486ed9dfc597b1b7;hb=HEAD oops1.test]
 
#* [http://git.fedorahosted.org/git/?p=abrt.git;a=blob_plain;f=examples/not_oops3.test;hb=HEAD not_oops3.test]
 
# Test that stand-alone detector tool works properly; Do as a root for both files:
 
#: $ abrt-dump-oops -d -o oops1.test
 
#: abrt-dump-oops: Found oopses: 1
 
#:
 
#: Version: 2.6.27.9-159.fc10.i686 #1
 
#: BUG: unable to handle kernel NULL pointer dereference at 00000000
 
#: ...
 
#: EIP: [<f88dec25>] radeon_cp_init_ring_buffer+0x90/0x302 [radeon] SS:ESP 0068:f0a0cf08
 
#: abrt-dump-oops: Creating dump directories
 
# Open abrt-gui and check that dump directory was created
 
# And now test if ABRT's scanning of /var/log/messages works, you'll need root privs for this
 
# Make sure {{filename|/etc/abrt/abrt_event.conf}} contains <tt>EVENT=post-create analyzer=Kerneloops  abrt-action-analyze-oops</tt> and <tt>EVENT=report_kerneloops.org analyzer=Kerneloops  abrt-action-kerneloops</tt>. And <tt>/etc/abrt/abrt.conf</tt> contains <tt>abrt-dump-oops = abrt-dump-oops -drw /var/log/messages</tt>. If changed anything, restart abrtd: <tt>service abrtd restart</tt>.
 
# Concatenate {{filename|oops1.test}} to {{filename|/var/log/messages}} e.g.:<pre>cat oops1.test >> /var/log/messages</pre>
 
# If you are logged as a root: Wait for abrt-applet (make sure it's running) and notification to emerge to show the notification about the detected kerneloops. Otherwise open abrt-gui as a root instead.
 
  
 +
 +
# Ensure you have will-crash-0.5 installed
 +
#* {{command|su -c 'yum install will-crash-0.5'}}
 +
# Ensure you have the plugin installed with the following command:
 +
#* {{command|su -c 'yum install abrt-addon-kerneloops'}}
 +
# Ensure you have kernel-devel package installed
 +
#* {{command|su -c 'yum install kernel-devel-`uname -r`'}}
 +
# Ensure that the system log watcher service is running - {{command|systemctl status abrt-oops.service}}
 +
# Make sure {{filename|/etc/libreport/events.d/koops_event.conf}} contains
 +
<pre>EVENT=post-create analyzer=Kerneloops
 +
        # >> instead of > is due to bugzilla.redhat.com/show_bug.cgi?id=854266
 +
        abrt-action-analyze-oops &&
 +
        dmesg >>dmesg &&
 +
        abrt-action-generate-core-backtrace
 +
        abrt-action-save-kernel-data
 +
</pre>
 +
# Run the following command:
 +
#* {{command|su -c 'will_oops'}}
 +
# Observe whether a crash notification appears
 
|results=
 
|results=
# After running {{command|abrt-dump-oops}} on {{filename|oops1.test}} crash should be created and visible via abrt-gui and in the terminal.
+
# ABRT should catch kernel oops appearing in {{filename|/var/log/messages}}, create a crash report and notify you via the notification area
# Running {{command|abrt-dump-oops}} on {{filename|not_oops3.test}} should not create crash case.
 
# ABRT should automatically detect OOPS in {{filename|/var/log/messages}} and visible via abrt-gui.
 
 
 
Now restart '''rsyslog''' service so writing to {{filename|/var/log/messages}} works correctly again.
 
 
 
 
}}
 
}}
 
[[Category:Package_abrt_test_cases]]
 
[[Category:Package_abrt_test_cases]]

Latest revision as of 12:21, 3 May 2013

Description

This test case tests the functionality of the ABRT kerneloops feature.


How to test

  1. Ensure you have will-crash-0.5 installed
    • su -c 'yum install will-crash-0.5'
  2. Ensure you have the plugin installed with the following command:
    • su -c 'yum install abrt-addon-kerneloops'
  3. Ensure you have kernel-devel package installed
    • su -c 'yum install kernel-devel-uname -r'
  4. Ensure that the system log watcher service is running - systemctl status abrt-oops.service
  5. Make sure /etc/libreport/events.d/koops_event.conf contains
EVENT=post-create analyzer=Kerneloops
        # >> instead of > is due to bugzilla.redhat.com/show_bug.cgi?id=854266
        abrt-action-analyze-oops &&
        dmesg >>dmesg &&
        abrt-action-generate-core-backtrace
        abrt-action-save-kernel-data
  1. Run the following command:
    • su -c 'will_oops'
  2. Observe whether a crash notification appears

Expected Results

  1. ABRT should catch kernel oops appearing in /var/log/messages, create a crash report and notify you via the notification area