Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/ipf Assume that the NAT failures that happen on some a...
details: https://anonhg.NetBSD.org/src/rev/6a2fcdc83404
branches: trunk
changeset: 786858:6a2fcdc83404
user: martin <martin%NetBSD.org@localhost>
date: Thu May 16 07:20:29 2013 +0000
description:
Assume that the NAT failures that happen on some architectures are endianess
bugs, so do not expect failure on LE archs for now.
diffstat:
tests/ipf/h_common.sh | 25 ++++++++++++++++++++++++-
tests/ipf/t_nat_exec.sh | 8 ++++----
2 files changed, 28 insertions(+), 5 deletions(-)
diffs (62 lines):
diff -r 6c9431351b37 -r 6a2fcdc83404 tests/ipf/h_common.sh
--- a/tests/ipf/h_common.sh Wed May 15 22:09:32 2013 +0000
+++ b/tests/ipf/h_common.sh Thu May 16 07:20:29 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: h_common.sh,v 1.7 2012/12/01 04:43:44 pgoyette Exp $
+# $NetBSD: h_common.sh,v 1.8 2013/05/16 07:20:29 martin Exp $
#
# Copyright (c) 2008, 2010 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -75,3 +75,26 @@
${check_function} '${name}' " "${@}" "; \
}"
}
+
+failing_test_case_be()
+{
+ # this test fails on some architectures - not fully analyzed, assume
+ # an endianess bug
+ local name="${1}"; shift
+ local check_function="${1}"; shift
+ local reason="${1}"; shift
+
+ atf_test_case "${name}"
+
+ if [ `sysctl -n hw.byteorder` = 4321 ]; then
+ eval "${name}_body() { \
+ atf_expect_fail '${reason}'; \
+ ${check_function} '${name}' " "${@}" "; \
+ }"
+ else
+ eval "${name}_body() { \
+ ${check_function} '${name}' " "${@}" "; \
+ }"
+ fi
+}
+
diff -r 6c9431351b37 -r 6a2fcdc83404 tests/ipf/t_nat_exec.sh
--- a/tests/ipf/t_nat_exec.sh Wed May 15 22:09:32 2013 +0000
+++ b/tests/ipf/t_nat_exec.sh Thu May 16 07:20:29 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: t_nat_exec.sh,v 1.16 2013/03/19 13:23:58 martin Exp $
+# $NetBSD: t_nat_exec.sh,v 1.17 2013/05/16 07:20:29 martin Exp $
#
# Copyright (c) 2008, 2010 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -67,13 +67,13 @@
test_case n5 nattest text text
test_case n6 nattest text text
test_case n7 nattest text text
-failing_test_case n8 nattest "See PR kern/47665" hex hex -T update_ipid=0
-failing_test_case n9 nattest "See PR kern/47665" hex hex -T update_ipid=0
+failing_test_case_be n8 nattest "See PR kern/47665" hex hex -T update_ipid=0
+failing_test_case_be n9 nattest "See PR kern/47665" hex hex -T update_ipid=0
test_case n10 nattest hex hex -T update_ipid=0
test_case n11 nattest text text
failing_test_case n12 nattest "Known to be broken" hex hex -T update_ipid=0 -v
test_case n13 nattest text text
-failing_test_case n14 nattest "See PR kern/47665" text text
+failing_test_case_be n14 nattest "See PR kern/47665" text text
test_case n15 nattest text text -T update_ipid=0
test_case n16 nattest hex hex -D
test_case n17 nattest hex hex -D
Home |
Main Index |
Thread Index |
Old Index