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

« back to all changes in this revision

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

  • Committer: Sylvain Pineau
  • Date: 2014-07-29 16:05:54 UTC
  • mto: This revision was merged to the branch mainline in revision 3149.
  • Revision ID: sylvain.pineau@canonical.com-20140729160554-qev8887xbunn9tmi
checkbox-ng:launchers:checkbox-cli: The checkbox-cli launcher

Running the default whitelist (with the suite selection screen skipped)

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: job
20
 
id: sysfs_tpm_count
21
 
category_id: tpm
22
 
plugin: resource
23
 
_summary: Count the number of visible TPM chips in sysfs
24
 
_description:
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
30
 
 
31
 
unit: job
32
 
id: sysfs_tpm
33
 
category_id: tpm
34
 
plugin: resource
35
 
_summary: Collect TPM information from sysfs
36
 
_description:
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
47
 
 
48
 
unit: job
49
 
id: sysfs_tpm_after_taking_ownership
50
 
category_id: tpm
51
 
plugin: resource
52
 
after: action/take-ownership
53
 
_summary: Collect TPM information from sysfs (after taking ownership)
54
 
_description:
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
64
 
 
65
 
unit: job
66
 
id: sysfs_tpm_after_clearing_ownership
67
 
category_id: tpm
68
 
plugin: resource
69
 
after: action/clear-ownership
70
 
_summary: Collect TPM information from sysfs (after clearing ownership)
71
 
_description:
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
81
 
 
82
 
unit: job
83
 
id: sysfs_dmi
84
 
category_id: tpm
85
 
plugin: resource
86
 
_summary: Collect DMI information from sysfs
87
 
_description:
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