Thread: [pgagent] regression test

[pgagent] regression test

From
Christoph Berg
Date:
The Debian package includes a regression test for pgagent which might
be useful for others as well. It installs a simple job, fires up
pgagent for 80 s (using `timeout` from coreutils), and checks if the
job was run at least once.

Christoph

Attachment

Re: [pgagent] regression test

From
Dave Page
Date:


On Fri, Jul 20, 2018 at 10:28 AM, Christoph Berg <myon@debian.org> wrote:
The Debian package includes a regression test for pgagent which might
be useful for others as well. It installs a simple job, fires up
pgagent for 80 s (using `timeout` from coreutils), and checks if the
job was run at least once.

Cool, thanks!

I've committed this with a few minor changes:

- Update the expected output files which seemed to have Windows line endings which caused failures.
- Remove the dependency on the "timeout" command which doesn't exist on macOS (and the version in macPorts doesn't play nicely with /dev/null). Use bash-fu instead.
- Add some usage notes to the README file. 

Thanks again!

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company