]> git.ipfire.org Git - thirdparty/openvpn.git/commit
t_net.sh: properly perform sudo check and print test steps
authorAntonio Quartulli <antonio@openvpn.net>
Sat, 15 Jun 2019 23:02:13 +0000 (01:02 +0200)
committerGert Doering <gert@greenie.muc.de>
Sun, 16 Jun 2019 08:28:52 +0000 (10:28 +0200)
commit6f89dac0ed8b84bc581ceda710c506be2287f2b5
tree9faee88f71620f99c3547c79d5113ba5294e7b80
parent1e894662c6a455e6ab7aa1bb2d9a8d3296265199
t_net.sh: properly perform sudo check and print test steps

The current script is performing a test on the "kill" command, but this
is not useful to the t_net.sh script as it never really executes it.

Rather test that "sudo <unit-test-binary>" really works.

<unit-test-binary> has to be added to the sudoers file if this test
has to be performend unattanded. The path is:
./unit_tests/openvpn/networking_testdriver

On top of that, print a simple OK for every test that is succesful.

Signed-off-by: Antonio Quartulli <antonio@openvpn.net>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20190615230213.14888-2-a@unstable.cc>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg18548.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
tests/t_net.sh
tests/unit_tests/openvpn/test_networking.c