aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-10-26 08:21:48 (GMT)
committerJouni Malinen <j@w1.fi>2014-10-26 08:21:48 (GMT)
commit9d3d2dbdcb8b4550a498aabcc8554f2c498ee745 (patch)
treefdee0b56f01cfe83eeb69b40b9031711e45d2fe4 /tests
parent1170239efa2c70cb345cec2d25bd5375cc591dca (diff)
downloadhostap-9d3d2dbdcb8b4550a498aabcc8554f2c498ee745.zip
hostap-9d3d2dbdcb8b4550a498aabcc8554f2c498ee745.tar.gz
hostap-9d3d2dbdcb8b4550a498aabcc8554f2c498ee745.tar.bz2
tests: IP address in STATUS
Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'tests')
-rw-r--r--tests/hwsim/test_wpas_ctrl.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/hwsim/test_wpas_ctrl.py b/tests/hwsim/test_wpas_ctrl.py
index 5746693..a8ea1ad 100644
--- a/tests/hwsim/test_wpas_ctrl.py
+++ b/tests/hwsim/test_wpas_ctrl.py
@@ -1028,3 +1028,15 @@ def test_wpas_ctrl_roam(dev, apdev):
id = dev[0].connect("test", key_mgmt="NONE", scan_freq="2412")
if "FAIL" not in dev[0].request("ROAM 00:11:22:33:44:55"):
raise Exception("Unexpected success")
+
+def test_wpas_ctrl_ipaddr(dev, apdev):
+ """wpa_supplicant IP address in STATUS"""
+ try:
+ subprocess.call(['ip', 'addr', 'add', '10.174.65.207/32', 'dev',
+ dev[0].ifname])
+ ipaddr = dev[0].get_status_field('ip_address')
+ if ipaddr != '10.174.65.207':
+ raise Exception("IP address not in STATUS output")
+ finally:
+ subprocess.call(['ip', 'addr', 'del', '10.174.65.207/32', 'dev',
+ dev[0].ifname])