Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/ipf More test clean-up



details:   https://anonhg.NetBSD.org/src/rev/59c5dbb550dd
branches:  trunk
changeset: 783028:59c5dbb550dd
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Sat Dec 01 21:37:41 2012 +0000

description:
More test clean-up

diffstat:

 tests/ipf/t_nat_exec.sh |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r f4add362b0e4 -r 59c5dbb550dd tests/ipf/t_nat_exec.sh
--- a/tests/ipf/t_nat_exec.sh   Sat Dec 01 21:25:51 2012 +0000
+++ b/tests/ipf/t_nat_exec.sh   Sat Dec 01 21:37:41 2012 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: t_nat_exec.sh,v 1.11 2012/11/29 17:22:17 pgoyette Exp $
+# $NetBSD: t_nat_exec.sh,v 1.12 2012/12/01 21:37:41 pgoyette Exp $
 #
 # Copyright (c) 2008, 2010 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -48,6 +48,8 @@
 
        format="$format"
 
+       test -f in  && test -f reg || atf_fail "Test input file missing"
+
        { while read rule; do
                atf_check -o save:save -x \
                    "echo \"$rule\" | ipftest $format -RDbN - -i in $args"
@@ -95,7 +97,7 @@
 test_case n11_6 nattest text text -6
 test_case n12_6 nattest hex hex -6
 test_case n15_6 nattest text text -6
-failing_test_case n17_6 nattest "Test input file missing" hex hex -6
+failing_test_case n17_6 nattest "Test golden output file missing" hex hex -6
 
 atf_init_test_cases()
 {



Home | Main Index | Thread Index | Old Index