mirror of
https://github.com/stefanberger/swtpm.git
synced 2026-01-05 09:15:55 +00:00
Refactor the tests so that they all run on socket interfaces as well. Use socket ports in the range of 65400-65499 for TPM 1.2 tests. Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
21 lines
415 B
Plaintext
21 lines
415 B
Plaintext
|
|
# For the license, see the LICENSE file in the root directory.
|
|
|
|
if ! [[ "$(uname -o)" =~ Linux ]]; then
|
|
echo "Need Linux to run test with CUSE interface."
|
|
exit 77
|
|
fi
|
|
|
|
if [ "$(id -u)" -ne 0 ]; then
|
|
echo "Need to be root to run test with CUSE interface."
|
|
exit 77
|
|
fi
|
|
|
|
if [ ! -c /dev/cuse ]; then
|
|
modprobe cuse
|
|
if [ $? -ne 0 ]; then
|
|
echo "Skipping test using CUSE module: module not availabe"
|
|
exit 77
|
|
fi
|
|
fi
|