Page MenuHomeFreeBSD

wtap(4): write atf test scripts to test all iface mode
Needs ReviewPublic

Authored by enweiwu on Sep 7 2022, 12:09 PM.
Referenced Files
Unknown Object (File)
Feb 22 2024, 8:39 AM
Unknown Object (File)
Feb 7 2024, 1:36 AM
Unknown Object (File)
Dec 23 2023, 3:38 AM
Unknown Object (File)
Dec 10 2023, 2:46 PM
Unknown Object (File)
Nov 14 2023, 3:16 AM
Unknown Object (File)
Nov 11 2023, 9:25 AM
Unknown Object (File)
Nov 7 2023, 3:39 PM
Unknown Object (File)
Oct 13 2023, 2:26 AM

Details

Summary

Below is the planned commit.

Test script locates in tests/sys/net80211, which is written in atf-sh(3), and it can test parts of net80211 stack via interfaces created by wtap(4).

The test script needs tools/tools/wtap, which makes the test not self-contained, I'm discussing with Li-Wen Hsu to figure out the better way to address it.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

We also need to add this directory to tests/sys/Makefile

tests/sys/net80211/sta_assoc.c
4

This line is not needed.

For the record, we're thinking to move the tools to /usr/sbin as wtapctl(8).

tests/sys/net80211/sta_assoc.c
17

Sneaked line from copy/paste?

tests/sys/net80211/wtap.sh
2

This line add be added automatically when being installed to /usr/tests

2

s/add be/will be/