From Fedora Project Wiki
No edit summary |
(don't show up in Category:Package_abrt_test_cases) |
||
(7 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
{{QA/Test_Case | {{QA/Test_Case | ||
|description= | |description= | ||
This | This test case checks whether [[Features/ABRT|ABRT's]] actions and reporters function works correctly. | ||
{{admon/warning|Please disregard this test case.|This test case was written for ABRT 1 which has already been replaced by ABRT 2.}} | |||
|actions= | |actions= | ||
Edit config file | # Ensure the appropriate packages are installed with the command {{command|su -c 'yum install abrt-plugin-runapp abrt-plugin-mailx'}} | ||
<pre> | # Edit the config file {{filename|/etc/abrt/abrt.conf}}, and change the ''ActionsAndReporters'' line to read: | ||
# | #:<pre> | ||
#:ActionsAndReporters = RunApp("ls", "ls-output") | |||
#:</pre> | |||
{{admon/warning|The following test doesn't work|There is a regression in abrt that prevents this option to work.}} | |||
# Set up an executable-specific report action in the ''AnalyzerActionsAndReporters'' section, such as: | |||
#:<pre> | |||
#: [ 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") | |||
#:</pre> | |||
<pre> | # Restart ABRT with the command {{command|su -c 'service abrtd restart'}} | ||
[ AnalyzerActionsAndReporters ] | # Run the specified command (gedit in our example) and then kill it with the command {{command|kill -SIGSEGV (pid)}} | ||
# all C/C++ | |||
CCpp = Logger | |||
# if | |||
CCpp: | |||
# | |||
</pre> | |||
it | |||
|results= | |results= | ||
Verify that the | # Verify that a directory listing appears in the file {{filename|ls-output}} located at /var/cache/abrt/<the_crash_directory> | ||
#* the_crash_directory will be something like ccpp-1270110556-2295 (the format is: <analyzer>-<time>-<pid>) | |||
# -- DOESN'T WORK --Verify that the Mailx plugin was used to send a mail about the crash | |||
}} | }} | ||
Latest revision as of 06:37, 19 September 2018
Description
This test case checks whether ABRT's actions and reporters function works correctly.
How to test
- Ensure the appropriate packages are installed with the command
su -c 'yum install abrt-plugin-runapp abrt-plugin-mailx'
- Edit the config file
/etc/abrt/abrt.conf
, and change the ActionsAndReporters line to read:- ActionsAndReporters = RunApp("ls", "ls-output")
- 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")
- Restart ABRT with the command
su -c 'service abrtd restart'
- Run the specified command (gedit in our example) and then kill it with the command
kill -SIGSEGV (pid)
Expected Results
- Verify that a directory listing appears in the file
ls-output
located at /var/cache/abrt/<the_crash_directory>- the_crash_directory will be something like ccpp-1270110556-2295 (the format is: <analyzer>-
- -- DOESN'T WORK --Verify that the Mailx plugin was used to send a mail about the crash