Module Name: src
Committed By: knakahara
Date: Wed Aug 9 06:19:56 UTC 2017
Modified Files:
src/tests/net/if_vlan: t_vlan.sh
Log Message:
Add counter check to vlan(4) ATF. Implemented by s-yamaguchi@IIJ, thanks.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/net/if_vlan/t_vlan.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/if_vlan/t_vlan.sh
diff -u src/tests/net/if_vlan/t_vlan.sh:1.2 src/tests/net/if_vlan/t_vlan.sh:1.3
--- src/tests/net/if_vlan/t_vlan.sh:1.2 Wed Jun 14 02:32:29 2017
+++ src/tests/net/if_vlan/t_vlan.sh Wed Aug 9 06:19:56 2017
@@ -1,4 +1,4 @@
-# $NetBSD: t_vlan.sh,v 1.2 2017/06/14 02:32:29 ozaki-r Exp $
+# $NetBSD: t_vlan.sh,v 1.3 2017/08/09 06:19:56 knakahara Exp $
#
# Copyright (c) 2016 Internet Initiative Japan Inc.
# All rights reserved.
@@ -182,6 +182,20 @@ vlan_basic_body_common()
extract_new_packets $BUS > $outfile
atf_check -s exit:0 -o match:'vlan 20' cat $outfile
+
+ export RUMP_SERVER=$SOCK_LOCAL
+ atf_check -s exit:0 rump.ifconfig vlan0 -vlanif
+ atf_check -s exit:0 rump.ifconfig vlan0 vlan 10 vlanif shmif0
+ atf_check -s exit:0 rump.ifconfig vlan0 $af $local0/$prefix
+ atf_check -s exit:0 rump.ifconfig vlan0 up
+ atf_check -s exit:0 rump.ifconfig -w 10
+
+ atf_check -s exit:0 -o ignore rump.ifconfig -z vlan0
+ atf_check -s exit:0 -o ignore $ping_cmd $remote0
+ rump.ifconfig -v vlan0 > $outfile
+
+ atf_check -s exit:0 -o not-match:' 0 packets' cat $outfile
+ atf_check -s exit:0 -o not-match:' 0 bytes' cat $outfile
}
atf_test_case vlan_basic cleanup