Source-Changes-HG archive

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

[src/trunk]: src/tests/net Accept DEBUG environment variable



details:   https://anonhg.NetBSD.org/src/rev/e06c37cbfe8b
branches:  trunk
changeset: 818923:e06c37cbfe8b
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Mon Nov 07 05:25:36 2016 +0000

description:
Accept DEBUG environment variable

By doing so, we can easily turn DEBUG on/off without modifying
the ATF scripts.

diffstat:

 tests/net/arp/t_arp.sh             |  4 ++--
 tests/net/arp/t_dad.sh             |  4 ++--
 tests/net/icmp/t_icmp6_redirect.sh |  4 ++--
 tests/net/icmp/t_icmp_redirect.sh  |  4 ++--
 tests/net/if_pppoe/t_pppoe.sh      |  4 ++--
 tests/net/if_tap/t_tap.sh          |  4 ++--
 tests/net/if_tun/t_tun.sh          |  4 ++--
 tests/net/mcast/t_mcast.sh         |  4 ++--
 tests/net/ndp/t_dad.sh             |  4 ++--
 tests/net/ndp/t_ndp.sh             |  4 ++--
 tests/net/ndp/t_ra.sh              |  4 ++--
 tests/net/net/t_forwarding.sh      |  4 ++--
 tests/net/net/t_ipaddress.sh       |  4 ++--
 tests/net/net/t_ipv6_lifetime.sh   |  4 ++--
 tests/net/net/t_ipv6address.sh     |  4 ++--
 tests/net/net/t_mtudisc.sh         |  4 ++--
 tests/net/net/t_ping6_opts.sh      |  4 ++--
 tests/net/route/t_change.sh        |  4 ++--
 tests/net/route/t_flags.sh         |  4 ++--
 tests/net/route/t_flags6.sh        |  4 ++--
 tests/net/route/t_route.sh         |  4 ++--
 21 files changed, 42 insertions(+), 42 deletions(-)

diffs (truncated from 378 to 300 lines):

diff -r a2272e86d0d7 -r e06c37cbfe8b tests/net/arp/t_arp.sh
--- a/tests/net/arp/t_arp.sh    Mon Nov 07 04:43:14 2016 +0000
+++ b/tests/net/arp/t_arp.sh    Mon Nov 07 05:25:36 2016 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: t_arp.sh,v 1.17 2016/08/23 16:03:45 christos Exp $
+#      $NetBSD: t_arp.sh,v 1.18 2016/11/07 05:25:36 ozaki-r Exp $
 #
 # Copyright (c) 2015 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -36,7 +36,7 @@
 IP4DST_PROXYARP1=10.0.1.3
 IP4DST_PROXYARP2=10.0.1.4
 
-DEBUG=false
+DEBUG=${DEBUG:-false}
 TIMEOUT=1
 
 atf_test_case arp_cache_expiration_5s cleanup
diff -r a2272e86d0d7 -r e06c37cbfe8b tests/net/arp/t_dad.sh
--- a/tests/net/arp/t_dad.sh    Mon Nov 07 04:43:14 2016 +0000
+++ b/tests/net/arp/t_dad.sh    Mon Nov 07 05:25:36 2016 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: t_dad.sh,v 1.8 2016/09/14 16:00:10 christos Exp $
+#      $NetBSD: t_dad.sh,v 1.9 2016/11/07 05:25:36 ozaki-r Exp $
 #
 # Copyright (c) 2015 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -32,7 +32,7 @@
 SOCKLOCAL=unix://commsock1
 SOCKPEER=unix://commsock2
 
-DEBUG=false
+DEBUG=${DEBUG:-false}
 
 atf_test_case dad_basic cleanup
 atf_test_case dad_duplicated cleanup
diff -r a2272e86d0d7 -r e06c37cbfe8b tests/net/icmp/t_icmp6_redirect.sh
--- a/tests/net/icmp/t_icmp6_redirect.sh        Mon Nov 07 04:43:14 2016 +0000
+++ b/tests/net/icmp/t_icmp6_redirect.sh        Mon Nov 07 05:25:36 2016 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: t_icmp6_redirect.sh,v 1.4 2016/10/20 09:51:15 ozaki-r Exp $
+#      $NetBSD: t_icmp6_redirect.sh,v 1.5 2016/11/07 05:25:36 ozaki-r Exp $
 #
 # Copyright (c) 2015 Internet Initiative Japan Inc.
 # All rights reserved.
