Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1067)

Side by Side Diff: server/site_tests/suites/control.security

Issue 6708003: Fix control.security to match the individual security_*/control files params (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git@master
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_DbusOwners', {}), 19 ('security_DbusOwners', {}),
20 ('security_NetworkListeners', {}), 20 ('security_NetworkListeners', {}),
21 ('security_ProfilePermissions', {}), 21 ('security_ProfilePermissions', {'creds': '$default', 'tag': 'login'}),
22 #TODO(jimhebert) Uncomment this after chromium-os:13173 is fixed.
23 #('security_ProfilePermissions', {'creds': None, 'tag': 'BWSI'}),
22 ('security_RendererSandbox', {}), 24 ('security_RendererSandbox', {}),
23 ('security_ReservedPrivileges', {}), 25 ('security_ReservedPrivileges', {'owner_type': 'user', 'tag': 'user'}),
26 ('security_ReservedPrivileges', {'owner_type': 'group', 'tag': 'group'}),
24 ('security_RestartJob', {}), 27 ('security_RestartJob', {}),
25 ('security_RootfsOwners', {}), 28 ('security_RootfsOwners', {}),
26 ('security_SuidBinaries', {}), 29 ('security_SuidBinaries', {'baseline': 'suid', 'tag': 'suid'}),
30 ('security_SuidBinaries', {'baseline': 'sgid', 'tag': 'sgid'}),
27 ] 31 ]
28 32
29 # A dict which holds {machine: [(test, argv), (test, argv), ...]} 33 # A dict which holds {machine: [(test, argv), (test, argv), ...]}
30 test_dict = {} 34 test_dict = {}
31 35
32 # Assign tests with its argv to machines in a round-robin way. 36 # Assign tests with its argv to machines in a round-robin way.
33 index = 0 37 index = 0
34 for test_with_argv in TESTS: 38 for test_with_argv in TESTS:
35 m_index = index % len(machines) 39 m_index = index % len(machines)
36 test_list = test_dict.setdefault(machines[m_index], []) 40 test_list = test_dict.setdefault(machines[m_index], [])
37 test_list.append(test_with_argv) 41 test_list.append(test_with_argv)
38 index += 1 42 index += 1
39 43
40 44
41 def run_assigned_tests(machine): 45 def run_assigned_tests(machine):
42 client = hosts.create_host(machine) 46 client = hosts.create_host(machine)
43 client_at = autotest.Autotest(client) 47 client_at = autotest.Autotest(client)
44 test_list = test_dict[machine] 48 test_list = test_dict[machine]
45 for test, argv in test_list: 49 for test, argv in test_list:
46 client_at.run_test(test, **argv) 50 client_at.run_test(test, **argv)
47 51
48 # Kick off client tests 52 # Kick off client tests
49 job.parallel_on_machines(run_assigned_tests, machines) 53 job.parallel_on_machines(run_assigned_tests, machines)
50 54
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698