Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable IBM TSS2 test via package for Bionic #231

Merged
merged 4 commits into from
Apr 9, 2020
Merged

Commits on Apr 9, 2020

  1. swtpm_setup: Explicitly set TCSD_TCP_DEVICE_HOSTNAME=127.0.0.1

    To make swtpm_setup.sh work on Travis on Bionic we need to
    explicitly set TCSD_TCP_DEVICE_HOSTAME=127.0.0.1 since lookup
    of localhost (with the API the tcsd is using) does not work.
    It doesn't negatively affect any other use case, so no problem
    setting it.
    
    Also replace localhost in the bash tcp device path with 127.0.0.1.
    
    Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
    stefanberger committed Apr 9, 2020
    Configuration menu
    Copy the full SHA
    b5b47b2 View commit details
    Browse the repository at this point in the history
  2. tests: Change localhost to 127.0.0.1 or explicityly set 127.0.0.1

    To make the test cases work on Travis on Bionic replace all occurrences of
    localhost with 127.0.0.1. The only affected client tools seem to be those
    related to the TPM 1.2 and the IBM TSS2. For some reason the API used
    there cannot resolve localhost to 127.0.0.1.
    
    Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
    stefanberger committed Apr 9, 2020
    Configuration menu
    Copy the full SHA
    bf14678 View commit details
    Browse the repository at this point in the history
  3. Travis: Run IBM TSS2 for coverage; use Bionic

    The IBM TSS2 is available starting with Bionic. Use it there
    to extend the test coverage of the code.
    
    Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
    stefanberger committed Apr 9, 2020
    Configuration menu
    Copy the full SHA
    d00495e View commit details
    Browse the repository at this point in the history
  4. tests: Modify test to create 2 orderly indices

    Modify the test_tpm2_save_load_state_3 to create 2 orderly NVRAM indices
    in the first two locations. Those indices will be cleared by a reset
    of the TPM and therefore cannot be read once the TPM 2 restarts after
    the reset. This also provides better test coverage.
    
    Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
    stefanberger committed Apr 9, 2020
    Configuration menu
    Copy the full SHA
    478c598 View commit details
    Browse the repository at this point in the history