]> git.ipfire.org Git - thirdparty/openvpn.git/commit
introduce V= level to manage t_client.sh output verbosity
authorGert Doering <gert@greenie.muc.de>
Tue, 20 Sep 2022 13:23:51 +0000 (15:23 +0200)
committerGert Doering <gert@greenie.muc.de>
Tue, 27 Sep 2022 15:53:52 +0000 (17:53 +0200)
commit398f73094a692ba46be7e3205b65d915d2593a64
tree188b1f8a47a337684e1158366a91379b1c116fa8
parent27229d174d4dec2cbfcf05865d49ef48442c2ff3
introduce V= level to manage t_client.sh output verbosity

If t_client.sh is run interactively, more verbose output is useful
to quickly see what it is doing.  If run from a CI environment, going
through lots of output for successful tests just to find the one that
failed is non-useful.

Introduce V=<n> environment variable to control output verbosity

 V=0 - do not print any per-test output at all, just overall summary
 V=1 - print single header line for each successful test
       print full output for failing tests
 V=99 - print full output, always, as before

default is V=1 now

Signed-off-by: Gert Doering <gert@greenie.muc.de>
v2:
 fix erroneous test on "-n"
 do not accumulate extra "\n" in outbuf (V=1)
 fix missing "-e" at "test failures. FAIL." message
 fix missing "\n" when including "diff" output
 fix missing "-n" when printing outbuf (= extra newline)
 (and more newlines being shuffled around)

v3:
 fix quoting on inclusion of "ifconfig/route diff", with newlines...

Acked-by: Frank Lichtenheld <frank@lichtenheld.com>
Acked-by: Antonio Quartulli <a@unstable.cc>
Message-Id: <20220920132351.27718-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg25285.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
tests/t_client.sh.in