Page MenuHomeFreeBSD

if_gre: Add a regression test
Needs ReviewPublic

Authored by pouria on Thu, Feb 19, 9:37 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Feb 28, 12:50 AM
Unknown Object (File)
Fri, Feb 27, 2:55 PM
Unknown Object (File)
Fri, Feb 27, 1:11 PM
Unknown Object (File)
Thu, Feb 26, 12:03 PM
Unknown Object (File)
Thu, Feb 26, 2:59 AM
Unknown Object (File)
Thu, Feb 26, 1:56 AM
Unknown Object (File)
Wed, Feb 25, 10:25 PM
Unknown Object (File)
Tue, Feb 24, 11:21 PM
Subscribers

Details

Reviewers
ae
glebius
Group Reviewers
network
Summary

Add a regression test for gre(4)
to make sure all of the gre capabilities and options are
working as intended.

This test depends on PR275474 to be resolved.
otherwise it's going to trigger kernel panic.

Test Plan

To test, without triggering kernel panic, add the following lines below on top of every cleanup function:

sleep 1
ifconfig -j gretest1 gre1 destroy
sleep 1
ifconfig -j gretest2 gre1 destroy
sleep 1

and then run the tests:

# kyua test -k /usr/tests/sys/net/Kyuafile if_gre
if_gre:gre4_basic  ->  passed  [0.145s]
if_gre:gre6_basic  ->  passed  [0.148s]
if_gre:gre6_csum  ->  passed  [0.149s]
if_gre:gre6_key  ->  passed  [0.153s]
if_gre:gre6_seq  ->  passed  [0.160s]
if_gre:gre6_udpencap  ->  passed  [0.149s]
if_gre:gre_blind_options  -> passed [0.157s]

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 70768
Build 67651: arc lint + arc unit