Skip to content

Commit b3f0f27

Browse files
committed
Exclude NIST CAVS test harness for now
1 parent f6b6e63 commit b3f0f27

File tree

1 file changed

+24
-20
lines changed

1 file changed

+24
-20
lines changed

test/test_nist_cavs_detail.hpp

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
#include <vector>
2828
#include <span>
2929

30+
// LCOV_EXCL_START
31+
3032
namespace nist { namespace cavs {
3133

3234
namespace detail {
@@ -85,7 +87,7 @@ struct test_object_hash
8587
// this hash test object.
8688

8789
explicit test_object_hash(const std::string& str_result)
88-
: my_result // LCOV_EXCL_LINE
90+
: my_result
8991
{
9092
[&str_result]()
9193
{
@@ -670,7 +672,7 @@ auto where_file(const std::string& test_vectors_filename, test_type test) -> std
670672

671673
const bool file_01_is_open { in_01.is_open() };
672674

673-
// LCOV_EXCL_START
675+
674676
if(file_01_is_open)
675677
{
676678
in_01.close();
@@ -748,7 +750,7 @@ auto where_file(const std::string& test_vectors_filename, test_type test) -> std
748750
}
749751
}
750752
}
751-
// LCOV_EXCL_STOP
753+
752754

753755
return test_vectors_filename_relative;
754756
}
@@ -1769,7 +1771,7 @@ auto test_vectors_variable(const test_vector_container_type& test_vectors, const
17691771
{
17701772
if (!BOOST_TEST_EQ(test_vector.my_result[j], bits[j]))
17711773
{
1772-
false_counter++; // LCOV_EXCL_LINE
1774+
false_counter++;
17731775
}
17741776
}
17751777

@@ -1798,7 +1800,7 @@ auto test_vectors_variable(const test_vector_container_type& test_vectors, const
17981800
{
17991801
if (!BOOST_TEST_EQ(test_vector.my_result[j], bits[j]))
18001802
{
1801-
false_counter++; // LCOV_EXCL_LINE
1803+
false_counter++;
18021804
}
18031805
}
18041806

@@ -2009,7 +2011,7 @@ auto test_vectors_monte_xof(const nist::cavs::test_vector_container_type& test_v
20092011
for (auto& val : MDi)
20102012
{
20112013
// LCOV skips the following line even though MDi is not empty
2012-
val = static_cast<std::uint8_t>(0); // LCOV_EXCL_LINE
2014+
val = static_cast<std::uint8_t>(0);
20132015
}
20142016

20152017
const auto output_length = this_hash.get_digest(MDi);
@@ -2119,14 +2121,14 @@ auto test_vectors_drbg_no_reseed(const nist::cavs::test_vector_container_drbg_no
21192121
{
21202122
if (return_bits[i] != test_vector.result[i])
21212123
{
2122-
// LCOV_EXCL_START
2124+
21232125
result_is_ok = false;
21242126
std::cerr << "Error with vector: " << count
21252127
<< "\nBeginning of entropy: " << std::to_string(test_vector.initial_entropy[0]) << ", "
21262128
<< std::to_string(test_vector.initial_entropy[1]) << ", "
21272129
<< std::to_string(test_vector.initial_entropy[2]) << std::endl;
21282130
break;
2129-
// LCOV_EXCL_STOP
2131+
21302132
}
21312133
}
21322134
++count;
@@ -2166,14 +2168,14 @@ auto test_vectors_drbg_pr_false(const nist::cavs::test_vector_container_drbg_pr_
21662168
{
21672169
if (return_bits[i] != test_vector.result[i])
21682170
{
2169-
// LCOV_EXCL_START
2171+
21702172
result_is_ok = false;
21712173
std::cerr << "Error with vector: " << count
21722174
<< "\nBeginning of entropy: " << std::to_string(test_vector.initial_entropy[0]) << ", "
21732175
<< std::to_string(test_vector.initial_entropy[1]) << ", "
21742176
<< std::to_string(test_vector.initial_entropy[2]) << std::endl;
21752177
break;
2176-
// LCOV_EXCL_STOP
2178+
21772179
}
21782180
}
21792181
++count;
@@ -2212,14 +2214,14 @@ auto test_vectors_drbg_pr_true(const nist::cavs::test_vector_container_drbg_pr_t
22122214
{
22132215
if (return_bits[i] != test_vector.result[i])
22142216
{
2215-
// LCOV_EXCL_START
2217+
22162218
result_is_ok = false;
22172219
std::cerr << "Error with vector: " << count
22182220
<< "\nBeginning of entropy: " << std::to_string(test_vector.initial_entropy[0]) << ", "
22192221
<< std::to_string(test_vector.initial_entropy[1]) << ", "
22202222
<< std::to_string(test_vector.initial_entropy[2]) << std::endl;
22212223
break;
2222-
// LCOV_EXCL_STOP
2224+
22232225
}
22242226
}
22252227
++count;
@@ -2260,10 +2262,10 @@ auto test_vectors_aes_ctr(const nist::cavs::test_vector_container_aes &test_vect
22602262

22612263
if (plaintext != test_vector.plaintext)
22622264
{
2263-
// LCOV_EXCL_START
2265+
22642266
result_is_ok = false;
22652267
std::cerr << "Error with vector: " << count << std::endl;
2266-
// LCOV_EXCL_STOP
2268+
22672269
}
22682270

22692271
++count;
@@ -2327,10 +2329,10 @@ auto test_vectors_aes_kat(const nist::cavs::test_vector_container_aes& test_vect
23272329

23282330
if (plaintext != ciphertext)
23292331
{
2330-
// LCOV_EXCL_START
2332+
23312333
result_is_ok = false;
23322334
std::cerr << "Error with vector: " << count << std::endl;
2333-
// LCOV_EXCL_STOP
2335+
23342336
}
23352337

23362338
++count;
@@ -2393,10 +2395,10 @@ auto test_vectors_aes_mmt(const nist::cavs::test_vector_container_aes& test_vect
23932395

23942396
if (plaintext != ciphertext)
23952397
{
2396-
// LCOV_EXCL_START
2398+
23972399
result_is_ok = false;
23982400
std::cerr << "Error with vector: " << count << std::endl;
2399-
// LCOV_EXCL_STOP
2401+
24002402
}
24012403

24022404
++count;
@@ -2521,10 +2523,10 @@ auto test_vectors_aes_mct(const nist::cavs::test_vector_container_aes& test_vect
25212523

25222524
if (plaintext != ciphertext)
25232525
{
2524-
// LCOV_EXCL_START
2526+
25252527
result_is_ok = false;
25262528
std::cerr << "Error with vector: " << count << std::endl;
2527-
// LCOV_EXCL_STOP
2529+
25282530
}
25292531

25302532
++count;
@@ -2540,4 +2542,6 @@ auto test_vectors_aes_mct(const nist::cavs::test_vector_container_aes& test_vect
25402542
} // namespace cavs
25412543
} // namespace nist
25422544

2545+
// LCOV_EXCL_STOP
2546+
25432547
#endif // BOOST_CRYPT_TEST_NIST_CAVS_DETAIL_HPP

0 commit comments

Comments
 (0)