From Fedora Project Wiki
No edit summary |
No edit summary |
||
Line 12: | Line 12: | ||
# Wait for a crash notification to appear: it might take some time (~20 s) before the icon appears, as it waits for sosreport to finish | # Wait for a crash notification to appear: it might take some time (~20 s) before the icon appears, as it waits for sosreport to finish | ||
|results= | |results= | ||
# Verify that the file {{filename|sosreport.tar.xz}} exists in directory {{filename|/var/ | # Verify that the file {{filename|sosreport.tar.xz}} exists in directory {{filename|/var/spool/abrt/<the_crash_directory>}} and has some reasonable content | ||
# The tarball should contain config files from /etc, grub.conf, some info from /proc, loaded modules, and much more | # The tarball should contain config files from /etc, grub.conf, some info from /proc, loaded modules, and much more | ||
}} | }} | ||
[[Category:Package_abrt_test_cases]] | [[Category:Package_abrt_test_cases]] |
Latest revision as of 12:23, 1 April 2011
Description
This test case checks whether sosreport cooperates with ABRT correctly.
How to test
- Ensure the
sos
package is installed with the commandsu -c 'yum install sos'
sosreport
is disabled by default, enable it by editing the config file/etc/abrt/abrt_event.conf
, and commenting out lineEVENT=
relevant tososreport
, so you have- EVENT=post-create
- nice sosreport --tmp-dir "$DUMP_DIR" --batch \
- [...]
- Restart the abrtd service:
su -c 'systemctl restart abrtd.service'
- Crash a running application, with the command
pkill -SIGSEGV (appname)
- Wait for a crash notification to appear: it might take some time (~20 s) before the icon appears, as it waits for sosreport to finish
Expected Results
- Verify that the file
sosreport.tar.xz
exists in directory/var/spool/abrt/<the_crash_directory>
and has some reasonable content - The tarball should contain config files from /etc, grub.conf, some info from /proc, loaded modules, and much more