Skip to content

Commit 6ea3dfe

Browse files
author
Jarkko Sakkinen
committed
selftests: add TPM 2.0 tests
Added the tests that I've been using for testing TPM 2.0 functionality for a long time but have been out-of-tree so far, residing in https://github.com/jsakkine-intel/tpm2-scripts Cc: Tadeusz Struk <[email protected]> Signed-off-by: Jarkko Sakkinen <[email protected]> Acked-by: Joey Pabalinas <[email protected]> Reviewed-by: Petr Vorel <[email protected]>
1 parent 8ab547a commit 6ea3dfe

File tree

6 files changed

+936
-0
lines changed

6 files changed

+936
-0
lines changed

tools/testing/selftests/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ TARGETS += sysctl
4747
ifneq (1, $(quicktest))
4848
TARGETS += timers
4949
endif
50+
TARGETS += tpm2
5051
TARGETS += user
5152
TARGETS += vm
5253
TARGETS += x86
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause)
2+
include ../lib.mk
3+
4+
TEST_PROGS := test_smoke.sh test_space.sh
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
# SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause)
3+
4+
python -m unittest -v tpm2_tests.SmokeTest
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
# SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause)
3+
4+
python -m unittest -v tpm2_tests.SpaceTest

0 commit comments

Comments
 (0)