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.

Details

Reviewers
lwhsu
bz
adrian
cy
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
Unit Tests Skipped

Event Timeline

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

tests/sys/net80211/sta_assoc.c
3

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
16

Sneaked line from copy/paste?

tests/sys/net80211/wtap.sh
1

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

1

s/add be/will be/