Source-Changes-HG archive

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

[src/trunk]: src/tests/net Make test names self-descriptive



details:   https://anonhg.NetBSD.org/src/rev/743de1c8ca39
branches:  trunk
changeset: 348487:743de1c8ca39
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Thu Oct 20 09:51:15 2016 +0000

description:
Make test names self-descriptive

diffstat:

 tests/net/icmp/t_icmp6_redirect.sh |  12 ++++++------
 tests/net/ndp/t_ra.sh              |  12 ++++++------
 2 files changed, 12 insertions(+), 12 deletions(-)

diffs (89 lines):

diff -r 30482cbe65bd -r 743de1c8ca39 tests/net/icmp/t_icmp6_redirect.sh
--- a/tests/net/icmp/t_icmp6_redirect.sh        Thu Oct 20 08:18:16 2016 +0000
+++ b/tests/net/icmp/t_icmp6_redirect.sh        Thu Oct 20 09:51:15 2016 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: t_icmp6_redirect.sh,v 1.3 2016/10/02 04:46:07 kre Exp $
+#      $NetBSD: t_icmp6_redirect.sh,v 1.4 2016/10/20 09:51:15 ozaki-r Exp $
 #
 # Copyright (c) 2015 Internet Initiative Japan Inc.
 # All rights reserved.
@@ -57,16 +57,16 @@
        return 0
 }
 
-atf_test_case basic cleanup
+atf_test_case icmp6_redirect_basic cleanup
 
-basic_head()
+icmp6_redirect_basic_head()
 {
 
        atf_set "descr" "Test for the basically function of the ICMP6 redirect"
        atf_set "require.progs" "rump_server rump.route rump.ping rump.ifconfig"
 }
 
-basic_body()
+icmp6_redirect_basic_body()
 {
        local gw1_lladdr0=
        local gw1_lladdr1=
@@ -156,7 +156,7 @@
        unset RUMP_SERVER
 }
 
-basic_cleanup()
+icmp6_redirect_basic_cleanup()
 {
 
        env RUMP_SERVER=$SOCK_LOCAL rump.halt
@@ -168,5 +168,5 @@
 atf_init_test_cases()
 {
 
-       atf_add_test_case basic
+       atf_add_test_case icmp6_redirect_basic
 }
diff -r 30482cbe65bd -r 743de1c8ca39 tests/net/ndp/t_ra.sh
--- a/tests/net/ndp/t_ra.sh     Thu Oct 20 08:18:16 2016 +0000
+++ b/tests/net/ndp/t_ra.sh     Thu Oct 20 09:51:15 2016 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: t_ra.sh,v 1.3 2016/08/10 23:07:57 kre Exp $
+#      $NetBSD: t_ra.sh,v 1.4 2016/10/20 09:51:15 ozaki-r Exp $
 #
 # Copyright (c) 2015 Internet Initiative Japan Inc.
 # All rights reserved.
@@ -72,15 +72,15 @@
 _EOF
 }
 
-atf_test_case basic cleanup
-basic_head()
+atf_test_case ra_basic cleanup
+ra_basic_head()
 {
 
        atf_set "descr" "Tests for basic functions of router advaertisement(RA)"
        atf_set "require.progs" "rump_server rump.rtadvd rump.ndp rump.ifconfig"
 }
 
-basic_body()
+ra_basic_body()
 {
 
        atf_check -s exit:0 rump_server ${RUMPFLAGS} ${RUMPSRV}
@@ -147,7 +147,7 @@
        return 0
 }
 
-basic_cleanup()
+ra_basic_cleanup()
 {
 
        if [ -f ${PIDFILE} ]; then
@@ -162,5 +162,5 @@
 atf_init_test_cases()
 {
 
-       atf_add_test_case basic
+       atf_add_test_case ra_basic
 }



Home | Main Index | Thread Index | Old Index