diff options
author | Jeffrey Walton <noloader@gmail.com> | 2017-05-04 19:11:24 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2017-05-04 19:11:24 -0400 |
commit | 5c1de7b5a5676a136e00eb2c2a8fcc18aded5bb9 (patch) | |
tree | c88d146217f3f3d22b71b8c395824f25152dfe2b /validat0.cpp | |
parent | 9614307ab7f4a4a420b665ac6c798d80c96cdaad (diff) | |
download | cryptopp-git-5c1de7b5a5676a136e00eb2c2a8fcc18aded5bb9.tar.gz |
Add variable block size support to test and benchmarks
CRYPTOPP_COVERAGE was added at 9614307ab7f4a4a4 to increase code coverage support. This commit enables additional validation routines when CRYPTOPP_COVERAGE is in effect.
Diffstat (limited to 'validat0.cpp')
-rw-r--r-- | validat0.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/validat0.cpp b/validat0.cpp index 933f78ef..fd533df7 100644 --- a/validat0.cpp +++ b/validat0.cpp @@ -24,7 +24,7 @@ NAMESPACE_BEGIN(CryptoPP)
NAMESPACE_BEGIN(Test)
-#if defined(CRYPTOPP_DEBUG) && !defined(CRYPTOPP_IMPORTS)
+#if (defined(CRYPTOPP_DEBUG) || defined(CRYPTOPP_COVERAGE)) && !defined(CRYPTOPP_IMPORTS)
bool TestRounding()
{
std::cout << "\nTesting RoundUpToMultipleOf/RoundDownToMultipleOf...\n\n";
@@ -470,7 +470,7 @@ bool TestRounding() }
#endif
-#if defined(CRYPTOPP_DEBUG) && !defined(CRYPTOPP_IMPORTS)
+#if (defined(CRYPTOPP_DEBUG) || defined(CRYPTOPP_COVERAGE)) && !defined(CRYPTOPP_IMPORTS)
struct ASN1_TestTuple
{
int disposition;
@@ -721,7 +721,7 @@ bool TestASN1Parse() }
#endif
-#if defined(CRYPTOPP_DEBUG) && !defined(CRYPTOPP_IMPORTS)
+#if (defined(CRYPTOPP_DEBUG) || defined(CRYPTOPP_COVERAGE)) && !defined(CRYPTOPP_IMPORTS)
bool TestSecBlock()
{
std::cout << "\nTesting SecBlock...\n\n";
@@ -1685,7 +1685,7 @@ bool TestSecBlock() }
#endif
-#if defined(CRYPTOPP_DEBUG) && !defined(CRYPTOPP_IMPORTS)
+#if (defined(CRYPTOPP_DEBUG) || defined(CRYPTOPP_COVERAGE)) && !defined(CRYPTOPP_IMPORTS)
bool TestHuffmanCodes()
{
std::cout << "\nTesting Huffman codes...\n\n";
@@ -1723,7 +1723,7 @@ bool TestHuffmanCodes() }
#endif
-#if defined(CRYPTOPP_DEBUG) && !defined(CRYPTOPP_IMPORTS)
+#if (defined(CRYPTOPP_DEBUG) || defined(CRYPTOPP_COVERAGE)) && !defined(CRYPTOPP_IMPORTS)
bool TestIntegerBitops()
{
std::cout << "\nTesting Integer bitops...\n\n";
|