OLD | NEW |
1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 AUTHOR = "Sam Leffler <sleffler@google.com>" | 5 AUTHOR = "Sam Leffler <sleffler@google.com>" |
6 TIME = "LONG" | 6 TIME = "LONG" |
7 NAME = "WiFi SecMat" | 7 NAME = "WiFi SecMat" |
8 TEST_CATEGORY = "Stress" | 8 TEST_CATEGORY = "Stress" |
9 TEST_CLASS = "network" | 9 TEST_CLASS = "network" |
10 TEST_TYPE = "Server" | 10 TEST_TYPE = "Server" |
(...skipping 19 matching lines...) Expand all Loading... |
30 config = site_wifitest.read_wifi_testbed_config( | 30 config = site_wifitest.read_wifi_testbed_config( |
31 os.path.join(job.configdir, "wifi_testbed_config"), | 31 os.path.join(job.configdir, "wifi_testbed_config"), |
32 client_addr = machines[0]) # NB: take client identity from command line | 32 client_addr = machines[0]) # NB: take client identity from command line |
33 | 33 |
34 server = config['server'] | 34 server = config['server'] |
35 router = config['router'] | 35 router = config['router'] |
36 | 36 |
37 logging.info("Client %s, Server %s, AP %s" % \ | 37 logging.info("Client %s, Server %s, AP %s" % \ |
38 (machines[0], server.get('addr', 'N/A'), router['addr'])) | 38 (machines[0], server.get('addr', 'N/A'), router['addr'])) |
39 | 39 |
40 tagname = config['tagname'] | 40 dir = os.path.join(job.serverdir, "site_tests", "network_WiFiSecMat") |
41 | 41 |
42 dir = os.path.join(job.serverdir, "site_tests", "network_WiFiSecMat") | |
43 # TODO(sleffler) allow test list override from command line | 42 # TODO(sleffler) allow test list override from command line |
44 tests = site_wifitest.read_tests(dir, '[0-9]*') | 43 for t in site_wifitest.read_tests(dir, '[0-9]*'): |
| 44 job.run_test("network_WiFiSecMat", testcase=t, config=config, tag=t['file']) |
45 | 45 |
46 for t in tests: | |
47 wt = site_wifitest.WiFiTest(t['name'], t['steps'], config) | |
48 wt.run() | |
OLD | NEW |