[Openvpn-devel] [PATCH 1/2] t_net.sh: make bash dep explicit and run only if SITNL is compiled

2019-06-15 Thread Antonio Quartulli
From: Antonio Quartulli The t_net script currently has #!/bin/sh but it implicitly assume to be using bash. This is fine on most distros, but some do not have sh pointing to bash by default, thus breaking the script. Explicitly use bash to avoid failures. On the other hand, run this unit-test on

[Openvpn-devel] [PATCH 2/2] t_net.sh: properly perform sudo check and print test steps

2019-06-15 Thread Antonio Quartulli
From: Antonio Quartulli The current script is performing a tes ton the "kill" command, but this is not useful to the t_net.sh script as it never really executes it. Rather test that "sudo " really works. has to be added to the sudoers file if this test has to be performend unattanded. The path