test_module_tests.py 574 B

123456789101112131415161718
  1. # Module tests
  2. # Copyright (c) 2014, Jouni Malinen <j@w1.fi>
  3. #
  4. # This software may be distributed under the terms of the BSD license.
  5. # See README for more details.
  6. import hostapd
  7. def test_module_wpa_supplicant(dev):
  8. """wpa_supplicant module tests"""
  9. if "OK" not in dev[0].global_request("MODULE_TESTS"):
  10. raise Exception("Module tests failed")
  11. def test_module_hostapd(dev):
  12. """hostapd module tests"""
  13. hapd_global = hostapd.HostapdGlobal()
  14. if "OK" not in hapd_global.ctrl.request("MODULE_TESTS"):
  15. raise Exception("Module tests failed")