]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Fix update_t_client_ips.sh for out of tree builds
authorSamuli Seppänen <samuli@openvpn.net>
Tue, 8 Nov 2016 12:55:26 +0000 (14:55 +0200)
committerGert Doering <gert@greenie.muc.de>
Tue, 8 Nov 2016 13:33:07 +0000 (14:33 +0100)
Signed-off-by: Samuli Seppänen <samuli@openvpn.net>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <1478609729-25222-2-git-send-email-samuli@openvpn.net>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg12952.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
tests/t_client.rc-sample
tests/t_client.sh.in

index 59f34c7f27ebb7a91a6835d0aa334a029c74d7b8..31dfafac02b30d7145ee06a5a9eb329835be5a45 100644 (file)
@@ -13,8 +13,8 @@ CLIENT_KEY="${top_srcdir}/sample/sample-keys/client.key"
 CLIENT_CERT="${top_srcdir}/sample/sample-keys/client.crt"
 
 # Load EXPECT_IFCONFIG* parameters from cache
-if [ -r "${top_srcdir}/t_client_ips.rc" ]; then
-    . "${top_srcdir}/t_client_ips.rc"
+if [ -r "${top_builddir}/t_client_ips.rc" ]; then
+    . "${top_builddir}/t_client_ips.rc"
 else
     echo "NOTICE: missing t_client_ips.rc will be auto-generated"
 fi
index 6c81bc41292a44a023dccf1c74668aa588009bbc..408703ee5f5288b3a0e52e75e98eb4d03de3d3e3 100755 (executable)
@@ -275,7 +275,7 @@ do
     # If EXCEPT_IFCONFIG* variables for this test are missing, run an --up
     # script to generate them dynamically.
     if [ -z "$expect_ifconfig4" ] || [ -z "$expect_ifconfig6" ]; then
-        up="--setenv TESTNUM $SUF --setenv TOP_BUILDDIR ${top_builddir} --script-security 2 --up ${top_builddir}/tests/update_t_client_ips.sh"
+        up="--setenv TESTNUM $SUF --setenv TOP_BUILDDIR ${top_builddir} --script-security 2 --up ${srcdir}/update_t_client_ips.sh"
     fi
 
     echo -e "\n### test run $SUF: '$test_run_title' ###\n"