aboutsummaryrefslogtreecommitdiff
path: root/tests/testenc.sh
diff options
context:
space:
mode:
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