stefanberger / swtpm

Libtpms-based TPM emulator with socket, character device, and Linux CUSE interface.
Other
564 stars 136 forks source link

Enable extra installed tests #873

Closed elmarco closed 2 weeks ago

stefanberger commented 3 weeks ago

Can you please rebase.

All of these work fine (run as non-root):

$ ./installed-runner.sh
$ SWTPM_TEST_EXPENSIVE=1 ./installed-runner.sh
$ SWTPM_TEST_EXPENSIVE=1 SWTPM_TEST_IBMTSS=1 ./installed-runner.sh

I saw test_tpm12 failing due to the following but then also passing at least once -- probably the git clone didn't work:

./test_tpm12: line 80: ./patches/libtpm.patch: No such file or directory

The following tests are still being skipped:

SKIP: test_tpm2_save_load_state_2
SKIP: test_tpm2_save_load_state_2_linear
SKIP: test_tpm2_save_load_state_2_block
SKIP: test_tpm2_save_load_state_3
elmarco commented 2 weeks ago

The following tests are still being skipped:

You still need SWTPM_TEST_IBMTSS2=1.

To run against an installed IBM TSS test suite, you may set the SWTPM_TEST_IBMTSS to the location of the test suite, such as /usr/libexec/installed-tests/ibmtss.

stefanberger commented 2 weeks ago

892 should go in before this one.

elmarco commented 2 weeks ago

892 should go in before this one.

there isn't much left after the rebase, thanks

stefanberger commented 2 weeks ago

892 should go in before this one.

there isn't much left after the rebase, thanks

I think it's quite complete now...