[augeas-devel] Need help with logrotate lens enhancement
Sean E. Millichamp
sean at bruenor.org
Thu Oct 2 11:13:33 UTC 2008
On Thu, 2008-10-02 at 08:00 +0200, Raphaël Pinson wrote:
> You have to run augparse twice.
> * 'augparse -I . logrotate.aug' tests the lens itself to make sure it
> doesn't generate conflicts ('-I .' is used in case your lens depends
> on local modifications of other lenses).
> * 'augparse -I. tests/test_logrotate.aug' launches the test file for
> logrotate, using the lenses in the current directory (including the
> logrotate.aug you just tested).
Ah, okay. I wasn't doing that. I convinced myself that I had seen
augparse invoke the tests at one point so I began to assume it did.
> Usually, I do a few more tests using the -r option, like
> 'augtool -I . -r fakeroot'
> and playing a bit with files in the fakeroot directory.
Neat option... and here I was modifying the actual logrotate files on my
system... heh.
Sean
More information about the augeas-devel
mailing list