tests: Add test for RSA PKI running on threads

Run the tests from torture_pki_rsa.c on threads.  Tests requiring files
to be removed are not tested, since they would require the access to
the files to be synchronized.

Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Anderson Toshiyuki Sasaki
2018-07-04 17:26:39 +02:00
committed by Andreas Schneider
parent dd3d867452
commit 708f127788
4 changed files with 746 additions and 2 deletions

View File

@@ -41,6 +41,8 @@ if (UNIX AND NOT WIN32)
target_link_libraries(torture_threads_buffer Threads::Threads)
add_cmocka_test(torture_threads_crypto torture_threads_crypto.c ${TORTURE_LIBRARY})
target_link_libraries(torture_threads_crypto Threads::Threads)
add_cmocka_test(torture_threads_pki_rsa torture_threads_pki_rsa.c ${TORTURE_LIBRARY})
target_link_libraries(torture_threads_pki_rsa Threads::Threads)
# Not working correctly
#if (WITH_SERVER)