summaryrefslogtreecommitdiff
path: root/openssl/tests
diff options
context:
space:
mode:
Diffstat (limited to 'openssl/tests')
-rw-r--r--openssl/tests/encryption.testscript9
-rw-r--r--openssl/tests/version.testscript6
2 files changed, 12 insertions, 3 deletions
diff --git a/openssl/tests/encryption.testscript b/openssl/tests/encryption.testscript
new file mode 100644
index 0000000..6326858
--- /dev/null
+++ b/openssl/tests/encryption.testscript
@@ -0,0 +1,9 @@
+# file : tests/encryption.testscript
+# copyright : Copyright (c) 2016-2019 Code Synthesis Ltd
+# license : OpenSSL and SSLeay Licenses; see accompanying LICENSE file
+
+enc = $* aes-256-cbc -e -salt -base64 -md sha256 -pass pass:123 -pbkdf2
+dec = $* aes-256-cbc -d -salt -base64 -md sha256 -pass pass:123 -pbkdf2
+
+$enc <'ABC' | $dec >'ABC' : no-zlib
+$enc -z <'ABC' | $dec -z >'ABC' : zlib
diff --git a/openssl/tests/version.testscript b/openssl/tests/version.testscript
index 1759e5f..325ba9b 100644
--- a/openssl/tests/version.testscript
+++ b/openssl/tests/version.testscript
@@ -7,8 +7,8 @@ $* version -a >>~"%EOO%"
%built on: .+ UTC%
%platform: $c.target.class-$c.target.cpu%
%options: .+%
- %compiler: $c.class .*-DLIBCRYPTO_BUILD.*%
- %OPENSSLDIR: ".+"%
- %ENGINESDIR: ".+"%
+ %compiler: $c.class .*-DLIBCRYPTO_BUILD -DZLIB .*%
+ OPENSSLDIR: N/A
+ ENGINESDIR: N/A
%Seeding source: .+%
EOO