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 = "Chrome OS Team" | 5 AUTHOR = "Chrome OS Team" |
6 NAME = "Security" | 6 NAME = "Security" |
7 TIME = "LONG" | 7 TIME = "LONG" |
8 TEST_CATEGORY = "Functional" | 8 TEST_CATEGORY = "Functional" |
9 TEST_CLASS = "suite" | 9 TEST_CLASS = "suite" |
10 TEST_TYPE = "server" | 10 TEST_TYPE = "server" |
11 | 11 |
12 DOC = """ | 12 DOC = """ |
13 Security Functional test suite. | 13 Security Functional test suite. |
14 """ | 14 """ |
15 | 15 |
16 | 16 |
17 # List of client tests with parameters | 17 # List of client tests with parameters |
18 TESTS = [ | 18 TESTS = [ |
19 ('security_BundledCRXs', {}), | |
20 ('security_DbusOwners', {}), | 19 ('security_DbusOwners', {}), |
21 ('security_NetworkListeners', {}), | 20 ('security_NetworkListeners', {}), |
22 ('security_RendererSandbox', {}), | 21 ('security_RendererSandbox', {}), |
23 ('security_ReservedPrivileges', {}), | 22 ('security_ReservedPrivileges', {}), |
24 ('security_RestartJob', {}), | 23 ('security_RestartJob', {}), |
25 ('security_RootfsOwners', {}), | 24 ('security_RootfsOwners', {}), |
26 ('security_SuidBinaries', {}), | 25 ('security_SuidBinaries', {}), |
27 ] | 26 ] |
28 | 27 |
29 # A dict which holds {machine: [(test, argv), (test, argv), ...]} | 28 # A dict which holds {machine: [(test, argv), (test, argv), ...]} |
(...skipping 11 matching lines...) Expand all Loading... |
41 def run_assigned_tests(machine): | 40 def run_assigned_tests(machine): |
42 client = hosts.create_host(machine) | 41 client = hosts.create_host(machine) |
43 client_at = autotest.Autotest(client) | 42 client_at = autotest.Autotest(client) |
44 test_list = test_dict[machine] | 43 test_list = test_dict[machine] |
45 for test, argv in test_list: | 44 for test, argv in test_list: |
46 client_at.run_test(test, **argv) | 45 client_at.run_test(test, **argv) |
47 | 46 |
48 # Kick off client tests | 47 # Kick off client tests |
49 job.parallel_on_machines(run_assigned_tests, machines) | 48 job.parallel_on_machines(run_assigned_tests, machines) |
50 | 49 |
OLD | NEW |