• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2014 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
5AUTHOR = "dpursell"
6NAME = "debugd_DevTools"
7PURPOSE = "Debug daemon dev tools test"
8CRITERIA = "This test will fail if any tool or query fails to respond properly"
9TIME = "SHORT"
10TEST_CATEGORY = "Functional"
11TEST_CLASS = "platform"
12TEST_TYPE = "server"
13
14DOC = """
15This test check debugd dev tools functionality. Currently this test must be run
16manually on a machine that is already in dev mode and does not yet have an
17owner, otherwise the test will throw a TestNAError and stop. Additionally, if
18the device rootfs is verified, this test will disable verification and reboot.
19
20To automate this test for use in the lab, the following should be implemented:
21  - Dev mode control
22    - Verify tools are unavailable when not in dev mode.
23    - Transition to dev mode before running tests on the tools.
24    - Return to original dev mode state after the test completes.
25  - Login control
26    - Verify tools are unavailable after user login.
27    - Wipe the login record before running tests on the tools.
28    - Return to original login state after the test completes.
29  - Restore rootfs verification
30    - May require installing a fresh test image.
31TODO(dpursell): Implement the remaining features, see crbug.com/428971.
32"""
33
34job.run_test("debugd_DevTools", host=hosts.create_host(machines[0]))
35