misc: Add syslog test
commit096c27684a084ea06c0e0c681358738731ac0b52
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 9 Apr 2021 11:34:22 +0000 (9 08:34 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 15 Apr 2022 13:41:50 +0000 (15 10:41 -0300)
tree5c5d8e34dfd1af7d60312a7858a7ce695b678d30
parente3fdbe9f39747206b9c3fbb0219f29fd5b35d020
misc: Add syslog test

The test cover:

  - All possible priorities and facilities through TCP and UDP.
  - Same syslog tests for vsyslog.
  - Some openlog/syslog/close combinations.
  - openlog with LOG_CONS, LOG_PERROR, and LOG_PID.

Internally is done with a test-container where the main process mimics
the syslog server interface.

The test does not cover multithread and async-signal usage.

Checked on x86_64-linux-gnu.
misc/Makefile
misc/tst-syslog.c [new file with mode: 0644]