Page MenuHomeFreeBSD

D20168.diff
No OneTemporary

D20168.diff

Index: tests/sys/Makefile
===================================================================
--- tests/sys/Makefile
+++ tests/sys/Makefile
@@ -18,6 +18,7 @@
TESTS_SUBDIRS+= kqueue
TESTS_SUBDIRS+= mac
TESTS_SUBDIRS+= mqueue
+TESTS_SUBDIRS+= net
TESTS_SUBDIRS+= netinet
TESTS_SUBDIRS+= netipsec
TESTS_SUBDIRS+= netmap
Index: tests/sys/net/if_clone_test.sh
===================================================================
--- tests/sys/net/if_clone_test.sh
+++ tests/sys/net/if_clone_test.sh
@@ -39,6 +39,51 @@
TESTLEN=10 # seconds
+atf_test_case epair_stress cleanup
+epair_stress_head()
+{
+ atf_set "descr" "Simultaneously create and destroy an epair(4)"
+ atf_set "require.user" "root"
+}
+epair_stress_body()
+{
+ do_stress "epair"
+}
+epair_stress_cleanup()
+{
+ cleanup_ifaces
+}
+
+atf_test_case epair_up_stress cleanup
+epair_up_stress_head()
+{
+ atf_set "descr" "Simultaneously up and detroy an epair(4)"
+ atf_set "require.user" "root"
+}
+epair_up_stress_body()
+{
+ do_up_stress "epair" "" ""
+}
+epair_up_stress_cleanup()
+{
+ cleanup_ifaces
+}
+
+atf_test_case epair_ipv6_up_stress cleanup
+epair_ipv6_up_stress_head()
+{
+ atf_set "descr" "Simultaneously up and destroy an epair(4) with IPv6"
+ atf_set "require.user" "root"
+}
+epair_ipv6_up_stress_body()
+{
+ do_up_stress "epair" "6" ""
+}
+epair_ipv6_up_stress_cleanup()
+{
+ cleanup_ifaces
+}
+
atf_test_case faith_stress cleanup
faith_stress_head()
{
@@ -62,7 +107,6 @@
}
faith_up_stress_body()
{
- atf_skip "Quickly panics: if_freemulti: protospec not NULL"
do_up_stress "faith" "" ""
}
faith_up_stress_cleanup()
@@ -78,7 +122,6 @@
}
faith_ipv6_up_stress_body()
{
- atf_skip "Quickly panics: if_freemulti: protospec not NULL"
do_up_stress "faith" "6" ""
}
faith_ipv6_up_stress_cleanup()
@@ -109,7 +152,6 @@
}
gif_up_stress_body()
{
- atf_skip "Quickly panics: if_freemulti: protospec not NULL"
do_up_stress "gif" "" "p2p"
}
gif_up_stress_cleanup()
@@ -125,7 +167,6 @@
}
gif_ipv6_up_stress_body()
{
- atf_skip "Quickly panics: rt_tables_get_rnh_ptr: fam out of bounds."
do_up_stress "gif" "6" "p2p"
}
gif_ipv6_up_stress_cleanup()
@@ -156,7 +197,6 @@
}
lo_up_stress_body()
{
- atf_skip "Quickly panics: GPF in rtsock_routemsg"
do_up_stress "lo" "" ""
}
lo_up_stress_cleanup()
@@ -172,7 +212,6 @@
}
lo_ipv6_up_stress_body()
{
- atf_skip "Quickly panics: page fault in rtsock_addrmsg"
do_up_stress "lo" "6" ""
}
lo_ipv6_up_stress_cleanup()
@@ -203,7 +242,6 @@
}
tap_up_stress_body()
{
- atf_skip "Quickly panics: if_freemulti: protospec not NULL"
do_up_stress "tap" "" ""
}
tap_up_stress_cleanup()
@@ -219,7 +257,6 @@
}
tap_ipv6_up_stress_body()
{
- atf_skip "Quickly panics: if_delmulti_locked: inconsistent ifp 0xfffff80150e44000"
do_up_stress "tap" "6" ""
}
tap_ipv6_up_stress_cleanup()
@@ -250,7 +287,6 @@
}
tun_up_stress_body()
{
- atf_skip "Quickly panics: if_freemulti: protospec not NULL"
do_up_stress "tun" "" "p2p"
}
tun_up_stress_cleanup()
@@ -266,7 +302,6 @@
}
tun_ipv6_up_stress_body()
{
- atf_skip "Quickly panics: if_freemulti: protospec not NULL"
do_up_stress "tun" "6" "p2p"
}
tun_ipv6_up_stress_cleanup()
@@ -297,7 +332,6 @@
}
vlan_up_stress_body()
{
- atf_skip "Quickly panics: if_freemulti: protospec not NULL"
do_up_stress "vlan" "" ""
}
vlan_up_stress_cleanup()
@@ -313,7 +347,6 @@
}
vlan_ipv6_up_stress_body()
{
- atf_skip "Quickly panics: if_freemulti: protospec not NULL"
do_up_stress "vlan" "6" ""
}
vlan_ipv6_up_stress_cleanup()
@@ -359,7 +392,6 @@
}
vmnet_ipv6_up_stress_body()
{
- atf_skip "Quickly panics: if_freemulti: protospec not NULL"
do_up_stress "vmnet" "6" ""
}
vmnet_ipv6_up_stress_cleanup()
@@ -369,7 +401,9 @@
atf_init_test_cases()
{
- # TODO: add epair(4) tests, which need a different syntax
+ atf_add_test_case epair_ipv6_up_stress
+ atf_add_test_case epair_stress
+ atf_add_test_case epair_up_stress
atf_add_test_case faith_ipv6_up_stress
atf_add_test_case faith_stress
atf_add_test_case faith_up_stress
@@ -501,7 +535,7 @@
local DEV
for DEV in `cat "devices_to_cleanup"`; do
- if [ ${DEV%%[0-9]*a} = "epair" ]; then
+ if [ ${DEV%%[0-9]*} = "epair" ]; then
ifconfig ${DEV}a destroy
else
ifconfig ${DEV} destroy

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 29, 9:19 AM (21 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26309856
Default Alt Text
D20168.diff (4 KB)

Event Timeline