aboutsummaryrefslogtreecommitdiff
path: root/tests/testenc.sh
diff options
context:
space:
mode:
authorkinichiro <kinichiro.inoguchi@gmail.com>2016-04-05 10:02:35 +0900
committerkinichiro <kinichiro.inoguchi@gmail.com>2016-04-05 10:02:35 +0900
commitcf45f2bdfd82ed77f79f4b33e024fc7f0d5ea106 (patch)
tree6575d049b78935abd41fa84140efb8a2ae7ca36d /tests/testenc.sh
parent8131b377bffdacb8789c78ef31160b3bf4ee054b (diff)
downloadportable-cf45f2bdfd82ed77f79f4b33e024fc7f0d5ea106.tar.gz
portable-cf45f2bdfd82ed77f79f4b33e024fc7f0d5ea106.tar.bz2
portable-cf45f2bdfd82ed77f79f4b33e024fc7f0d5ea106.zip
execute tests that require srcdir environment variable with cmake
- uncomment procedures for aeadtest, evptest, pq_test, ssltest, testdsa and testrsa - add set_tests_properties() for setting environment variable srcdir - tweak openssl path in ssltest.sh, testdsa.sh, testenc.sh and testrsa.sh
Diffstat (limited to 'tests/testenc.sh')
-rwxr-xr-xtests/testenc.sh19
1 files changed, 15 insertions, 4 deletions
diff --git a/tests/testenc.sh b/tests/testenc.sh
index 4e488ad..63bce34 100755
--- a/tests/testenc.sh
+++ b/tests/testenc.sh
@@ -2,12 +2,23 @@
2# $OpenBSD: testenc.sh,v 1.1 2014/08/26 17:50:07 jsing Exp $ 2# $OpenBSD: testenc.sh,v 1.1 2014/08/26 17:50:07 jsing Exp $
3 3
4test=p 4test=p
5cmd=../apps/openssl/openssl 5if [ -d ../apps/openssl ]; then
6if [ -e ../apps/openssl/openssl.exe ]; then 6 cmd=../apps/openssl/openssl
7 cmd=../apps/openssl/openssl.exe 7 if [ -e ../apps/openssl/openssl.exe ]; then
8 cmd=../apps/openssl/openssl.exe
9 fi
10else
11 cmd=../apps/openssl
12 if [ -e ../apps/openssl.exe ]; then
13 cmd=../apps/openssl.exe
14 fi
15fi
16
17if [ -z $srcdir ]; then
18 srcdir=.
8fi 19fi
9 20
10cat openssl.cnf >$test; 21cat $srcdir/openssl.cnf >$test;
11 22
12echo cat 23echo cat
13$cmd enc < $test > $test.cipher 24$cmd enc < $test > $test.cipher