Add additional self tests under debug builds
parent
5c1de7b5a5
commit
c1377b2955
|
|
@ -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
|
||||
|
|
|
|||
4064
validat0.cpp
4064
validat0.cpp
File diff suppressed because it is too large
Load Diff
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue