1
# This file is part of Checkbox.
3
# Copyright 2015 Canonical Ltd.
5
# Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
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.
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.
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/>.
21
_name: TPM (Trusted Platform Module) Smoke Tests
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
27
After testing, a number of logs are collected for additional analysis.
28
estimated_duration: 20m
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
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.
47
# Next we want to take the ownership of the chip.
49
# Finally, with the TPM chip owned, we can perform some simple query jobs and
55
_name: Collect TPM (Trusted Platform Module) Information
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.
61
This test plan is not interactive, apart from the manifest collection step.
62
estimated_duration: 1m
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.
69
# Then collect all of the information