1 |
cedk 08/09/28 12:48:11 |
2 |
|
3 |
Added: openvpn-2.1_rc9-tests.patch |
4 |
Log: |
5 |
Add tests patch for bug #236877 |
6 |
(Portage version: 2.1.4.4) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 net-misc/openvpn/files/openvpn-2.1_rc9-tests.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/openvpn/files/openvpn-2.1_rc9-tests.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/openvpn/files/openvpn-2.1_rc9-tests.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: openvpn-2.1_rc9-tests.patch |
15 |
=================================================================== |
16 |
--- t_cltsrv.sh.orig 2008-08-07 23:14:55.000000000 +0200 |
17 |
+++ t_cltsrv.sh 2008-08-07 23:53:27.000000000 +0200 |
18 |
@@ -38,11 +38,13 @@ |
19 |
fi |
20 |
;; |
21 |
esac |
22 |
+downscript="${srcdir}/t_cltsrv-down.sh" |
23 |
+test -x $downscript || chmod +x $downscript || { echo >&2 "$downscript is not executable, failing." ; exit 1 ; } |
24 |
echo "the following test will take about two minutes..." >&2 |
25 |
set +e |
26 |
( |
27 |
-./openvpn --cd "${srcdir}" ${addopts} --down 'echo "srv:${signal}" >&3 ; : #' --tls-exit --ping-exit 180 --config sample-config-files/loopback-server & |
28 |
-./openvpn --cd "${srcdir}" ${addopts} --down 'echo "clt:${signal}" >&3 ; : #' --tls-exit --ping-exit 180 --config sample-config-files/loopback-client |
29 |
+./openvpn --script-security 2 --cd "${srcdir}" ${addopts} --setenv role srv --down "$downscript" --tls-exit --ping-exit 180 --config sample-config-files/loopback-server & |
30 |
+./openvpn --script-security 2 --cd "${srcdir}" ${addopts} --setenv role clt --down "$downscript" --tls-exit --ping-exit 180 --config sample-config-files/loopback-client |
31 |
) 3>log.$$.signal >log.$$ 2>&1 |
32 |
e1=$? |
33 |
wait $! |
34 |
--- t_cltsrv-down.sh.orig 2008-08-07 23:24:40.000000000 +0200 |
35 |
+++ t_cltsrv-down.sh 2008-08-07 23:28:40.000000000 +0200 |
36 |
@@ -0,0 +1,2 @@ |
37 |
+#! /bin/sh |
38 |
+echo "${role}:${signal}" >&3 |