Skip to content

Commit

Permalink
Bug 1563258, tests: ensure CAVS test dirs are created, r=rrelyea
Browse files Browse the repository at this point in the history
--HG--
extra : amend_source : 346198a579e6927b2c6378a6c0d78f091383d6e2
  • Loading branch information
ueno committed Jul 3, 2019
1 parent 090d043 commit 6547de1
Show file tree
Hide file tree
Showing 12 changed files with 27 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/fips/cavs_scripts/aes.sh
Expand Up @@ -83,6 +83,8 @@ if [ ${COMMAND} = "verify" ]; then
exit $result
fi

test -d "${RSPDIR}" || mkdir "${RSPDIR}"

for request in $cbc_kat_requests; do
response=`echo $request | sed -e "s/req/rsp/"`
echo $request $response
Expand Down
2 changes: 2 additions & 0 deletions tests/fips/cavs_scripts/aesgcm.sh
Expand Up @@ -56,6 +56,8 @@ if [ ${COMMAND} = "verify" ]; then
exit $result
fi

test -d "${RSPDIR}" || mkdir "${RSPDIR}"

for request in $gcm_decrypt_requests; do
response=`echo $request | sed -e "s/req/rsp/"`
echo $request $response
Expand Down
2 changes: 2 additions & 0 deletions tests/fips/cavs_scripts/dsa.sh
Expand Up @@ -59,6 +59,8 @@ if [ ${COMMAND} = "verify" ]; then
exit $result
fi

test -d "${RSPDIR}" || mkdir "${RSPDIR}"

request=KeyPair.req
response=`echo $request | sed -e "s/req/rsp/"`
echo $request $response
Expand Down
2 changes: 2 additions & 0 deletions tests/fips/cavs_scripts/ecdsa.sh
Expand Up @@ -50,6 +50,8 @@ if [ ${COMMAND} = "verify" ]; then
exit $result
fi

test -d "${RSPDIR}" || mkdir "${RSPDIR}"

request=KeyPair.req
response=`echo $request | sed -e "s/req/rsp/"`
echo $request $response
Expand Down
3 changes: 3 additions & 0 deletions tests/fips/cavs_scripts/hmac.sh
Expand Up @@ -31,6 +31,9 @@ if [ ${COMMAND} = "verify" ]; then
done
exit $result
fi

test -d "${RSPDIR}" || mkdir "${RSPDIR}"

for request in $hmac_requests; do
response=`echo $request | sed -e "s/req/rsp/"`
echo $request $response
Expand Down
2 changes: 2 additions & 0 deletions tests/fips/cavs_scripts/ike.sh
Expand Up @@ -33,6 +33,8 @@ if [ ${COMMAND} = "verify" ]; then
exit $result
fi

test -d "${RSPDIR}" || mkdir "${RSPDIR}"

request=ikev1_dsa.req
response=`echo $request | sed -e "s/req/rsp/"`
echo $request $response
Expand Down
2 changes: 2 additions & 0 deletions tests/fips/cavs_scripts/kas.sh
Expand Up @@ -68,6 +68,8 @@ if [ ${COMMAND} = "verify" ]; then
exit $result
fi

test -d "${RSPDIR}" || mkdir "${RSPDIR}"

request=KASFunctionTest_ECCEphemeralUnified_NOKC_ZZOnly_init.req
response=`echo $request | sed -e "s/req/rsp/"`
echo $request $response
Expand Down
3 changes: 3 additions & 0 deletions tests/fips/cavs_scripts/rng.sh
Expand Up @@ -30,6 +30,9 @@ if [ ${COMMAND} = "verify" ]; then
done
exit $result
fi

test -d "${RSPDIR}" || mkdir "${RSPDIR}"

for request in $drbg_requests; do
response=`echo $request | sed -e "s/req/rsp/"`
echo $request $response
Expand Down
2 changes: 2 additions & 0 deletions tests/fips/cavs_scripts/rsa.sh
Expand Up @@ -38,6 +38,8 @@ if [ ${COMMAND} = "verify" ]; then
exit $result
fi

test -d "${RSPDIR}" || mkdir "${RSPDIR}"

request=SigGen15_186-3.req
response=`echo $request | sed -e "s/req/rsp/"`
echo $request $response
Expand Down
2 changes: 2 additions & 0 deletions tests/fips/cavs_scripts/sha.sh
Expand Up @@ -51,6 +51,8 @@ if [ ${COMMAND} = "verify" ]; then
exit $result
fi

test -d "${RSPDIR}" || mkdir "${RSPDIR}"

for request in $sha_ShortMsg_requests; do
response=`echo $request | sed -e "s/req/rsp/"`
echo $request $response
Expand Down
2 changes: 2 additions & 0 deletions tests/fips/cavs_scripts/tdea.sh
Expand Up @@ -77,6 +77,8 @@ if [ ${COMMAND} = "verify" ]; then
exit $result
fi

test -d "${RSPDIR}" || mkdir "${RSPDIR}"

for request in $cbc_kat_requests; do
response=`echo $request | sed -e "s/req/rsp/"`
echo $request $response
Expand Down
3 changes: 3 additions & 0 deletions tests/fips/cavs_scripts/tls.sh
Expand Up @@ -30,6 +30,9 @@ if [ ${COMMAND} = "verify" ]; then
done
exit $result
fi

test -d "${RSPDIR}" || mkdir "${RSPDIR}"

for request in $tls_requests; do
response=`echo $request | sed -e "s/req/rsp/"`
echo $request $response
Expand Down

0 comments on commit 6547de1

Please sign in to comment.