diff options
author | Jeffrey Walton <noloader@gmail.com> | 2016-12-01 21:11:48 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2016-12-01 21:11:48 -0500 |
commit | d91244a6575fd2abaf5806ab9b8016faf311486c (patch) | |
tree | 038a2242995356849dab2d7e4d59377a68e2f0b5 /TestScripts | |
parent | 50f0c84ea0beebfed6797eb86edff635e734529c (diff) | |
download | cryptopp-git-d91244a6575fd2abaf5806ab9b8016faf311486c.tar.gz |
Sync'd cryptest.sh. Cleared shadow variable warning in poly1305.cpp
Diffstat (limited to 'TestScripts')
-rwxr-xr-x | TestScripts/cryptest.sh | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/TestScripts/cryptest.sh b/TestScripts/cryptest.sh index 0047e55f..f64e649f 100755 --- a/TestScripts/cryptest.sh +++ b/TestScripts/cryptest.sh @@ -1457,8 +1457,26 @@ if [[ ("$HAVE_DISASS" -ne "0" && ("$IS_X86" -ne "0" || "$IS_X64" -ne "0")) ]]; t echo "ERROR: failed to generate sha1msg2 instruction" | tee -a "$TEST_RESULTS" fi + COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c sha256rnds2) + if [[ ("$COUNT" -eq "0") ]]; then + FAILED=1 + echo "ERROR: failed to generate sha256rnds2 instruction" | tee -a "$TEST_RESULTS" + fi + + COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c sha256msg1) + if [[ ("$COUNT" -eq "0") ]]; then + FAILED=1 + echo "ERROR: failed to generate sha256msg1 instruction" | tee -a "$TEST_RESULTS" + fi + + COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c sha256msg2) + if [[ ("$COUNT" -eq "0") ]]; then + FAILED=1 + echo "ERROR: failed to generate sha256msg2 instruction" | tee -a "$TEST_RESULTS" + fi + if [[ ("$FAILED" -eq "0") ]]; then - echo "Verified sha1rnds4, sha1nexte, sha1msg1 and sha1msg2 machine instructions" | tee -a "$TEST_RESULTS" + echo "Verified sha1rnds4, sha1nexte, sha1msg1, sha1msg2, sha256rnds2, sha256msg1 and sha256msg2 machine instructions" | tee -a "$TEST_RESULTS" else if [[ ("$CLANG_COMPILER" -ne "0" && "$CLANG_37_OR_ABOVE" -eq "0") ]]; then echo "This could be due to Clang and lack of expected support for SSSE3 (and above) in some versions of the compiler. If so, try Clang 3.7 or above" |