]> git.ipfire.org Git - thirdparty/openvpn.git/commit
denoise tests/t_lpback.sh
authorGert Doering <gert@greenie.muc.de>
Tue, 4 Oct 2022 13:14:03 +0000 (15:14 +0200)
committerGert Doering <gert@greenie.muc.de>
Wed, 5 Oct 2022 11:27:52 +0000 (13:27 +0200)
commit977e0650c11500d3696419afbedf4a8f42ab6760
tree11ded413942b9a0f9a12d44e26891fbab8a2a837
parentfacb6fffb35f51e67eefaab8ba357b676b3c6328
denoise tests/t_lpback.sh

Introduce V=<nn> levels to t_lpback.sh self test

 V=0  - do not print any output at all
 V=1  - print intro line, summary at end, and "FAIL"+Log for failing tests
 V=99 - print everything + summary

code-wise, introduce test_start() / test_end() functions which do
the $? check as well, so the actual testing code is streamlined.

v2:
  replace indent tabs with spaces
  change [ $V == 1 ] expression to [ $V = 1 ] (POSIXly correct)

Signed-off-by: Gert Doering <gert@greenie.muc.de>
Acked-by: Frank Lichtenheld <frank@lichtenheld.com>
Message-Id: <20221004131403.95597-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg25332.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
tests/t_lpback.sh