Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/net/ipsec Mark tests of tunnel/AH/IPv6 as expected fai...
details: https://anonhg.NetBSD.org/src/rev/0cb0e091ef28
branches: trunk
changeset: 352906:0cb0e091ef28
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Fri Apr 14 03:35:40 2017 +0000
description:
Mark tests of tunnel/AH/IPv6 as expected failure (PR kern/52161)
diffstat:
tests/net/ipsec/t_ipsec_tunnel.sh | 15 ++++++++++++---
1 files changed, 12 insertions(+), 3 deletions(-)
diffs (46 lines):
diff -r 5c3cb53551ed -r 0cb0e091ef28 tests/net/ipsec/t_ipsec_tunnel.sh
--- a/tests/net/ipsec/t_ipsec_tunnel.sh Fri Apr 14 02:56:48 2017 +0000
+++ b/tests/net/ipsec/t_ipsec_tunnel.sh Fri Apr 14 03:35:40 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: t_ipsec_tunnel.sh,v 1.1 2017/04/14 02:56:49 ozaki-r Exp $
+# $NetBSD: t_ipsec_tunnel.sh,v 1.2 2017/04/14 03:35:40 ozaki-r Exp $
#
# Copyright (c) 2017 Internet Initiative Japan Inc.
# All rights reserved.
@@ -312,11 +312,15 @@
local ipproto=$1
local proto=$2
local algo=$3
+ local expected_failure=$4
local _algo=$(echo $algo | sed 's/-//g')
- local name= desc=
+ local name= desc= expected_failure_code=
name="ipsec_tunnel_${ipproto}_${proto}_${_algo}"
desc="Tests of IPsec ($ipproto) tunnel mode with $proto ($algo)"
+ if [ "$expected_failure" = yes ]; then
+ expected_failure_code="atf_expect_fail 'PR kern/52161';"
+ fi
atf_test_case ${name} cleanup
eval " \
@@ -325,6 +329,7 @@
atf_set \"require.progs\" \"rump_server\" \"setkey\"; \
}; \
${name}_body() { \
+ $expected_failure_code \
test_tunnel_common $ipproto $proto $algo; \
rump_server_destroy_ifaces; \
}; \
@@ -347,6 +352,10 @@
for algo in $AH_AUTHENTICATION_ALGORITHMS; do
add_test_tunnel_mode ipv4 ah $algo
- add_test_tunnel_mode ipv6 ah $algo
+ if [ $algo = null ]; then
+ add_test_tunnel_mode ipv6 ah $algo
+ else
+ add_test_tunnel_mode ipv6 ah $algo yes
+ fi
done
}
Home |
Main Index |
Thread Index |
Old Index