From 2a354dc06f9c57ff237240495169d4286d6d4b69 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Tue, 15 Apr 2014 23:50:49 +0300 Subject: [PATCH] tests: More converage for INTERFACE_ADD Signed-off-by: Jouni Malinen --- tests/hwsim/test_wpas_ctrl.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/hwsim/test_wpas_ctrl.py b/tests/hwsim/test_wpas_ctrl.py index e3655278d..3df697773 100644 --- a/tests/hwsim/test_wpas_ctrl.py +++ b/tests/hwsim/test_wpas_ctrl.py @@ -864,7 +864,17 @@ def test_wpas_ctrl_global(dev): raise Exception("INTERFACE_ADD succeeded unexpectedly") if "FAIL" not in wpas.global_request("INTERFACE_ADD FOO"): raise Exception("INTERFACE_ADD succeeded unexpectedly") + if "FAIL" not in wpas.global_request("INTERFACE_ADD FOO conf"): + raise Exception("INTERFACE_ADD succeeded unexpectedly") + if "FAIL" not in wpas.global_request("INTERFACE_ADD FOO conf driver"): + raise Exception("INTERFACE_ADD succeeded unexpectedly") + if "FAIL" not in wpas.global_request("INTERFACE_ADD FOO conf driver ctrliface"): + raise Exception("INTERFACE_ADD succeeded unexpectedly") + if "FAIL" not in wpas.global_request("INTERFACE_ADD FOO conf driver ctrliface driverparam"): + raise Exception("INTERFACE_ADD succeeded unexpectedly") if "FAIL" not in wpas.global_request("INTERFACE_ADD FOO conf driver ctrliface driverparam bridge"): raise Exception("INTERFACE_ADD succeeded unexpectedly") + if "FAIL" not in wpas.global_request("INTERFACE_ADD FOO conf driver ctrliface driverparam bridge foo"): + raise Exception("INTERFACE_ADD succeeded unexpectedly") if "FAIL" not in wpas.global_request("INTERFACE_ADD FOO "): raise Exception("INTERFACE_ADD succeeded unexpectedly")