Page MenuHomeFreeBSD

if_gre: Add a regression test
Needs ReviewPublic

Authored by pouria on Feb 19 2026, 9:37 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, May 19, 3:22 AM
Unknown Object (File)
Mon, May 18, 10:08 AM
Unknown Object (File)
Mon, May 18, 10:04 AM
Unknown Object (File)
Sun, May 17, 1:00 PM
Unknown Object (File)
Sun, May 17, 6:27 AM
Unknown Object (File)
Sun, May 17, 4:12 AM
Unknown Object (File)
Sat, May 16, 4:29 PM
Unknown Object (File)
Thu, May 14, 3:55 AM
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