tests: Allow to run the integration tests using a real TPM device
tests: Allow to run the integration tests using a real TPM device

Currently, the integration tests can't only be run either against in the
following configurations:

1) tpm2-abrmd + TPM simulator
2) the TPM simulator directly

But this doesn't cover some configurations that were previously supported:

3) tpm2-abrmd + the default TPM device (/dev/tpm0)
4) tpm2-abrmd + a TPM device that's not the default (i.e: /dev/tpm1)
5) a TPM device directly (i.e: /dev/tpmrm0)

This patch allows the integration tests to be run using all the possible
configurations, by setting TPM2_* environment variables instead of the
(unused) no-abrmd option.

For example:

1) $ TPM2_ABRMD=/path/to/tpm2-abrmd TPM2_SIM=/path/to/tpm_server ./tests/pcrlist.sh
2) $ TPM2_SIM=/path/to/tpm_server ./tests/pcrlist.sh
3) $ TPM2_ABRMD=/path/to/tpm2-abrmd ./tests/pcrlist.sh
4) $ TPM2_ABRMD=/path/to/tpm2-abrmd TPM2_DEVICE=/dev/tpm1 ./tests/pcrlist.sh
5) $ TPM2_DEVICE=/dev/tpmrm0 ./tests/pcrlist.sh

Signed-off-by: Javier Martinez Canillas <8fdf2abf85d34ea8f3f979ef25dc1f25d94aca29@redhat.com>

martinezjavier/tpm2-tools,martinezjavier/tpm2-tools,01org/tpm2.0-tools,01org/tpm2.0-tools,01org/tpm2.0-tools,martinezjavier/tpm2-tools,martinezjavier/tpm2-tools