OLD | NEW |
(Empty) | |
| 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 """WiFiMatFunc is a suite of 3-machine tests to validate basic WiFi functionalit
y. |
| 6 One client, one server, and one programmable WiFi AP/Router are required |
| 7 (either off-the-shelf with a network-accesible CLI or a Linux/BSD system |
| 8 with a WiFi card that supports HostAP functionality). |
| 9 |
| 10 Configuration information to run_test: |
| 11 |
| 12 server - the IP address of the server (automatically filled in) |
| 13 client - the IP address of the client (automatically filled in) |
| 14 router - the IP address of the WiFi AP/Router and the names of the |
| 15 wifi and wired devices to configure |
| 16 """ |
| 17 |
| 18 |
| 19 from autotest_lib.client.bin import utils |
| 20 from autotest_lib.client.common_lib import error |
| 21 from autotest_lib.server import autotest, site_wifitest, test |
| 22 |
| 23 |
| 24 class network_WiFiSecMat(test.test): |
| 25 version = 1 |
| 26 |
| 27 # The testcase config, setup, etc are done out side the individual |
| 28 # test loop, in the control file. |
| 29 def run_once(self, testcase, config): |
| 30 try: |
| 31 wt = site_wifitest.WiFiTest(testcase['name'], testcase['steps'], config) |
| 32 wt.run() |
| 33 except error.TestFail, tfe: |
| 34 raise tfe |
| 35 except Exception, e: |
| 36 raise error.TestFail(e) |
| 37 |
OLD | NEW |