Commit Graph

15 Commits

Author SHA1 Message Date
Thomas Orozco fe4b2f0a6b Add an environment variable flag for -g
Fixes: #100
2018-04-21 09:13:40 +02:00
Thomas Orozco 1487373aa2 Exercise pdeathsignal in tests
See: https://github.com/krallin/tini/pull/114#issuecomment-382756277
2018-04-19 16:25:15 +01:00
Thomas Orozco 4466cecec2 Add -e flag to a expect a given exit code
Passing this flag causes Tini to remap the given exit code to 0 when
forwarding it.

Fixes: #69
2018-02-18 16:20:20 +01:00
zimbatm 8574e10c2a add a -w option to warn on reaping children
Well designed software should not produce any zombie or re-parenting
processes.

This adds an option to warn in the logs when reaping of zombies is
happening so that it can be monitored and fixed in subsequent releases
of the software.
2018-02-18 16:05:09 +01:00
Thomas Orozco 540eb7b637 Build musl-based binaries
Also fixed a bug with the signals test, which didn't properly exercise
Tini: rather than check that Tini was properly exiting with 128 +
signal, it raced against Tini and was only successful if Tini didn't get
the change to spawn a subprocess!
2017-06-10 16:47:50 +02:00
Thomas Orozco b67a024460 Rename NO_ARGS to MINIMAL 2016-11-04 18:06:25 +01:00
Thomas Orozco b3a2ba638e NO_ARGS: White labelling
- Don't mention options that don't exist in Usage.
- Don't include a log prefix when NO_ARGS is set.
- Turn up the default verbosity to FATAL when NO_ARGS is set.
- Expose verbosity via an ENV var for debugging.
2016-11-04 13:22:41 +01:00
Thomas Orozco 480fed14ae Optionally disable arg parsing (-DNO_ARGS=ON) 2016-11-02 18:05:12 +01:00
Thomas Orozco fa597944fa Log reaping test failures 2016-11-02 17:43:03 +01:00
Thomas Orozco 1a8dc6e21c Cleanup internal tests a little bit
No functional changes here.
2015-10-31 15:31:57 +01:00
Thomas Orozco a0bf435d2f Test that Tini restores signal configuration
Tini ignores certain signals, and blocks others, but in both cases
we restore them before executing the child process.

Add tests to ensure that we actually do that!
2015-10-31 15:31:57 +01:00
Thomas Orozco e7bae983c6 Add tests for process group support 2015-10-26 21:52:06 +01:00
Thomas Orozco 4b3075a11d Add tests for subreaper-less Tini
If we're going to make subreaper support an option, we should ensure
that running without subreaper support also works.
2015-09-06 15:29:11 +02:00
Thomas Orozco 98e4449b36 Add tests for subreaping (and subreaping failures) 2015-09-01 21:17:10 +02:00
Thomas Orozco 1a863f8366 Run some functional tests in ci/run_build.sh
Using the child subreaper mechanism, we can actually run
tests inside the CI environment without depending on Docker.

While this does not replace the existing tests, it allows
at least some functional coverage within CI.
2015-07-05 14:25:21 +02:00