It worked for me as well, once I installed python-lxml (on Ubuntu lucid). Anyone wishing to test for the embedded examples, just use: bin/test-patterns.py <pathtopdb> <pathtopdbtool> I've used the pdbtool in 3.2, but it should work with the one in 3.1 as well. Applied both. Thanks Bálint. On Thu, 2010-07-15 at 15:51 +0200, Balint Kovacs wrote:
On 07/15/2010 03:01 PM, Balazs Scheidler wrote:
On Thu, 2010-07-15 at 14:46 +0200, Balazs Scheidler wrote:
On Thu, 2010-07-15 at 14:16 +0200, ILLES, Marton wrote:
Hi,
I took the liberty and created my own patterndb git tree, so i can track my patches there and Bazsi can easily pull from there. You can check it at git.balabit.hu: http://git.balabit.hu/?p=marci/syslog-ng-patterndb.git;a=summary
I have added a small python script test-patterns.py which can be used to automatically check the example messages against the patterns, while it also verifies the parsed name/value pairs. It is kind of a handy tool when you poke with the patterns and want to run automatic tests. It requires pdbtool and python xml package.
Could you be more specific which XML package is needed? I've tried everything, but none of them worked with the script.
The old python-xml package from jaunty would be needed but is not available for recent distros. I refactored it to use python-lxml, please find the patch attached. I also ran into some UTF-8 related output trouble that the other patch fixes. Both tested on Ubuntu Lucid and strictly WORKSFORME.
-- Bazsi