References: <20161004113854.42470-1-gert@...1296...> From: Arne Schwabe Message-ID: Date: Tue, 4 Oct 2016 13:53:44 +0200 MIME-Version: 1.0 In-Reply-To: <20161004113854.42470-1-gert@...1296...> Subject: Re: [Openvpn-devel] [PATCH] add POSTINIT_CMD_suf to t_client.sh and sample config List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit To: Gert Doering , openvpn-devel@lists.sourceforge.net Am 04.10.16 um 13:38 schrieb Gert Doering: > We have pre-init and cleanup commands, but some test cases might need > or want to run a shell script after openvpn has initialized, but before > executing any tests (ifconfig comparison and ping). > > Example: POSTINIT_CMD_4="sleep 5" on MacOS X for tap tests (IPv6 DAD) > > Signed-off-by: Gert Doering > --- > tests/t_client.rc-sample | 3 +++ > tests/t_client.sh.in | 7 +++++++ > 2 files changed, 10 insertions(+) > > diff --git a/tests/t_client.rc-sample b/tests/t_client.rc-sample > index fb2abfa..59f34c7 100644 > --- a/tests/t_client.rc-sample > +++ b/tests/t_client.rc-sample > @@ -75,6 +75,9 @@ RUN_TITLE_2="testing tun/tcp/ipv4+ipv6" > OPENVPN_CONF_2="$OPENVPN_BASE_P2MP --dev tun --proto tcp --remote $REMOTE --port 51194" > PING4_HOSTS_2="10.100.51.1 10.100.0.1" > PING6_HOSTS_2="2001:db8::1 2001:db8:a051::1" > +# > +# run command after openvpn initialization is done - here: delay 5 seconds > +POSTINIT_CMD_2="sleep 5" ACK. Also workaround/fixes the DAD problem on OS X for tap. Arne