@@ -44,7 +44,7 @@
 
 REDIRECT_TIMEOUT=5
 
-DEBUG=true
+DEBUG=${DEBUG:-true}
 
 get_lladdr()
 {
diff -r a2272e86d0d7 -r e06c37cbfe8b tests/net/icmp/t_icmp_redirect.sh
--- a/tests/net/icmp/t_icmp_redirect.sh Mon Nov 07 04:43:14 2016 +0000
+++ b/tests/net/icmp/t_icmp_redirect.sh Mon Nov 07 05:25:36 2016 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: t_icmp_redirect.sh,v 1.3 2016/08/10 22:17:44 kre Exp $
+#      $NetBSD: t_icmp_redirect.sh,v 1.4 2016/11/07 05:25:36 ozaki-r Exp $
 #
 # Copyright (c) 2015 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -36,7 +36,7 @@
 BUS2=bus2
 REDIRECT_TIMEOUT=5
 
-DEBUG=false
+DEBUG=${DEBUG:-false}
 
 atf_test_case icmp_redirect_timeout cleanup
 
diff -r a2272e86d0d7 -r e06c37cbfe8b tests/net/if_pppoe/t_pppoe.sh
--- a/tests/net/if_pppoe/t_pppoe.sh     Mon Nov 07 04:43:14 2016 +0000
+++ b/tests/net/if_pppoe/t_pppoe.sh     Mon Nov 07 05:25:36 2016 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: t_pppoe.sh,v 1.9 2016/10/27 09:59:17 knakahara Exp $
+#      $NetBSD: t_pppoe.sh,v 1.10 2016/11/07 05:25:36 ozaki-r Exp $
 #
 # Copyright (c) 2016 Internet Initiative Japan Inc.
 # All rights reserved.
@@ -42,7 +42,7 @@
 BUS=bus0
 TIMEOUT=3
 WAITTIME=5
-DEBUG=false
+DEBUG=${DEBUG:-false}
 
 setup()
 {
diff -r a2272e86d0d7 -r e06c37cbfe8b tests/net/if_tap/t_tap.sh
--- a/tests/net/if_tap/t_tap.sh Mon Nov 07 04:43:14 2016 +0000
+++ b/tests/net/if_tap/t_tap.sh Mon Nov 07 05:25:36 2016 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: t_tap.sh,v 1.3 2016/08/10 22:42:21 kre Exp $
+#      $NetBSD: t_tap.sh,v 1.4 2016/11/07 05:25:37 ozaki-r Exp $
 #
 # Copyright (c) 2016 Internet Initiative Japan Inc.
 # All rights reserved.
@@ -39,7 +39,7 @@
 IP6_TAP=fc00::2
 IP6_REMOTE=fc00::3
 
-DEBUG=false
+DEBUG=${DEBUG:-false}
 TIMEOUT=1
 
 atf_test_case tap_create_destroy cleanup
diff -r a2272e86d0d7 -r e06c37cbfe8b tests/net/if_tun/t_tun.sh
--- a/tests/net/if_tun/t_tun.sh Mon Nov 07 04:43:14 2016 +0000
+++ b/tests/net/if_tun/t_tun.sh Mon Nov 07 05:25:36 2016 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: t_tun.sh,v 1.3 2016/10/01 20:18:06 kre Exp $
+#      $NetBSD: t_tun.sh,v 1.4 2016/11/07 05:25:37 ozaki-r Exp $
 #
 # Copyright (c) 2016 Internet Initiative Japan Inc.
 # All rights reserved.
@@ -34,7 +34,7 @@
 IP_LOCAL=10.0.0.1
 IP_REMOTE=10.0.0.2
 
-DEBUG=true
+DEBUG=${DEBUG:-true}
 
 atf_test_case tun_create_destroy cleanup
 tun_create_destroy_head()
diff -r a2272e86d0d7 -r e06c37cbfe8b tests/net/mcast/t_mcast.sh
--- a/tests/net/mcast/t_mcast.sh        Mon Nov 07 04:43:14 2016 +0000
+++ b/tests/net/mcast/t_mcast.sh        Mon Nov 07 05:25:36 2016 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: t_mcast.sh,v 1.2 2016/08/10 22:45:39 kre Exp $
+#      $NetBSD: t_mcast.sh,v 1.3 2016/11/07 05:25:37 ozaki-r Exp $
 #
 # Copyright (c) 2015 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -30,7 +30,7 @@
 netserver="$netserver -lrumpdev"
 export RUMP_SERVER=unix://commsock
 
-DEBUG=false
+DEBUG=${DEBUG:-false}
 
 run_test()
 {
diff -r a2272e86d0d7 -r e06c37cbfe8b tests/net/ndp/t_dad.sh
--- a/tests/net/ndp/t_dad.sh    Mon Nov 07 04:43:14 2016 +0000
+++ b/tests/net/ndp/t_dad.sh    Mon Nov 07 05:25:36 2016 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: t_dad.sh,v 1.8 2016/10/04 03:41:33 ozaki-r Exp $
+#      $NetBSD: t_dad.sh,v 1.9 2016/11/07 05:25:37 ozaki-r Exp $
 #
 # Copyright (c) 2015 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -33,7 +33,7 @@
 SOCKLOCAL=unix://commsock1
 SOCKPEER=unix://commsock2
 
-DEBUG=false
+DEBUG=${DEBUG:-false}
 
 duplicated="[Dd][Uu][Pp][Ll][Ii][Cc][Aa][Tt][Ee][Dd]"
 
diff -r a2272e86d0d7 -r e06c37cbfe8b tests/net/ndp/t_ndp.sh
--- a/tests/net/ndp/t_ndp.sh    Mon Nov 07 04:43:14 2016 +0000
+++ b/tests/net/ndp/t_ndp.sh    Mon Nov 07 05:25:36 2016 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: t_ndp.sh,v 1.13 2016/08/10 23:07:57 kre Exp $
+#      $NetBSD: t_ndp.sh,v 1.14 2016/11/07 05:25:37 ozaki-r Exp $
 #
 # Copyright (c) 2015 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -35,7 +35,7 @@
 IP6SRC=fc00::1
 IP6DST=fc00::2
 
-DEBUG=true
+DEBUG=${DEBUG:-true}
 TIMEOUT=1
 
 atf_test_case ndp_cache_expiration cleanup
diff -r a2272e86d0d7 -r e06c37cbfe8b tests/net/ndp/t_ra.sh
--- a/tests/net/ndp/t_ra.sh     Mon Nov 07 04:43:14 2016 +0000
+++ b/tests/net/ndp/t_ra.sh     Mon Nov 07 05:25:36 2016 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: t_ra.sh,v 1.4 2016/10/20 09:51:15 ozaki-r Exp $
+#      $NetBSD: t_ra.sh,v 1.5 2016/11/07 05:25:37 ozaki-r Exp $
 #
 # Copyright (c) 2015 Internet Initiative Japan Inc.
 # All rights reserved.
@@ -35,7 +35,7 @@
 IP6CLI=fc00:2::2
 PIDFILE=/var/run/rump.rtadvd.pid
 CONFIG=./rtadvd.conf
-DEBUG=true
+DEBUG=${DEBUG:-true}
 
 setup_shmif0()
 {
diff -r a2272e86d0d7 -r e06c37cbfe8b tests/net/net/t_forwarding.sh
--- a/tests/net/net/t_forwarding.sh     Mon Nov 07 04:43:14 2016 +0000
+++ b/tests/net/net/t_forwarding.sh     Mon Nov 07 05:25:36 2016 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: t_forwarding.sh,v 1.15 2016/08/10 21:33:52 kre Exp $
+#      $NetBSD: t_forwarding.sh,v 1.16 2016/11/07 05:25:37 ozaki-r Exp $
 #
 # Copyright (c) 2015 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -43,7 +43,7 @@
 HTTPD_PID=httpd.pid
 HTML_FILE=index.html
 
-DEBUG=false
+DEBUG=${DEBUG:-false}
 TIMEOUT=5
 
 atf_test_case ipforwarding_v4 cleanup
diff -r a2272e86d0d7 -r e06c37cbfe8b tests/net/net/t_ipaddress.sh
--- a/tests/net/net/t_ipaddress.sh      Mon Nov 07 04:43:14 2016 +0000
+++ b/tests/net/net/t_ipaddress.sh      Mon Nov 07 05:25:36 2016 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: t_ipaddress.sh,v 1.4 2016/10/04 03:43:15 ozaki-r Exp $
+#      $NetBSD: t_ipaddress.sh,v 1.5 2016/11/07 05:25:37 ozaki-r Exp $
 #
 # Copyright (c) 2015 Internet Initiative Japan Inc.
 # All rights reserved.
@@ -30,7 +30,7 @@
 SOCK_LOCAL=unix://commsock1
 BUS=bus
 
-DEBUG=false
+DEBUG=${DEBUG:-false}
 
 check_entry()
 {
diff -r a2272e86d0d7 -r e06c37cbfe8b tests/net/net/t_ipv6_lifetime.sh
--- a/tests/net/net/t_ipv6_lifetime.sh  Mon Nov 07 04:43:14 2016 +0000
+++ b/tests/net/net/t_ipv6_lifetime.sh  Mon Nov 07 05:25:36 2016 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: t_ipv6_lifetime.sh,v 1.4 2016/10/02 15:27:32 kre Exp $
+#      $NetBSD: t_ipv6_lifetime.sh,v 1.5 2016/11/07 05:25:37 ozaki-r Exp $
 #
 # Copyright (c) 2015 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -31,7 +31,7 @@
 SOCK=unix://sock
 BUS=./bus
 
-DEBUG=false
+DEBUG=${DEBUG:-false}
 
 deprecated="[Dd][Ee][Pp][Rr][Ee][Cc][Aa][Tt][Ee][Dd]"
 
diff -r a2272e86d0d7 -r e06c37cbfe8b tests/net/net/t_ipv6address.sh
--- a/tests/net/net/t_ipv6address.sh    Mon Nov 07 04:43:14 2016 +0000
+++ b/tests/net/net/t_ipv6address.sh    Mon Nov 07 05:25:36 2016 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: t_ipv6address.sh,v 1.9 2016/10/03 17:59:27 kre Exp $
+#      $NetBSD: t_ipv6address.sh,v 1.10 2016/11/07 05:25:37 ozaki-r Exp $
 #
 # Copyright (c) 2015 Internet Initiative Japan Inc.
 # All rights reserved.
@@ -41,7 +41,7 @@
 BUSSRC=bus_src
 BUSDST=bus_dst
 
-DEBUG=true
+DEBUG=${DEBUG:-true}
 TIMEOUT=3
 
 atf_test_case linklocal cleanup
diff -r a2272e86d0d7 -r e06c37cbfe8b tests/net/net/t_mtudisc.sh
--- a/tests/net/net/t_mtudisc.sh        Mon Nov 07 04:43:14 2016 +0000
+++ b/tests/net/net/t_mtudisc.sh        Mon Nov 07 05:25:36 2016 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: t_mtudisc.sh,v 1.2 2016/10/06 02:44:48 kre Exp $
+#      $NetBSD: t_mtudisc.sh,v 1.3 2016/11/07 05:25:37 ozaki-r Exp $
 #
 # Copyright (c) 2016 Internet Initiative Japan Inc.
 # All rights reserved.
@@ -36,7 +36,7 @@
 HTTPD_PID=httpd.pid
 HTML_FILE=index.html
 
-DEBUG=false
+DEBUG=${DEBUG:-false}
 
 atf_test_case mtudisc_basic cleanup
 
diff -r a2272e86d0d7 -r e06c37cbfe8b tests/net/net/t_ping6_opts.sh
--- a/tests/net/net/t_ping6_opts.sh     Mon Nov 07 04:43:14 2016 +0000
+++ b/tests/net/net/t_ping6_opts.sh     Mon Nov 07 05:25:36 2016 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: t_ping6_opts.sh,v 1.2 2016/11/07 04:43:14 ozaki-r Exp $
+#      $NetBSD: t_ping6_opts.sh,v 1.3 2016/11/07 05:25:37 ozaki-r Exp $
 #
 # Copyright (c) 2016 Internet Initiative Japan Inc.
 # All rights reserved.
@@ -41,7 +41,7 @@
 IP6SRC2=fc00:0:0:1::3
 IP6SRCGW2=fc00:0:0:1::254



Home | Main Index | Thread Index | Old Index