From 4993179dc9883a544abfe436dd3780d932dd4809 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 6 Apr 2014 15:53:13 +0300 Subject: [PATCH] tests: SET blob Signed-off-by: Jouni Malinen --- tests/hwsim/test_wpas_ctrl.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/hwsim/test_wpas_ctrl.py b/tests/hwsim/test_wpas_ctrl.py index 2def98898..e6f54e39a 100644 --- a/tests/hwsim/test_wpas_ctrl.py +++ b/tests/hwsim/test_wpas_ctrl.py @@ -452,3 +452,16 @@ def test_wpas_ctrl_disallow_aps(dev, apdev): ev = dev[0].wait_event(["CTRL-EVENT-CONNECTED"], timeout=1) if ev is not None: raise Exception("Unexpected reassociation") + +def test_wpas_ctrl_blob(dev): + """wpa_supplicant ctrl_iface SET blob""" + if "FAIL" not in dev[0].request("SET blob foo"): + raise Exception("Unexpected SET success") + if "FAIL" not in dev[0].request("SET blob foo 0"): + raise Exception("Unexpected SET success") + if "FAIL" not in dev[0].request("SET blob foo 0q"): + raise Exception("Unexpected SET success") + if "OK" not in dev[0].request("SET blob foo 00"): + raise Exception("Unexpected SET failure") + if "OK" not in dev[0].request("SET blob foo 0011"): + raise Exception("Unexpected SET failure")