~jocave/checkbox/hybrid-amd-gpu-mods

« back to all changes in this revision

Viewing changes to providers/plainbox-provider-tpm/units/test-plan.pxu

  • Committer: Zygmunt Krynicki
  • Date: 2013-05-29 07:50:30 UTC
  • mto: This revision was merged to the branch mainline in revision 2153.
  • Revision ID: zygmunt.krynicki@canonical.com-20130529075030-ngwz245hs2u3y6us
checkbox: move current checkbox code into checkbox-old

This patch cleans up the top-level directory of the project into dedicated
sub-project directories. One for checkbox-old (the current checkbox and all the
associated stuff), one for plainbox and another for checkbox-ng.

There are some associated changes, such as updating the 'source' mode of
checkbox provider in plainbox, and fixing paths in various test scripts that we
have.

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# This file is part of Checkbox.
2
 
#
3
 
# Copyright 2015 Canonical Ltd.
4
 
# Written by:
5
 
#   Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
6
 
#
7
 
# Checkbox is free software: you can redistribute it and/or modify
8
 
# it under the terms of the GNU General Public License version 3,
9
 
# as published by the Free Software Foundation.
10
 
#
11
 
# Checkbox is distributed in the hope that it will be useful,
12
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 
# GNU General Public License for more details.
15
 
#
16
 
# You should have received a copy of the GNU General Public License
17
 
# along with Checkbox.  If not, see <http://www.gnu.org/licenses/>.
18
 
 
19
 
unit: test plan
20
 
id: smoke-tests
21
 
_name: TPM (Trusted Platform Module) Smoke Tests
22
 
_description:
23
 
 This test plan contains simple tests for the TPM chip. The tests will ensure
24
 
 that the TPM chip is present, is visible by the OS and that ownership over the
25
 
 chip can be taken.
26
 
 .
27
 
 After testing, a number of logs are collected for additional analysis.
28
 
estimated_duration: 20m
29
 
include:
30
 
 # First just the manifest stuff (interactive collection + resource)
31
 
 2013.com.canonical.plainbox::collect-manifest
32
 
 2013.com.canonical.plainbox::manifest
33
 
 # Vendor-specific, interactive recovery process. We want to educate the tester
34
 
 # how they can reset the TPM chip from unknown state using vendor-specific
35
 
 # instructions.
36
 
 recovery/.*/clear-tpm-chip
37
 
 # Generic setup path, we want to go from any TPM state (Active, Inactive,
38
 
 # Disabled) to Active where we can perform useful tests.
39
 
 setup/enable-inactive-tpm
40
 
 setup/enable-disabled-tpm
41
 
 # The first thing we want to try is to clear the ownership of the TPM chip
42
 
 # This will let us ensure that all the other tests are independent of any
43
 
 # ownership or data already stored there.
44
 
 action/clear-ownership
45
 
 # Which might require us to reboot / poweroff the machine to complete.
46
 
 action/re-enable-tpm
47
 
 # Next we want to take the ownership of the chip.
48
 
 action/take-ownership
49
 
 # Finally, with the TPM chip owned, we can perform some simple query jobs and
50
 
 # collect everything.
51
 
 query/.*
52
 
 
53
 
unit: test plan
54
 
id: info
55
 
_name: Collect TPM (Trusted Platform Module) Information
56
 
_description:
57
 
 This test plan contains a selection of jobs that collect various bits of
58
 
 information about a TPM chip. They are designed to run with an owned TPM chip
59
 
 that uses well-known (20 zero bytes) owner key.
60
 
 .
61
 
 This test plan is not interactive, apart from the manifest collection step.
62
 
estimated_duration: 1m
63
 
include:
64
 
 # First just the manifest stuff (interactive collection + resource)
65
 
 2013.com.canonical.plainbox::collect-manifest
66
 
 2013.com.canonical.plainbox::manifest
67
 
 # Next we want to take the ownership of the chip if it's not owned yet.
68
 
 action/take-ownership
69
 
 # Then collect all of the information
70
 
 query/.*