aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis CI User <travis@example.org>2020-04-23 14:34:41 +0000
committerTravis CI User <travis@example.org>2020-04-23 14:34:41 +0000
commit43dd43e3183178e71abd3319290c566cb4dd80a9 (patch)
tree822bbaeff18c856c3996caa38ef066fc97fb0be8
parentc1f46680f77d077bfc7abebea8b289e9b8bac043 (diff)
downloadnimterop-multifile-2.tar.gz
nimterop-multifile-2.zip
Fix rsa testmultifile-2
-rw-r--r--nimterop.nimble5
-rw-r--r--tests/rsa.nim8
2 files changed, 9 insertions, 4 deletions
diff --git a/nimterop.nimble b/nimterop.nimble
index 9cb79b1..a6fba1e 100644
--- a/nimterop.nimble
+++ b/nimterop.nimble
@@ -51,8 +51,9 @@ task test, "Test":
execTest "tests/tpcre.nim"
execTest "tests/tpcre.nim", "-d:FLAGS=\"-f:ast2\""
- execTest "tests/rsa.nim"
- execTest "tests/rsa.nim", "-d:FLAGS=\"-H\""
+ when defined(Linux):
+ execTest "tests/rsa.nim"
+ execTest "tests/rsa.nim", "-d:FLAGS=\"-H\""
# Platform specific tests
when defined(Windows):
diff --git a/tests/rsa.nim b/tests/rsa.nim
index 638c490..e7bde89 100644
--- a/tests/rsa.nim
+++ b/tests/rsa.nim
@@ -10,6 +10,9 @@ const
basePath = cryptoPath.parentDir
FLAGS {.strdefine.} = ""
+static:
+ cSkipSymbol(@["ERR_load_crypto_strings", "OpenSSLDie"])
+
cPlugin:
import strutils
@@ -20,10 +23,11 @@ cPlugin:
"AES_ENCRYPT", "AES_DECRYPT",
"BIO_CTRL_PENDING", "BIO_CTRL_WPENDING",
"BN_F_BNRAND", "BN_F_BNRAND_RANGE",
- "CRYPTO_THREADID",
+ "CRYPTO_LOCK", "CRYPTO_NUM_LOCKS", "CRYPTO_THREADID",
"EVP_CIPHER",
"OPENSSL_VERSION",
"PKCS7_ENCRYPT", "PKCS7_STREAM",
+ "SSLEAY_VERSION",
"SSL_TXT_ADH", "SSL_TXT_AECDH", "SSL_TXT_kECDHE"
]:
sym.name = "C_" & sym.name
@@ -39,4 +43,4 @@ cImport(@[
{.passL: cryptoLPath.}
OpensslInit()
-echo $OPENSSL_VERSION_TEXT \ No newline at end of file
+echo $OPENSSL_VERSION_TEXT