Add additional self tests under debug builds

pull/416/head
Jeffrey Walton 2017-05-05 17:21:08 -04:00
parent 5c1de7b5a5
commit c1377b2955
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
4 changed files with 2166 additions and 1916 deletions

View File

@ -577,7 +577,7 @@ coverage: libcryptopp.a cryptest.exe
./cryptest.exe v
./cryptest.exe tv all
lcov --base-directory . --directory . -c -o cryptest.info
lcov --remove cryptest.info "fips140.*" "*test.*" "bench*.cpp" "validat*.*" "/usr/*" -o cryptest.info
lcov --remove cryptest.info "adhoc.cpp" "wait.*" "network.*" "socketft.*" "fips140.*" "*test.*" "bench*.cpp" "validat*.*" "/usr/*" -o cryptest.info
genhtml -o ./TestCoverage/ -t "cryptest.exe test coverage" --num-spaces 4 cryptest.info
.PHONY: test check

File diff suppressed because it is too large Load Diff

View File

@ -93,6 +93,14 @@ bool ValidateAll(bool thorough)
pass=TestASN1Parse() && pass;
// Enable during debug for code coverage
pass=ValidateBaseCode() && pass;
// Additional tests due to no coverage
pass=TestGzip() && pass;
pass=TestZinflate() && pass;
pass=TestMersenne() && pass;
pass=TestDefaultEncryptor() && pass;
pass=TestDefaultEncryptorWithMAC() && pass;
pass=TestLegacyEncryptor() && pass;
pass=TestLegacyEncryptorWithMAC() && pass;
#endif
pass=ValidateCRC32() && pass;

View File

@ -120,6 +120,14 @@ bool TestRounding();
bool TestHuffmanCodes();
// http://github.com/weidai11/cryptopp/issues/346
bool TestASN1Parse();
// Additional tests due to no coverage
bool TestGzip();
bool TestZinflate();
bool TestMersenne();
bool TestDefaultEncryptor();
bool TestDefaultEncryptorWithMAC();
bool TestLegacyEncryptor();
bool TestLegacyEncryptorWithMAC();
#endif
#if 1