From Fedora Project Wiki

No edit summary
(convert to new category system)
 
(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 [[Features/ABRT|ABRT]] feature.
|description=This test case tests that [[Features/ABRT|ABRT]]'s ability to report crashes only in signed packages works correctly.
{{admon/important|This can be tested on Fedora 11 only|This test case can't be tested on Rawhide or provided LiveCD because the packages are not properly signed in these distributions.}}
{{admon/important|This test case can run only with correctly signed packages.|This test case can't be run on Rawhide or Rawhide-based builds because the packages are not properly signed in these distributions.}}
|actions=
|actions=
Edit config file /etc/abrt/abrt.conf, where you should find lines:
# Edit config file {{filename|/etc/abrt/abrt.conf}}, and ensure OpenGPGCheck is set to ''yes''.
<pre>
# Restart ABRT with the command {{command|su -c 'service abrtd restart'}}.
[ Common ]
# Test crashing programs from official (hence signed) packages, and from unsigned packages or non-packaged programs.
# Enable GPG check
# Repeat the tests with OpenGPGCheck set to ''no''.
# this option is to ensure, that we primary report crashes only in fedora signed packages
# if you disable this abrt will report crashes in customized unsigned packages
 
EnableOpenGPG = no
</pre>
 
'''Please rename <code>EnableOpenGPG</code> to <code>OpenGPGCheck</code>''' (it is a mistake in the config file) and set it to ''yes'' or ''no''.
 
Restart ABRT: <pre># service abrt restart</pre>
 
Test crashing programs from Fedora package, from 3rd party package or your own package.
 
* When using our LiveCD, you can use prepared tools <code>segfaulter</code> (which immediately crashes) and <code>sleeper</code> (which sleeps and waits to be killed). They are from an '''unsigned''' package <code>abrt-test</code>.
* When not using our LiveCD, you can add this repository: <pre>wget -O /etc/yum.repos.d/abrt-test.repo http://dpravec.fedorapeople.org/repos/abrt-test/abrt-test.repo</pre> and install <code>abrt-test</code> package to get these tools.
|results=
|results=
# for ''yes'', ABRT should '''ignore''' crashes of programs from unsigned packages;
# for ''yes'', ABRT should '''ignore''' crashes of programs not from signed packages.
# for ''no'',  ABRT should '''notice''' crashes of programs from unsigned packages.
# for ''no'',  ABRT should '''notice''' crashes of programs not from signed packages.
}}
}}
[[Category:ABRT_Test_Cases]]
[[Category:Package_abrt_test_cases]]

Latest revision as of 16:17, 13 January 2011

Description

This test case tests that ABRT's ability to report crashes only in signed packages works correctly.

Important.png
This test case can run only with correctly signed packages.
This test case can't be run on Rawhide or Rawhide-based builds because the packages are not properly signed in these distributions.


How to test

  1. Edit config file /etc/abrt/abrt.conf, and ensure OpenGPGCheck is set to yes.
  2. Restart ABRT with the command su -c 'service abrtd restart'.
  3. Test crashing programs from official (hence signed) packages, and from unsigned packages or non-packaged programs.
  4. Repeat the tests with OpenGPGCheck set to no.

Expected Results

  1. for yes, ABRT should ignore crashes of programs not from signed packages.
  2. for no, ABRT should notice crashes of programs not from signed packages.