Test TPM module on Linux

Catalogue
  1. 1. Reference material
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#Test on Ubuntu 18.04

#Update
sudo apt update
sudo apt upgrade

#Make sure kernel version is 4.12 or higher
uname -r

#Install TPM2 tools
sudo apt install *tpm2*

#Install python2
sudo apt install python
sudo apt install python-pip
pip install -U pytest
pip install -U pytest-html
pip install -U pytest-rerunfailures

#Download TPM2 test scripts
sudo apt install git
git clone https://github.com/jsakkine-intel/tpm2-scripts
#Download tpm2_smoke.py from: https://github.com/jsakkine-intel/tpm2-scripts/tree/4398af02a90442a85751148aebf725992a2949f3

#Run test
sudo python -m pytest -v tpm2_smoke.py

Reference material