From Fedora Project Wiki

Line 2: Line 2:
 
|description=This test case tests the functionality of the [[Features/ABRT|ABRT]] feature.
 
|description=This test case tests the functionality of the [[Features/ABRT|ABRT]] feature.
 
|actions=
 
|actions=
# We will check that the ''KerneloopsScanner'', and thus ''dumpoops'', works and provides correct amount of crashes detected.
+
# We will check that the ''KerneloopsScanner'', works and provides correct amount of crashes detected.
# Download file [[File:IamError.txt]] which includes 4 different kernel crashes/faults, which should ''KerneloopsScanner'' detect
+
# Download files:
# Run ''dumpoops'' on the downloaded file <pre>dumpoops IamError.txt</pre>
+
#* [http://git.fedorahosted.org/git/abrt.git?p=abrt.git;a=blob_plain;f=examples/oops1.test;hb=HEAD oops1.test]
 +
#* [http://git.fedorahosted.org/git/abrt.git?p=abrt.git;a=blob_plain;f=examples/oops3.test;hb=HEAD oops3.test]
 +
# Edit /etc/abrt/abrt.conf so it says: <pre>10 = KerneloopsScanner</pre>
 +
#* makes abrtd scan /var/log/messages every 10 secs
 +
# Restart abrtd:<pre>$ service abrtd restart</pre>
 +
# cat the downloaded file to /var/log/messages e.g:<pre>cat oops1.test /var/log/messages</pre>
 +
#* 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=
# Four oopses should be found:
+
# Oopses detected and visible in abrt-gui
<pre>dumpoops: found oopses: 4
 
dumpoops: dumping oopses
 
</pre>
 
 
}}
 
}}
 
[[Category:ABRT_Test_Cases]]
 
[[Category:ABRT_Test_Cases]]

Revision as of 14:24, 31 March 2010

Description

This test case tests the functionality of the ABRT feature.


How to test

  1. We will check that the KerneloopsScanner, works and provides correct amount of crashes detected.
  2. Download files:
  3. Edit /etc/abrt/abrt.conf so it says:
    10 = KerneloopsScanner
    • makes abrtd scan /var/log/messages every 10 secs
  4. Restart abrtd:
    $ service abrtd restart
  5. cat the downloaded file to /var/log/messages e.g:
    cat oops1.test /var/log/messages
    • you'll need root privs for this
  6. Wait for abrt-applet (make sure it's running) to show the notification about the detected kerneloops
  7. Open the abrt-gui and check if you can see the oops

Expected Results

  1. Oopses detected and visible in abrt-gui