Module Name: src
Committed By: ozaki-r
Date: Fri Jul 8 08:27:07 UTC 2016
Modified Files:
src/tests/net/route: t_flags.sh t_flags6.sh
Log Message:
Fix test names
To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/tests/net/route/t_flags.sh
cvs rdiff -u -r1.5 -r1.6 src/tests/net/route/t_flags6.sh
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tests/net/route/t_flags.sh
diff -u src/tests/net/route/t_flags.sh:1.9 src/tests/net/route/t_flags.sh:1.10
--- src/tests/net/route/t_flags.sh:1.9 Tue Jun 21 05:04:16 2016
+++ src/tests/net/route/t_flags.sh Fri Jul 8 08:27:07 2016
@@ -1,4 +1,4 @@
-# $NetBSD: t_flags.sh,v 1.9 2016/06/21 05:04:16 ozaki-r Exp $
+# $NetBSD: t_flags.sh,v 1.10 2016/07/08 08:27:07 ozaki-r Exp $
#
# Copyright (c) 2015 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -123,7 +123,7 @@ check_entry_fail()
"rump.netstat -rn -f inet | grep ^'$ip'"
}
-test_lo6()
+test_lo()
{
export RUMP_SERVER=$SOCK_LOCAL
@@ -132,7 +132,7 @@ test_lo6()
check_entry_flags 127.0.0.1 UHl
}
-test_connected6()
+test_connected()
{
export RUMP_SERVER=$SOCK_LOCAL
@@ -144,7 +144,7 @@ test_connected6()
check_entry_flags 10.0.0/24 UC
}
-test_default_gateway6()
+test_default_gateway()
{
export RUMP_SERVER=$SOCK_LOCAL
@@ -156,7 +156,7 @@ test_default_gateway6()
check_entry_flags default UGS
}
-test_static6()
+test_static()
{
export RUMP_SERVER=$SOCK_LOCAL
@@ -176,7 +176,7 @@ test_static6()
check_entry_flags 10.0.2/24 UGS
}
-test_blackhole6()
+test_blackhole()
{
export RUMP_SERVER=$SOCK_LOCAL
@@ -202,7 +202,7 @@ test_blackhole6()
check_entry_fail 10.0.0.1 UH
}
-test_reject6()
+test_reject()
{
export RUMP_SERVER=$SOCK_LOCAL
@@ -261,7 +261,7 @@ test_reject6()
return 0
}
-test_icmp_redirect6()
+test_icmp_redirect()
{
### Testing Dynamic flag ###
@@ -320,7 +320,7 @@ test_icmp_redirect6()
teardown_gw
}
-test_announce6()
+test_announce()
{
export RUMP_SERVER=$SOCK_LOCAL
@@ -368,12 +368,12 @@ add_test()
atf_init_test_cases()
{
- add_test lo6 "Tests route flags: loop back interface"
- add_test connected6 "Tests route flags: connected route"
- add_test default_gateway6 "Tests route flags: default gateway"
- add_test static6 "Tests route flags: static route"
- add_test blackhole6 "Tests route flags: blackhole route"
- add_test reject6 "Tests route flags: reject route"
- add_test icmp_redirect6 "Tests route flags: icmp redirect"
- add_test announce6 "Tests route flags: announce flag"
+ add_test lo "Tests route flags: loop back interface"
+ add_test connected "Tests route flags: connected route"
+ add_test default_gateway "Tests route flags: default gateway"
+ add_test static "Tests route flags: static route"
+ add_test blackhole "Tests route flags: blackhole route"
+ add_test reject "Tests route flags: reject route"
+ add_test icmp_redirect "Tests route flags: icmp redirect"
+ add_test announce "Tests route flags: announce flag"
}
Index: src/tests/net/route/t_flags6.sh
diff -u src/tests/net/route/t_flags6.sh:1.5 src/tests/net/route/t_flags6.sh:1.6
--- src/tests/net/route/t_flags6.sh:1.5 Sat Apr 23 15:47:54 2016
+++ src/tests/net/route/t_flags6.sh Fri Jul 8 08:27:07 2016
@@ -1,4 +1,4 @@
-# $NetBSD: t_flags6.sh,v 1.5 2016/04/23 15:47:54 ozaki-r Exp $
+# $NetBSD: t_flags6.sh,v 1.6 2016/07/08 08:27:07 ozaki-r Exp $
#
# Copyright (c) 2016 Internet Initiative Japan Inc.
# All rights reserved.
@@ -95,7 +95,7 @@ check_entry_fail()
"rump.netstat -rn -f inet6 | grep ^'$ip'"
}
-test_lo()
+test_lo6()
{
export RUMP_SERVER=$SOCK_LOCAL
@@ -107,7 +107,7 @@ test_lo()
check_entry_flags ::1 UH
}
-test_connected()
+test_connected6()
{
export RUMP_SERVER=$SOCK_LOCAL
@@ -119,7 +119,7 @@ test_connected()
check_entry_flags fc00::/64 UC
}
-test_default_gateway()
+test_default_gateway6()
{
export RUMP_SERVER=$SOCK_LOCAL
@@ -131,7 +131,7 @@ test_default_gateway()
check_entry_flags default UGS
}
-test_static()
+test_static6()
{
export RUMP_SERVER=$SOCK_LOCAL
@@ -153,7 +153,7 @@ test_static()
check_entry_flags fc00::/24 UGS
}
-test_blackhole()
+test_blackhole6()
{
export RUMP_SERVER=$SOCK_LOCAL
@@ -180,7 +180,7 @@ test_blackhole()
check_entry_fail $IP6_PEER UH
}
-test_reject()
+test_reject6()
{
export RUMP_SERVER=$SOCK_LOCAL
@@ -243,7 +243,7 @@ test_reject()
return 0
}
-test_announce()
+test_announce6()
{
export RUMP_SERVER=$SOCK_LOCAL
@@ -293,11 +293,11 @@ add_test()
atf_init_test_cases()
{
- add_test lo "Tests route flags: loop back interface"
- add_test connected "Tests route flags: connected route"
- add_test default_gateway "Tests route flags: default gateway"
- add_test static "Tests route flags: static route"
- add_test blackhole "Tests route flags: blackhole route"
- add_test reject "Tests route flags: reject route"
- add_test announce "Tests route flags: announce flag"
+ add_test lo6 "Tests route flags: loop back interface"
+ add_test connected6 "Tests route flags: connected route"
+ add_test default_gateway6 "Tests route flags: default gateway"
+ add_test static6 "Tests route flags: static route"
+ add_test blackhole6 "Tests route flags: blackhole route"
+ add_test reject6 "Tests route flags: reject route"
+ add_test announce6 "Tests route flags: announce flag"
}