]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Automatically cache expected IPs for t_client.sh on the first run
authorSamuli Seppänen <samuli@openvpn.net>
Mon, 3 Oct 2016 10:51:27 +0000 (13:51 +0300)
committerGert Doering <gert@greenie.muc.de>
Tue, 4 Oct 2016 09:19:18 +0000 (11:19 +0200)
commitbeca355525fd250f660b5c400edd3ba83d25f171
tree129f6ab44495aead3c62b07e156c85d83fb888b9
parentc32f58c404fe582140ba72a124bb0a08917aa97f
Automatically cache expected IPs for t_client.sh on the first run

Previously one had to manually define correct values for the
EXPECT_IFCONFIG* variables based on what IPv4 and IPv6 addresses
the test VPN server handed out.

This was a tedious process especially with large number of tests,
as the IPs changed for every test client and for every test. With this
patch t_client.sh figures out the correct IP addresses using an
--up script and caches them to a separate file for later use.

Signed-off-by: Samuli Seppänen <samuli@openvpn.net>
Acked-by: Arne Schwabe <arne@rfc2549.org>
Message-Id: <1475491887-740-1-git-send-email-samuli@openvpn.net>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg12587.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
(cherry picked from commit df0b00c253e41cce9567be79dbd3faa14c60473b)
.gitignore
tests/t_client.rc-sample
tests/t_client.sh.in
tests/update_t_client_ips.sh [new file with mode: 0755]