SA Bugzilla – Bug 142
Add a mode for syntax-checking rules files
Last modified: 2002-08-22 07:09:21 UTC
Maybe there's an easy way to do this already that I'm just not finding, but I occassionally introduce syntax errors into the local.cf file and end up having a lot of tests skipped until I notice the problem in my procmail logs. It's be nice if there were an option to run spamassassin so that it would load and thereby syntax-check all the rules files, and then exit with success or failure based on the success of loading the files.
It's called "make test"
I don't want to rebuild spamassassin, or even need to have access to the build tree, just to check the syntax of one new rule added to local.cf. I also believe that "make test" should be ignoring the locally installed rules to begin with, because local changes to the scores might cause the test results to change, producing bogus test failures.
ok, now in CVS for 2.40