From Fedora Project Wiki

(updated to match current abrt)
 
(20 intermediate revisions by 7 users not shown)
Line 1: Line 1:
 
{{QA/Test_Case
 
{{QA/Test_Case
|description=This test case tests the functionality of the [[Features/ABRT|ABRT]] feature.
+
|description=This test case tests the functionality of the ABRT kerneloops feature.
 
|actions=
 
|actions=
# We will check that the ''KerneloopsScanner'', works and provides correct amount of crashes detected.
+
 
# Download files:
+
 
#* [http://git.fedorahosted.org/git/abrt.git?p=abrt.git;a=blob_plain;f=examples/oops1.test;hb=HEAD oops1.test]
+
# Ensure you have will-crash-0.5 installed
#* [http://git.fedorahosted.org/git/abrt.git?p=abrt.git;a=blob_plain;f=examples/oops3.test;hb=HEAD oops3.test]
+
#* {{command|su -c 'yum install will-crash-0.5'}}
#* [http://git.fedorahosted.org/git/abrt.git?p=abrt.git;a=blob_plain;f=examples/not_oops1.test;hb=HEAD not_oops1.test]
+
# Ensure you have the plugin installed with the following command:
#* [http://git.fedorahosted.org/git/abrt.git?p=abrt.git;a=blob_plain;f=examples/not_oops2.test;hb=HEAD not_oops2.test]
+
#* {{command|su -c 'yum install abrt-addon-kerneloops'}}
#* [http://git.fedorahosted.org/git/abrt.git?p=abrt.git;a=blob_plain;f=examples/not_oops3.test;hb=HEAD not_oops3.test]
+
# Ensure you have kernel-devel package installed
# Test that stand-alone detector tool is working properly:
+
#* {{command|su -c 'yum install kernel-devel-`uname -r`'}}
<pre>
+
# Ensure that the system log watcher service is running - {{command|systemctl status abrt-oops.service}}
$ dumpoops -s oops1.test
+
# Make sure {{filename|/etc/libreport/events.d/koops_event.conf}} contains
dumpoops: found oopses: 1
+
<pre>EVENT=post-create analyzer=Kerneloops
Version: 2.6.27.9-159.fc10.i686 #1
+
        # >> instead of > is due to bugzilla.redhat.com/show_bug.cgi?id=854266
BUG: unable to handle kernel NULL pointer dereference at 00000000
+
        abrt-action-analyze-oops &&
...
+
        dmesg >>dmesg &&
 +
        abrt-action-generate-core-backtrace
 +
        abrt-action-save-kernel-data
 
</pre>
 
</pre>
oops1.test and oops3.test should contain one and three oopses respectively. not_oopsN.test should not be detected as containing oops.
+
# Run the following command:
# Optional. Edit /etc/abrt/abrt.conf so it says: <pre>10 = KerneloopsScanner</pre> This makes abrtd scan /var/log/messages more often, every 10 secs. Then restart abrtd:<pre>$ service abrtd restart</pre>
+
#* {{command|su -c 'will_oops'}}
# cat the downloaded file to /var/log/messages e.g.:<pre>cat oops1.test /var/log/messages</pre>
+
# Observe whether a crash notification appears
#* you'll need root privs for this
 
# Wait for abrt-applet (make sure it's running) to show the notification about the detected kerneloops
 
# Open the abrt-gui and check if you can see the oops
 
 
 
 
|results=
 
|results=
# Oopses detected and visible in abrt-gui
+
# ABRT should catch kernel oops appearing in {{filename|/var/log/messages}}, create a crash report and notify you via the notification area
 
}}
 
}}
[[Category: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