]> git.ipfire.org Git - thirdparty/hostap.git/blob - tests/hwsim/test_module_tests.py
tests: Add a module test integration to hwsim tests
[thirdparty/hostap.git] / tests / hwsim / test_module_tests.py
1 #!/usr/bin/python
2 #
3 # Module tests
4 # Copyright (c) 2014, Jouni Malinen <j@w1.fi>
5 #
6 # This software may be distributed under the terms of the BSD license.
7 # See README for more details.
8
9 import hostapd
10
11 def test_module_wpa_supplicant(dev):
12 """wpa_supplicant module tests"""
13 if "OK" not in dev[0].global_request("MODULE_TESTS"):
14 raise Exception("Module tests failed")
15
16 def test_module_hostapd(dev):
17 """hostapd module tests"""
18 hapd_global = hostapd.HostapdGlobal()
19 if "OK" not in hapd_global.ctrl.request("MODULE_TESTS"):
20 raise Exception("Module tests failed")