Skip to content

Instantly share code, notes, and snippets.

@jarkkojs
Created July 28, 2023 15:13
Show Gist options
  • Save jarkkojs/5ccd3a2c77c2c172453bbf60eaa8e6fc to your computer and use it in GitHub Desktop.
Save jarkkojs/5ccd3a2c77c2c172453bbf60eaa8e6fc to your computer and use it in GitHub Desktop.
# python3
Python 3.10.6 (main, Jul 28 2023, 17:53:04) [GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
# ./run_kselftest.sh
[ 43.937979] kselftest: Running tests in tpm2
TAP version 13
1..2
# selftests: tpm2: test_smoke.sh
# test_read_partial_overwrite (tpm2_tests.SmokeTest) ... ok
# test_read_partial_resp (tpm2_tests.SmokeTest) ... ok
# test_seal_with_auth (tpm2_tests.SmokeTest) ... ok
# test_seal_with_policy (tpm2_tests.SmokeTest) ... ok
# test_seal_with_too_long_auth (tpm2_tests.SmokeTest) ... ok
# test_send_two_cmds (tpm2_tests.SmokeTest) ... ok
# test_too_short_cmd (tpm2_tests.SmokeTest) ... ok
# test_unseal_with_wrong_auth (tpm2_tests.SmokeTest) ... ok
# test_unseal_with_wrong_policy (tpm2_tests.SmokeTest) ... ok
#
# ----------------------------------------------------------------------
# Ran 9 tests in 15.007s
#
# OK
# test_async (tpm2_tests.AsyncTest) ... ok
# test_flush_invalid_context (tpm2_tests.AsyncTest) ... ok
#
# ----------------------------------------------------------------------
# Ran 2 tests in 0.052s
#
# OK
ok 1 selftests: tpm2: test_smoke.sh
# selftests: tpm2: test_space.sh
# test_flush_context (tpm2_tests.SpaceTest) ... /usr/lib/python3.10/unittest/case.py:549: ResourceWarning: unclosed file <_io.FileIO name='/dev/tpmrm0' mode='rb+' closefd=True>
# ResourceWarning: Enable tracemalloc to get the object allocation traceback
# ok
# test_get_handles (tpm2_tests.SpaceTest) ... ok
# test_invalid_cc (tpm2_tests.SpaceTest) ... ok
# test_make_two_spaces (tpm2_tests.SpaceTest) ... ok
#
# ----------------------------------------------------------------------
# Ran 4 tests in 14.306s
#
# OK
ok 2 selftests: tpm2: test_space.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment