path: root/tests/
AgeCommit message (Collapse)AuthorFiles
2019-06-02Speed up tests.Sergey Poznyakoff1
Presence of the ~/.netrc file can slow down execution because of eventual DNS calls in hostcmp. Provide an option to disable netrc parsing and use it in tests. * src/piesctl-cl.opt: New option: --no-netrc. * doc/pies.texi: Document --no-netrc * src/piesctl.c (shttp_connect): Don't read ~/.netrc if given --no-netrc. * tests/ Pass --no-netrc to piesctl. * tests/ Likewise. * tests/ Likewise. * tests/ Likewise. * tests/ Likewise.
2019-06-02Rewrite the testsuiteSergey Poznyakoff1
The aim is to run pies in foreground if possible. Limit execution time using external wrapper. * src/pies.c: (_cb_redir): Consistently return 1 on errors. * tests/aux/sleepexit: New file. * tests/aux/startcheck: New file. * tests/aux/touchfile: Change arguments. * tests/aux/respawn: Rewrite. * tests/lines.c: New noinst program. * tests/to.c: New noinst program. * tests/.gitignore: Add new programs. * tests/ Update. * tests/ Use to to avoid hanging forever. Add missing popdef. * tests/ Use echo as component program. * tests/ Run pies in foreground. Use to to limit execution time. * tests/ Likewise. * tests/ Likewise. * tests/ Likewise. * tests/ Use sleepexit as component program. * tests/ Likewise.
2019-05-24Implement shutdown componentsSergey Poznyakoff1
* src/pies.h: Update comment. * src/progman.c (register_prog0): Register shutdown components in disabled state. (program_shutdown): New function. (progman_stop): Call program_shutdown. * tests/ New test. * tests/ Add new test. * tests/ Likewise. * tests/aux/startup: Rename to tests/aux/touchfile * tests/ Reflect the change.

Return to:

Send suggestions and report system problems to the System administrator.