From Fedora Project Wiki

Line 4: Line 4:
  
 
|actions=
 
|actions=
# Create file /etc/abrt/events.d/processes.conf with content:
+
# Create file /etc/abrt/events.d/3rd-party.conf with content:
#:<pre>EVENT=post-create ps auxf > /tmp/process.crash.`date +"%Y-%m-%d_%H:%M:%N"`</pre>
+
#:<pre>EVENT=post-create echo "Custom 3rd party configuration was used" > /tmp/3rd-party-notice.$(date +"%Y-%m-%d_%H:%M:%N")</pre>
 
# Restart ABRT deamon
 
# Restart ABRT deamon
 
# Crash some aplication
 
# Crash some aplication
  
 
|results=
 
|results=
# A file /tmp/process.crash.* for each application crash is created and contains the output of ps auxf command.
+
# A file 3rd-party-notice.* with text above should exist in /tmp
 
}}
 
}}
 
[[Category:Package_abrt_test_cases]]
 
[[Category:Package_abrt_test_cases]]

Revision as of 18:20, 16 March 2011

Description

This test case tests EVENT configuration in ABRT.


How to test

  1. Create file /etc/abrt/events.d/3rd-party.conf with content:
    EVENT=post-create echo "Custom 3rd party configuration was used" > /tmp/3rd-party-notice.$(date +"%Y-%m-%d_%H:%M:%N")
  2. Restart ABRT deamon
  3. Crash some aplication

Expected Results

  1. A file 3rd-party-notice.* with text above should exist in /tmp