Util-Linux package development
 help / color / mirror / Atom feed
* [PATCH v2 0/7] logger tests do not need /dev/log but socat
@ 2015-04-13 12:01 Ruediger Meier
  2015-04-13 12:01 ` [PATCH v2 1/7] logger: --stderr and --no-act turn "auto-errors" on Ruediger Meier
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Ruediger Meier @ 2015-04-13 12:01 UTC (permalink / raw)
  To: util-linux

From: Ruediger Meier <ruediger.meier@ga-group.nl>

This is version 2 of pull request #194 on github
https://github.com/karelzak/util-linux/pull/194

Now we require socat for logger tests. We should NOT add fallback to
netcat-like tools. I have tried this but there are too many different
and broken netcat versions out there.

To avoid socat dependency we could write our own test helper. I had
already done this for testing but I think that socat is just the right
tool for this. We may also add more tests with for tcp or udp listeners
...


Ruediger Meier (7):
  logger: --stderr and --no-act turn "auto-errors" on
  tests: simplify common logger options
  tests: logger with socat device
  tests: logger, validate written socket data
  tests: logger/errors does not use --no-act
  tests: add subtests for invalid logger devive
  travis: install socat

 .travis-functions.sh                        |  1 +
 misc-utils/logger.c                         |  5 ++-
 tests/expected/logger/errors-check_socket   | 21 ++++++++++++
 tests/expected/logger/errors-invalid_socket |  2 ++
 tests/expected/logger/formats-check_socket  |  1 +
 tests/expected/logger/options-check_socket  |  1 +
 tests/functions.sh                          | 29 ++++++++++++++++
 tests/ts/logger/errors                      | 52 +++++++++++++++++++----------
 tests/ts/logger/formats                     | 39 +++++++++++++++-------
 tests/ts/logger/journald                    |  2 +-
 tests/ts/logger/options                     | 21 ++++++++++--
 11 files changed, 138 insertions(+), 36 deletions(-)
 create mode 100644 tests/expected/logger/errors-check_socket
 create mode 100644 tests/expected/logger/errors-invalid_socket
 create mode 100644 tests/expected/logger/formats-check_socket
 create mode 100644 tests/expected/logger/options-check_socket

-- 
1.8.4.5


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-04-14 10:04 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-13 12:01 [PATCH v2 0/7] logger tests do not need /dev/log but socat Ruediger Meier
2015-04-13 12:01 ` [PATCH v2 1/7] logger: --stderr and --no-act turn "auto-errors" on Ruediger Meier
2015-04-13 12:01 ` [PATCH v2 2/7] tests: simplify common logger options Ruediger Meier
2015-04-13 12:01 ` [PATCH v2 3/7] tests: logger with socat device Ruediger Meier
2015-04-13 12:01 ` [PATCH v2 4/7] tests: logger, validate written socket data Ruediger Meier
2015-04-13 12:01 ` [PATCH v2 5/7] tests: logger/errors does not use --no-act Ruediger Meier
2015-04-13 12:01 ` [PATCH v2 6/7] tests: add subtests for invalid logger devive Ruediger Meier
2015-04-13 12:01 ` [PATCH v2 7/7] travis: install socat Ruediger Meier
2015-04-14 10:04 ` [PATCH v2 0/7] logger tests do not need /dev/log but socat Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox