After taking a look to the mmnormalize tests, I noticed that the configs
do not all work as expected at the moment.
For example the the mmnormalize_tokenized.conf contains an if-else block
with SET  expressions. The block is run through ruleset.c
(scriptIterateAllActions) which does not support S_SET. Only rainerscript
does.

Also the some tests like "mmnormalize_regex_disabled.sh" even return
success when the mmnormalize plugin  isn't even compiled and cannot be
loaded.

The tests do not seem to be compatible with the current rsyslog version
anymore and need to be reworked.
Properly the reason why they were disabled in travis?

Best regards,
Andre Lorbach


> -----Original Message-----
> From: [email protected] [mailto:rsyslog-
> [email protected]] On Behalf Of David Lang
> Sent: Mittwoch, 19. August 2015 19:04
> To: rsyslog-users
> Subject: Re: [rsyslog] mmnormalize_{variable, tokenized, regex}.sh tests
are
> failing with liblognorm-1.1.2
>
> On Wed, 19 Aug 2015, Thomas D. wrote:
>
> > Hi,
> >
> > David Lang wrote:
> >>> Another change in 1.1.2 that may bite people is that it introduces
> >>> the capability for rules to be multiline by allowing newlines inside
> >>> a tag definition. If someone has a bad config (uneven number of % on
> >>> a line), the newline will no longer terminate that bad rule, all
> >>> rules follwoing it will not be parsed (until it hits the next line
> >>> with an uneven number of % on the line)
> >>>
> >>> [...]
> >>>
> >>> Personally, I would probably concentrate on testing liblognorm-2.0
> >>> >>
> > and the upgrade process to it rather than spending much effort on
> >>> 1.1.2
> >
> > Well, liblognorm-1.1.1 to 1.1.2 is a *minor* bump according to the
> > version number.
> >
> > This shouldn't require any test to be rewritten or break any software
> > which was working with liblognorm-1.1.1. If it does, it isn't a minor
> > bump and the version number/SONAME is wrong ;)
> >
> > We bumped liblognorm because we thought it is just a bugfix release...
> >
> > Regarding your first paragraph: You said "has a bad config"... if that
> > mean that the user wrote something which was violating specs but was
> > working due to a bug and now because the bug is fixed in v1.1.2 it
> > will break like it should from the beginning, that's ok. If it is a
> > changed behavior, it isn't OK.
>
> by 'had a bad config', I'm meaning that it's a config that was bad in
v1.1.1 and
> earlier.
>
> The difference is that in the earlier versions, each line was processed
> individually, so a bad config only affected that line, following lines
would still
> work.
>
> on 1.1.2 (and 2.0), multiline rules are allowed, and so lines that
previously
> were bad, but only affected that line, now trigger the multiline logic
and so
> rules after that no longer work.
>
> so it's a config that violates specs that now causes more grief than
before.
>
> David Lang
>
> >
> > I created a PR (https://github.com/rsyslog/rsyslog/pull/492) which
> > enables mmnormalize in Travis to keep track.
> >
> >
> > -Thomas
> >
> > _______________________________________________
> > rsyslog mailing list
> > http://lists.adiscon.net/mailman/listinfo/rsyslog
> > http://www.rsyslog.com/professional-services/
> > What's up with rsyslog? Follow https://twitter.com/rgerhards NOTE
> > WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of
sites
> beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T
> LIKE THAT.
> >
> _______________________________________________
> rsyslog mailing list
> http://lists.adiscon.net/mailman/listinfo/rsyslog
> http://www.rsyslog.com/professional-services/
> What's up with rsyslog? Follow https://twitter.com/rgerhards NOTE WELL:
> This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of sites
beyond
> our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE THAT.
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to