DAWN/src/test/old_probe.script
Ian Clowes 67c3ed0d0a test_storage: extend test harness; datastorage: two bug fixes
datastorage (bug fix): deleting expired array item would fail to test next item
test_storage: extended to cover all required datastorage entry points
test_storage: added ability to read script file
test_storage: added new and revised test scripts
TESTING.md: added to describe testing approach
general: added various TODO notes on things to come back to
general: revised #includes to make each "self-compiling"
general: revised #includes to minimise usage across source files
general: moved declarations and defintions to simplify and rationalise code
datastorage: refactor to support scalability testing
datastorage: made independent of time() calls to support testing
datastorage: fixed redundant use of both SORT_NUM and SORT_LENGTH defines
datastorage: fake kicking to test clients move between access points
msghandler: new module to reduce compile time interdependencies
mshhandler: (issue #100?) fixed SEGV memcpy() in dump_client() using strncpy()
ubus: merged uface into ubus
mac_utils: new module for MAC address utilites
test_header: added target to help #include rationalisation

Tested-by: Nick Hainke <vincent@systemli.org>
2020-07-12 13:47:23 +02:00

44 lines
894 B
Text

faketime set 100
probe_show
remove_old_probe_entries 50
faketime show
probe bssid=00:11:22:33:44:55 client=ff:ee:dd:cc:bb:aa
faketime add 25
faketime show
probe bssid=01:11:22:33:44:55 client=ff:ee:dd:cc:bb:aa
faketime add 25
faketime show
probe bssid=02:11:22:33:44:55 client=ff:ee:dd:cc:bb:aa
faketime add 25
faketime show
probe bssid=03:11:22:33:44:55 client=ff:ee:dd:cc:bb:aa
faketime add 25
faketime show
probe bssid=04:11:22:33:44:55 client=ff:ee:dd:cc:bb:aa
probe_show
remove_old_probe_entries 50
probe_show
faketime add 25
remove_old_probe_entries 0
probe_show
# Test that a still connected client is not removed
faketime set 500
faketime show
client bssid=00:11:22:33:44:55 client=ff:ee:dd:cc:bb:aa
probe bssid=00:11:22:33:44:55 client=ff:ee:dd:cc:bb:aa
probe bssid=01:11:22:33:44:55 client=ff:ee:dd:cc:bb:aa
probe_show
faketime add 25
remove_old_probe_entries 0
probe_show