diff options
author | kinichiro <kinichiro.inoguchi@gmail.com> | 2016-04-05 10:02:35 +0900 |
---|---|---|
committer | kinichiro <kinichiro.inoguchi@gmail.com> | 2016-04-05 10:02:35 +0900 |
commit | cf45f2bdfd82ed77f79f4b33e024fc7f0d5ea106 (patch) | |
tree | 6575d049b78935abd41fa84140efb8a2ae7ca36d /tests/testenc.sh | |
parent | 8131b377bffdacb8789c78ef31160b3bf4ee054b (diff) | |
download | portable-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-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 |