diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2019-06-02 11:57:42 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2019-06-02 11:57:42 +0300 |
commit | 685600d72b0c300f94c0c69dc0a16c4ebb230a21 (patch) | |
tree | 3a3ea6f43a8cdc543118e2cf81d29628dc82f61f /tests/env.at | |
parent | cc298a11a131b162f291d6ee27ba1d7598a1b6c4 (diff) | |
download | pies-685600d72b0c300f94c0c69dc0a16c4ebb230a21.tar.gz pies-685600d72b0c300f94c0c69dc0a16c4ebb230a21.tar.bz2 |
Rewrite the testsuite
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/Makefile.am: Update.
* tests/env.at: Use to to avoid hanging forever.
Add missing popdef.
* tests/redirect.at: Use echo as component program.
* tests/respawn.at: Run pies in foreground. Use to to limit execution
time.
* tests/shell.at: Likewise.
* tests/shutdown.at: Likewise.
* tests/startup.at: Likewise.
* tests/ret-exec.at: Use sleepexit as component program.
* tests/ret-notify.at: Likewise.
Diffstat (limited to 'tests/env.at')
-rw-r--r-- | tests/env.at | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/env.at b/tests/env.at index 26fe866..c293c65 100644 --- a/tests/env.at +++ b/tests/env.at | |||
@@ -20,7 +20,10 @@ component envtest { | |||
20 | } | 20 | } |
21 | _EOT | 21 | _EOT |
22 | 22 | ||
23 | envtest -exec $abs_top_builddir/src/pies --foreground --stderr --config-file control.conf --config-file envtest.conf 2>errlog | 23 | to 3 \ |
24 | envtest -exec \ | ||
25 | $abs_top_builddir/src/pies --foreground --stderr \ | ||
26 | --config-file control.conf --config-file envtest.conf 2>errlog | ||
24 | cat log | 27 | cat log |
25 | ], | 28 | ], |
26 | [0], | 29 | [0], |
@@ -63,3 +66,5 @@ PATH="/usr/local/bin:/usr/bin:/bin" | |||
63 | PIES_INSTANCE="pies" | 66 | PIES_INSTANCE="pies" |
64 | USER="user" | 67 | USER="user" |
65 | ]) | 68 | ]) |
69 | |||
70 | m4_popdef([ENVTEST]) | ||