[BACK]Return to t_nat_exec.sh CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / tests / ipf

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/tests/ipf/t_nat_exec.sh between version 1.5 and 1.6

version 1.5, 2012/02/14 09:17:22 version 1.6, 2012/02/15 17:55:24
Line 33 
Line 33 
 nattest()  nattest()
 {  {
         h_copydata $1          h_copydata $1
         infmt=$2  
         outfmt=$3  
         shift  
         shift  
         shift  
         args=$@  
   
         if [ $outfmt = hex ] ; then          if [ $3 = hex ] ; then
                 format="-xF $infmt"                  format="-xF $2"
         else          else
                 format="-F $infmt"                  format="-F $2"
         fi          fi
   
         format="$format"          format="$4 $5 $format"
   
         { while read rule; do          { while read rule; do
                 atf_check -o save:save -x \                  atf_check -o save:save -x \
                     "echo \"$rule\" | ipftest $format -RbN - -i in $args"                      "echo \"$rule\" | ipftest $format -RbN - -i in"
                 cat save >>out                  cat save >>out
                 echo "-------------------------------" >>out                  echo "-------------------------------" >>out
         done; } <reg          done; } <reg
Line 58  nattest()
Line 52  nattest()
         diff -u exp out || atf_fail "results differ"          diff -u exp out || atf_fail "results differ"
 }  }
   
 test_case n1 nattest text text  #broken_test_case n1 nattest text text
 test_case n2 nattest text text  #broken_test_case n2 nattest text text
 test_case n3 nattest text text  test_case n3 nattest text text
 test_case n4 nattest text text  #broken_test_case n4 nattest text text
 test_case n5 nattest text text  #broken_test_case n5 nattest text text
 test_case n6 nattest text text  #broken_test_case n6 nattest text text
 test_case n7 nattest text text  test_case n7 nattest text text
 test_case n8 nattest hex hex -T update_ipid=0  test_case n8 nattest hex hex -T fr_update_ipid=0
 test_case n9 nattest hex hex -T update_ipid=0  test_case n9 nattest hex hex -T fr_update_ipid=0
 test_case n10 nattest hex hex -T update_ipid=0 -D  test_case n10 nattest hex hex -T fr_update_ipid=0
 test_case n11 nattest text text  #broken_test_case n11 nattest text text
 test_case n12 nattest hex hex -T update_ipid=0 -v  test_case n12 nattest hex hex -T fr_update_ipid=0
 test_case n13 nattest text text  test_case n13 nattest text text
 test_case n14 nattest text text  test_case n14 nattest text text
 test_case n15 nattest text text -T update_ipid=0  
 test_case n16 nattest hex hex -D  test_case n16 nattest hex hex -D
 test_case n17 nattest hex hex -D  test_case n17 nattest hex hex -D
 test_case n100 nattest text text  
 test_case n101 nattest text text  
 test_case n102 nattest text text  
 test_case n103 nattest text text  
 test_case n104 nattest hex hex -T update_ipid=0  
 test_case n105 nattest hex hex -T update_ipid=0  
 test_case n106 nattest hex hex -T update_ipid=0  
 test_case n200 nattest hex hex -T update_ipid=0  
 test_case n201 nattest hex hex -T update_ipid=0  
 test_case n202 nattest hex hex -T update_ipid=0  
 test_case n1_6 nattest text text -6  
 test_case n2_6 nattest text text -6  
 test_case n4_6 nattest text text -6  
 test_case n5_6 nattest text text -6  
 test_case n6_6 nattest text text -6  
 test_case n7_6 nattest text text -6  
 test_case n8_6 nattest hex hex -6D  
 test_case n9_6 nattest hex hex -6D  
 test_case n11_6 nattest text text -6  
 test_case n12_6 nattest hex hex -D6  
 test_case n15_6 nattest text text -6  
 test_case n17_6 nattest hex hex -6  
   
 atf_init_test_cases()  atf_init_test_cases()
 {  {
         atf_add_test_case n1  
         atf_add_test_case n2  
         atf_add_test_case n3          atf_add_test_case n3
         atf_add_test_case n4  
         atf_add_test_case n5  
         atf_add_test_case n6  
         atf_add_test_case n7          atf_add_test_case n7
         atf_add_test_case n8          atf_add_test_case n8
         atf_add_test_case n9          atf_add_test_case n9
         atf_add_test_case n10          atf_add_test_case n10
         atf_add_test_case n11  
         atf_add_test_case n12          atf_add_test_case n12
         atf_add_test_case n13          atf_add_test_case n13
         atf_add_test_case n14          atf_add_test_case n14
         atf_add_test_case n16          atf_add_test_case n16
         atf_add_test_case n17          atf_add_test_case n17
         atf_add_test_case n100  
         atf_add_test_case n101  
         atf_add_test_case n102  
         atf_add_test_case n103  
         atf_add_test_case n104  
         atf_add_test_case n105  
         atf_add_test_case n106  
         atf_add_test_case n200  
         atf_add_test_case n201  
         atf_add_test_case n202  
   
         atf_add_test_case n1_6  
         atf_add_test_case n2_6  
 #       atf_add_test_case n3_6  
         atf_add_test_case n4_6  
         atf_add_test_case n5_6  
         atf_add_test_case n6_6  
         atf_add_test_case n7_6  
         atf_add_test_case n8_6  
         atf_add_test_case n9_6  
         atf_add_test_case n11_6  
         atf_add_test_case n12_6  
         atf_add_test_case n15_6  
         atf_add_test_case n17_6  
   
           #atf_add_test_case n1
           #atf_add_test_case n2
           #atf_add_test_case n4
           #atf_add_test_case n5
           #atf_add_test_case n6
           #atf_add_test_case n11
 }  }

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

CVSweb <webmaster@jp.NetBSD.org>