3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-25 01:19:23 +01:00
iwd/autotests
James Prestwood cdbd59103e auto-t: fix netconfig to handle resolvconf values out of order
The slaac_test was one that would occationally fail, but very rarely,
due to the resolvconf log values appearing in an unexpected order.

This appears to be related to a typo in netconfig-commit which would
not set netconfig-domains and instead set dns_list. This was fixed
with a pending patch:

https://lore.kernel.org/iwd/20240227204242.1509980-1-denkenz@gmail.com/T/#u

But applying this now leads to testNetconfig failing slaac_test
100% of the time.

I'm not familiar enough with resolveconf to know if this test change
is ok, but based on the test behavior the expected log and disk logs
are the same, just in the incorrect order. I'm not sure if this the
log order is deterministic so instead the check now iterates the
expected log and verifies each value appears once in the resolvconf
log.

Here is an example of the expected vs disk logs after running the
test:

Expected:

-a wlan1.dns
nameserver 192.168.1.2
nameserver 3ffe:501:ffff💯:10
nameserver 3ffe:501:ffff💯:50
-a wlan1.domain
search test1
search test2

Resolvconf log:

-a wlan1.domain
search test1
search test2
-a wlan1.dns
nameserver 192.168.1.2
nameserver 3ffe:501:ffff💯:10
nameserver 3ffe:501:ffff💯:50
2024-02-28 11:50:54 -06:00
..
misc auto-t: allow wildcard phase1 for EAP tests 2022-06-01 11:02:01 -05:00
shell auto-t: add shell test 2019-08-07 16:37:51 -05:00
testAddressRandomization auto-t: use copy_to_storage in address randomization test 2022-05-25 15:00:06 -05:00
testAdHoc auto-t: add client test to testAdHoc 2022-06-30 13:38:02 -05:00
testAgent auto-t: fix unpredictability/pointless test from testAgent 2022-06-29 13:18:29 -05:00
testAP auto-t: update test to work with PairwiseCiphers array 2022-11-04 12:04:00 -05:00
testAP-no-support auto-t: update test to work with PairwiseCiphers array 2022-11-04 12:04:00 -05:00
testAPRoam auto-t: add a no candidate test to testAPRoam 2022-09-28 12:36:20 -05:00
testBSSBlacklist auto-t: fix testBSSBlacklist typo 2022-03-31 18:12:49 -05:00
testChannelSwitch auto-t: add missing ocv option and wait to testChannelSwitch 2021-10-19 15:29:26 -05:00
testClientNonInteractive auto-t: remove direct scan() call when possible 2022-03-30 15:25:55 -05:00
testConnectAutoconnect auto-t: fix testConnectAutoconnect 2021-10-20 16:51:58 -05:00
testDisconnectByAP auto-t: remove direct scan() call when possible 2022-03-30 15:25:55 -05:00
testDisconnectOnConnect auto-t: update all tests to remove bad scanning logic 2021-08-12 16:59:03 -05:00
testDPP auto-t: add DPP tests to check extra settings are applied 2023-12-19 19:48:45 -06:00
testEAD auto-t: remove duplicate EAP tests 2021-08-17 11:44:36 -05:00
testEAP auto-t: add EAP reauth to testEAP 2022-05-26 11:24:56 -05:00
testEAP-PEAPv0-CryptoBinding auto-t: fix eapol_reauth utility 2022-05-26 11:24:52 -05:00
testEAP-TLS-Frag auto-t: remove duplicate EAP tests 2021-08-17 11:44:36 -05:00
testEAP-TLSwithMFPC auto-t: remove duplicate EAP tests 2021-08-17 11:44:36 -05:00
testEAP-TLSwithMFPR auto-t: remove duplicate EAP tests 2021-08-17 11:44:36 -05:00
testEAP-TTLS-Frag auto-t: remove duplicate EAP tests 2021-08-17 11:44:36 -05:00
testEAP-WPS auto-t: add client test to testEAP-WPS 2022-06-30 13:38:02 -05:00
testEAP-WPS-Frag auto-t: release radio/hostapd instances from cls 2021-02-26 10:08:10 -06:00
testEAPoL-spoofing auto-t: Add EAPoL spoofing test 2022-05-11 17:23:54 -05:00
testEncryptedProfiles auto-t: fix testEncryptedProfiles mtime check 2022-06-24 18:11:15 -05:00
testFILS auto-t: add comment about FILS rekeys 2023-06-19 20:54:17 -05:00
testFT-8021x-roam auto-t: remove rekey timeouts from autotests 2022-10-06 09:01:24 -05:00
testFT-FILS auto-t: remove rekey timeouts from autotests 2022-10-06 09:01:24 -05:00
testHiddenNetworks auto-t: speed up testHiddenNetworks 2022-10-06 14:41:04 -05:00
testHotspot auto-t: Drop !used hostapd instances in testHotspot 2021-12-24 14:28:55 -06:00
testHT-VHT auto-t: remove direct scan() call when possible 2022-03-30 15:25:55 -05:00
testKnownNetworks auto-t: add test for known frequency sorting/maximum 2024-01-29 20:45:32 -06:00
testMFP-Options auto-t: update all tests to remove bad scanning logic 2021-08-12 16:59:03 -05:00
testNetconfig auto-t: fix netconfig to handle resolvconf values out of order 2024-02-28 11:50:54 -06:00
testNetconfigRoam auto-t: add test for roaming + netconfig 2024-01-08 22:08:53 -06:00
testOpen auto-t: update all tests to remove bad scanning logic 2021-08-12 16:59:03 -05:00
testOWE auto-t: add OWE test for auto default group 2024-02-27 13:55:37 -06:00
testOWE-transition auto-t: Update tests to use hostapd.default() 2023-08-30 20:41:25 -05:00
testP2P auto-t: Work around wpa_s config issue in testP2P 2022-06-06 10:39:00 -05:00
testPreauth-roam auto-t: remove rekey timeouts from autotests 2022-10-06 09:01:24 -05:00
testPSK-roam auto-t: fix failed_roam_test to pass when run on its own 2024-02-22 09:28:55 -06:00
testRoamRetry auto-t: update uses of wait_for_object_change 2022-09-28 12:36:16 -05:00
testRRM auto-t: add more checks to testRRM 2022-09-09 09:11:15 -05:00
testRSSIAgent auto-t: fix testRSSIAgent after signal agent changes 2022-05-25 15:00:06 -05:00
testSAE auto-t: Add test for new SAE default group behavior 2024-02-27 13:55:37 -06:00
testSAE-AntiClogging auto-t: Update tests to use hostapd.default() 2023-08-30 20:41:25 -05:00
testSAE-roam auto-t: remove rekey timeouts from autotests 2022-10-06 09:01:24 -05:00
testSAQuery auto-t: testSAQuery remove ungraceful restart 2021-08-25 08:51:45 -05:00
testSAQuery-spoofing auto-t: add OCV to testSAQuery-spoofing 2021-10-19 13:28:03 -05:00
testScan auto-t: speed up testScan 2022-10-06 14:41:26 -05:00
testScanKnownFreqs auto-t: set autoconnect=True for tests that need it 2021-08-12 16:59:05 -05:00
testWPA auto-t: update all tests to remove bad scanning logic 2021-08-12 16:59:03 -05:00
testWPA2 auto-t: Update tests to use hostapd.default() 2023-08-30 20:41:25 -05:00
testWPA2-ext-key-id auto-t: fix rekey/reauth logic in a few ways 2022-06-24 18:11:33 -05:00
testWPA2-no-CCMP auto-t: update all tests to remove bad scanning logic 2021-08-12 16:59:03 -05:00
testWPA2-SHA256 auto-t: update all tests to remove bad scanning logic 2021-08-12 16:59:03 -05:00
testWPA2withMFP auto-t: Update tests to use hostapd.default() 2023-08-30 20:41:25 -05:00
util auto-t: add HostapdCLI.sta_status 2024-02-27 13:55:37 -06:00