swtpm/tests/load_vtpm_proxy
Stefan Berger cde5f608e5 tests: Skip CUSE TPM related tests if cuse module is not available
Skip the CUSE TPM related tests if the CUSE kernel module is not
available. Return similar error messages for both CUSE and VTPM proxy
module if they are not available.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
2017-02-02 09:01:55 -05:00

12 lines
267 B
Plaintext

# For the license, see the LICENSE file in the root directory.
# Some distros may not have the device
if [ ! -c /dev/vtpmx ]; then
modprobe tpm_vtpm_proxy
if [ $? -ne 0 ]; then
echo "Skipping test using vtpm proxy module: module not available"
exit 77
fi
fi