3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-29 13:59:24 +01:00

auto-t: update tests to enable hwsim rules

This commit is contained in:
James Prestwood 2021-08-18 15:09:33 -07:00 committed by Denis Kenzior
parent db9f001865
commit 07da17ec5f
6 changed files with 11 additions and 0 deletions

View File

@ -66,16 +66,19 @@ class Test(unittest.TestCase):
rule0.source = vht_radio.addresses[0] rule0.source = vht_radio.addresses[0]
rule0.bidirectional = True rule0.bidirectional = True
rule0.signal = -5100 rule0.signal = -5100
rule0.enabled = True
rule1 = hwsim.rules.create() rule1 = hwsim.rules.create()
rule1.source = ht_radio.addresses[0] rule1.source = ht_radio.addresses[0]
rule1.bidirectional = True rule1.bidirectional = True
rule1.signal = -5200 rule1.signal = -5200
rule1.enabled = True
rule2 = hwsim.rules.create() rule2 = hwsim.rules.create()
rule2.source = non_ht_radio.addresses[0] rule2.source = non_ht_radio.addresses[0]
rule2.bidirectional = True rule2.bidirectional = True
rule2.signal = -5300 rule2.signal = -5300
rule2.enabled = True
wd = IWD() wd = IWD()

View File

@ -39,12 +39,14 @@ class Test(unittest.TestCase):
rule0.bidirectional = True rule0.bidirectional = True
rule0.drop = True rule0.drop = True
rule0.prefix = 'b0' rule0.prefix = 'b0'
rule0.enabled = True
rule1 = hwsim.rules.create() rule1 = hwsim.rules.create()
rule1.source = bss_radio1.addresses[0] rule1.source = bss_radio1.addresses[0]
rule1.bidirectional = True rule1.bidirectional = True
rule1.drop = True rule1.drop = True
rule1.prefix = 'b0' rule1.prefix = 'b0'
rule1.enabled = True
# Test Authenticate (b0) and Association (00) timeouts # Test Authenticate (b0) and Association (00) timeouts

View File

@ -20,6 +20,7 @@ class Test(unittest.TestCase):
def test_rssi_agent(self): def test_rssi_agent(self):
rule = Hwsim().rules.create() rule = Hwsim().rules.create()
rule.signal = -4000 rule.signal = -4000
rule.enabled = True
wd = IWD() wd = IWD()

View File

@ -29,10 +29,12 @@ class Test(unittest.TestCase):
rule0 = hwsim.rules.create() rule0 = hwsim.rules.create()
rule0.source = bss_radio[0].addresses[0] rule0.source = bss_radio[0].addresses[0]
rule0.bidirectional = True rule0.bidirectional = True
rule0.enabled = True
rule1 = hwsim.rules.create() rule1 = hwsim.rules.create()
rule1.source = bss_radio[1].addresses[0] rule1.source = bss_radio[1].addresses[0]
rule1.bidirectional = True rule1.bidirectional = True
rule1.enabled = True
# Fill in the neighbor AP tables in both BSSes. By default each # Fill in the neighbor AP tables in both BSSes. By default each
# instance knows only about current BSS, even inside one hostapd # instance knows only about current BSS, even inside one hostapd

View File

@ -28,10 +28,12 @@ class Test(unittest.TestCase):
rule0 = hwsim.rules.create() rule0 = hwsim.rules.create()
rule0.source = bss_radio[0].addresses[0] rule0.source = bss_radio[0].addresses[0]
rule0.bidirectional = True rule0.bidirectional = True
rule0.enabled = True
rule1 = hwsim.rules.create() rule1 = hwsim.rules.create()
rule1.source = bss_radio[1].addresses[0] rule1.source = bss_radio[1].addresses[0]
rule1.bidirectional = True rule1.bidirectional = True
rule1.enabled = True
# Fill in the neighbor AP tables in both BSSes. By default each # Fill in the neighbor AP tables in both BSSes. By default each
# instance knows only about current BSS, even inside one hostapd # instance knows only about current BSS, even inside one hostapd

View File

@ -35,6 +35,7 @@ class Test(unittest.TestCase):
rule0.bidirectional = True rule0.bidirectional = True
rule0.drop = True rule0.drop = True
rule0.prefix = 'b0' rule0.prefix = 'b0'
rule0.enabled = True
wd.wait(1) wd.wait(1)
print(rule0) print(rule0)