diff options
Diffstat (limited to 'tests/testenc.sh')
-rwxr-xr-x | tests/testenc.sh | 19 |
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 | ||
4 | test=p | 4 | test=p |
5 | cmd=../apps/openssl/openssl | 5 | if [ -d ../apps/openssl ]; then |
6 | if [ -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 | ||
10 | else | ||
11 | cmd=../apps/openssl | ||
12 | if [ -e ../apps/openssl.exe ]; then | ||
13 | cmd=../apps/openssl.exe | ||
14 | fi | ||
15 | fi | ||
16 | |||
17 | if [ -z $srcdir ]; then | ||
18 | srcdir=. | ||
8 | fi | 19 | fi |
9 | 20 | ||
10 | cat openssl.cnf >$test; | 21 | cat $srcdir/openssl.cnf >$test; |
11 | 22 | ||
12 | echo cat | 23 | echo cat |
13 | $cmd enc < $test > $test.cipher | 24 | $cmd enc < $test > $test.cipher |