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/>.
23
_summary: Count the number of visible TPM chips in sysfs
25
This job just counts the number of visible TPM chips in as reported by
26
tpm-sysfs-resource tool. The only resource attribute is 'count'
27
command: echo "count: $(tpm-sysfs-resource | grep -F 'x-sysfs-device-name' | wc -l)"
28
estimated_duration: 2s
29
flags: preserve-locale
35
_summary: Collect TPM information from sysfs
37
This job collects all the available TPM information from
38
/sys/class/tpm/*/device/*.
39
command: tpm-sysfs-resource
40
estimated_duration: 2s
41
flags: preserve-locale
42
# Tie this resource with the has_tpm_chip manifest entry. This way it will
43
# automatically get skipped (and everything along with it) when according to
44
# the manifest, there is no TPM chip on the DUT.
45
requires: manifest.has_tpm_chip
46
imports: from 2013.com.canonical.plainbox import manifest
49
id: sysfs_tpm_after_taking_ownership
52
after: action/take-ownership
53
_summary: Collect TPM information from sysfs (after taking ownership)
55
This job collects all the available TPM information from
56
/sys/class/tpm/*/device/*. Distinct files present there are converted to
57
attributes of resource records.
58
command: tpm-sysfs-resource
59
estimated_duration: 2s
60
flags: preserve-locale
61
# See note about manifest on the sysfs_tpm job above.
62
requires: manifest.has_tpm_chip
63
imports: from 2013.com.canonical.plainbox import manifest
66
id: sysfs_tpm_after_clearing_ownership
69
after: action/clear-ownership
70
_summary: Collect TPM information from sysfs (after clearing ownership)
72
This job collects all the available TPM information from
73
/sys/class/tpm/*/device/*. Distinct files present there are converted to
74
attributes of resource records.
75
command: tpm-sysfs-resource
76
estimated_duration: 2s
77
flags: preserve-locale
78
# See note about manifest on the sysfs_tpm job above.
79
requires: manifest.has_tpm_chip
80
imports: from 2013.com.canonical.plainbox import manifest
86
_summary: Collect DMI information from sysfs
88
This job collects all the available DMI information from /sys/class/dmi/id/*.
89
The main purpose of including this job is to allow the provider to include
90
vendor-specific quirks by looking at the sysfs_dmi.bios_vendor attribute.
91
command: dmi-sysfs-resource
92
estimated_duration: 1s
93
flags: preserve-locale