author | Sergey Poznyakoff <gray@gnu.org> | 2019-06-02 08:57:42 (GMT) |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2019-06-02 08:57:42 (GMT) |
commit | 685600d72b0c300f94c0c69dc0a16c4ebb230a21 (patch) (side-by-side diff) | |
tree | 3a3ea6f43a8cdc543118e2cf81d29628dc82f61f /tests/Makefile.am | |
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.
-rw-r--r-- | tests/Makefile.am | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index 419818b..14f5b4f 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -18,7 +18,9 @@ AUXTOOLS = \ aux/respawn\ aux/retcode\ aux/mailer\ - aux/touchfile + aux/touchfile\ + aux/sleepexit\ + aux/startcheck EXTRA_DIST = $(TESTSUITE_AT) testsuite package.m4 $(AUXTOOLS) DISTCLEANFILES = atconfig $(check_SCRIPTS) @@ -62,7 +64,7 @@ TESTSUITE_AT = \ TESTSUITE = $(srcdir)/testsuite M4=m4 -noinst_PROGRAMS = envtest +noinst_PROGRAMS = envtest to lines AM_CPPFLAGS = \ -I$(top_srcdir)/lib\ @GRECS_INCLUDES@ |