Skip to content

Commit

Permalink
Attempt to fix Windows CI failures.
Browse files Browse the repository at this point in the history
  • Loading branch information
ni4 committed Nov 8, 2023
1 parent aa11f73 commit 9d4c9fc
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 10 deletions.
16 changes: 9 additions & 7 deletions src/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -218,12 +218,12 @@ if (NOT CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_VERSION VERS
set_target_properties(rnp_tests PROPERTIES CXX_VISIBILITY_PRESET hidden)
endif()

gtest_discover_tests(rnp_tests
PROPERTIES
FIXTURES_REQUIRED testdata
TIMEOUT 3000
ENVIRONMENT "RNP_TEST_DATA=${CMAKE_CURRENT_SOURCE_DIR}/data"
)
#gtest_discover_tests(rnp_tests
# PROPERTIES
# FIXTURES_REQUIRED testdata
# TIMEOUT 3000
# ENVIRONMENT "RNP_TEST_DATA=${CMAKE_CURRENT_SOURCE_DIR}/data"
#)

# cli_tests
# Note that we do this call early because Google Test will also do
Expand Down Expand Up @@ -265,5 +265,7 @@ string(REGEX REPLACE ";" "\\\\;" suitelist "${suitelist}")
string(REGEX REPLACE "\n" ";" suitelist "${suitelist}")
# create a CTest test for each suite
foreach(suite IN LISTS suitelist)
add_cli_test("${suite}")
#add_cli_test("${suite}")
endforeach()

add_cli_test("Encryption.test_sym_encryption__rnp_aead")
13 changes: 10 additions & 3 deletions src/tests/cli_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -4161,9 +4161,16 @@ def test_sym_encryption__rnp_aead(self):
AEAD_B = list_upto([None, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 14, 16], Encryption.RUNS)

# Encrypt and decrypt cleartext using the AEAD
for size, cipher, aead, bits, z in zip(Encryption.SIZES_R, AEAD_C,
AEAD_M, AEAD_B, Encryption.Z_R):
rnp_sym_encryption_rnp_aead(size, cipher, z, [aead, bits], GPG_AEAD)
for _ in range(16):
rnp_sym_encryption_rnp_aead(250000, 'AES192', ['zlib'], [None, None], GPG_AEAD)
rnp_sym_encryption_rnp_aead(250000, 'AES256', ['bzip2'], [None, None], GPG_AEAD)
rnp_sym_encryption_rnp_aead(250000, 'AES', ['bzip2'], [None, None], GPG_AEAD)
for _ in range(32):
rnp_sym_encryption_rnp_aead(250000, 'AES192', ['bzip2'], [None, None], GPG_AEAD)
#for size, cipher, aead, bits, z in zip(Encryption.SIZES_R, AEAD_C,
# AEAD_M, AEAD_B, Encryption.Z_R):
# print('size :' + str(size) + ' cipher: ' + cipher + ' aead: ' + str(aead) + ' bits: ' + str(bits) + ' z: ' + str(z))
# rnp_sym_encryption_rnp_aead(size, cipher, z, [aead, bits], GPG_AEAD)

def test_aead_chunk_edge_cases(self):
if not RNP_AEAD:
Expand Down

0 comments on commit 9d4c9fc

Please sign in to comment.