mirror of
https://github.com/stefanberger/swtpm.git
synced 2026-08-23 16:27:33 +00:00
tests: Fix spelling mistakes
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
This commit is contained in:
parent
f954e3b9d2
commit
67152d3e18
@ -117,7 +117,7 @@ if [ ! -r "$VOLATILE_STATE_FILE" ]; then
|
||||
fi
|
||||
|
||||
if ! tmp=$(run_swtpm_ioctl "${SWTPM_INTERFACE}" -g | cut -d":" -f2); then
|
||||
echo "Error: Could not get the configration flags of the ${SWTPM_INTERFACE} TPM."
|
||||
echo "Error: Could not get the configuration flags of the ${SWTPM_INTERFACE} TPM."
|
||||
echo "TPM Logfile:"
|
||||
cat "$logfile"
|
||||
exit 1
|
||||
|
||||
@ -130,7 +130,7 @@ if [ "$size" -ne "$expsize" ]; then
|
||||
fi
|
||||
|
||||
if ! tmp=$(run_swtpm_ioctl "${SWTPM_INTERFACE}" -g | cut -d":" -f2); then
|
||||
echo "Error: Could not get the configration flags of the ${SWTPM_INTERFACE} TPM."
|
||||
echo "Error: Could not get the configuration flags of the ${SWTPM_INTERFACE} TPM."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
@ -289,7 +289,7 @@ fi
|
||||
echo "Testing new CryptAdjustPrimeCandidate implementation"
|
||||
|
||||
# copy all the state files; the files need libtpms (0.8.0) with
|
||||
# TPM 2.0 revsion 155; there the seeds are setup so that the fixed
|
||||
# TPM 2.0 revision 155; there the seeds are setup so that the fixed
|
||||
# RSA key generation algorithm is used
|
||||
cp -f "${TESTDIR}"/data/tpm2state4/* "${TPM_PATH}"
|
||||
|
||||
|
||||
@ -118,7 +118,7 @@ if [ ! -r "$VOLATILE_STATE_FILE" ]; then
|
||||
fi
|
||||
|
||||
if ! tmp=$(run_swtpm_ioctl "${SWTPM_INTERFACE}" -g | cut -d":" -f2); then
|
||||
echo "Error: Could not get the configration flags of the ${SWTPM_INTERFACE} TPM."
|
||||
echo "Error: Could not get the configuration flags of the ${SWTPM_INTERFACE} TPM."
|
||||
echo "TPM Logfile:"
|
||||
cat "$logfile"
|
||||
exit 1
|
||||
|
||||
@ -54,7 +54,7 @@ else
|
||||
SWTPM_LD_LIBRARY_PATH=""
|
||||
fi
|
||||
|
||||
# Mininum permissions on directory
|
||||
# Minimum permissions on directory
|
||||
chmod 0700 "${TPM_PATH}"
|
||||
chown "${TESTUSER}:${TESTGROUP}" "${TPM_PATH}"
|
||||
# empty pid file that swtpm must be able to overwrite
|
||||
|
||||
@ -104,7 +104,7 @@ if ! [[ $size =~ $expsize ]]; then
|
||||
fi
|
||||
|
||||
if ! tmp=$(run_swtpm_ioctl "${SWTPM_INTERFACE}" -g | cut -d":" -f2); then
|
||||
echo "Error: Could not get the configration flags of the ${SWTPM_INTERFACE} TPM."
|
||||
echo "Error: Could not get the configuration flags of the ${SWTPM_INTERFACE} TPM."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
@ -108,7 +108,7 @@ done
|
||||
RES=$(swtpm_cmd_tx "${SWTPM_INTERFACE}" '\x80\x02\x00\x00\x00\x27\x00\x00\x01\x3a\x40\x00\x00\x0a\x00\x00\x00\x09\x40\x00\x00\x09\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x06\x00\x00\x00\x06')
|
||||
exp=' 80 02 00 00 00 13 00 00 00 00 00 00 00 00 00 00 01 00 00'
|
||||
if [ "$RES" != "$exp" ]; then
|
||||
echo "Error: Did not get expected result fron TPM2_DictionaryAttackParameters()"
|
||||
echo "Error: Did not get expected result from TPM2_DictionaryAttackParameters()"
|
||||
echo "expected: $exp"
|
||||
echo "received: $RES"
|
||||
exit 1
|
||||
|
||||
@ -21,7 +21,7 @@ fi
|
||||
|
||||
if [ ! -c /dev/cuse ]; then
|
||||
if ! modprobe cuse; then
|
||||
echo "Skipping test using CUSE module: module not availabe"
|
||||
echo "Skipping test using CUSE module: module not available"
|
||||
exit 77
|
||||
fi
|
||||
fi
|
||||
|
||||
@ -211,7 +211,7 @@ function test_primary()
|
||||
local i res rc
|
||||
|
||||
if [ "$create" -eq 1 ]; then
|
||||
# Create a permanent primary key that we expecte
|
||||
# Create a permanent primary key that we expect
|
||||
# to again see after the TPM has been restarted
|
||||
if ! "${TOOLSPATH}/${PREFIX}createprimary" -hi o -si > "$TMPFILE"; then
|
||||
echo "Error: createprimary failed."
|
||||
@ -484,7 +484,7 @@ function test_session()
|
||||
local i res rc
|
||||
|
||||
if [ "$create" -eq 1 ]; then
|
||||
# Create a permanent primary key that we expecte
|
||||
# Create a permanent primary key that we expect
|
||||
# to again see after the TPM has been restarted
|
||||
if ! "${TOOLSPATH}/${PREFIX}createprimary" -hi o -st > "$TMPFILE"; then
|
||||
echo "Error: createprimary for creating storage key failed."
|
||||
@ -613,7 +613,7 @@ function test_primary_volatile_load()
|
||||
local i res rc
|
||||
|
||||
if [ "$create" -eq 1 ]; then
|
||||
# Create a permanent primary key that we expecte
|
||||
# Create a permanent primary key that we expect
|
||||
# to again see after the TPM has been restarted
|
||||
if ! "${TOOLSPATH}/${PREFIX}createprimary" -hi o -si > "$TMPFILE"; then
|
||||
echo "Error: createprimary failed."
|
||||
|
||||
Loading…
Reference in New Issue
Block a user