diff options
author | beck <> | 1999-01-05 17:53:09 +0000 |
---|---|---|
committer | beck <> | 1999-01-05 17:53:09 +0000 |
commit | 13215bc3b7babd9ef92e2e94f0ed0104529722b2 (patch) | |
tree | a923c3d24cbf0041955f1773566af229d4d3a77b /src/regress/lib | |
parent | 2ab850a424d07c3f877cbfc628f24480be0e7bac (diff) | |
download | openbsd-13215bc3b7babd9ef92e2e94f0ed0104529722b2.tar.gz openbsd-13215bc3b7babd9ef92e2e94f0ed0104529722b2.tar.bz2 openbsd-13215bc3b7babd9ef92e2e94f0ed0104529722b2.zip |
Fix up for make regress. Should handle objdir now.
Diffstat (limited to 'src/regress/lib')
-rw-r--r-- | src/regress/lib/libssl/Makefile | 6 | ||||
-rw-r--r-- | src/regress/lib/libssl/testdsa.sh | 4 | ||||
-rw-r--r-- | src/regress/lib/libssl/testenc.sh | 6 | ||||
-rw-r--r-- | src/regress/lib/libssl/testrsa.sh | 3 |
4 files changed, 12 insertions, 7 deletions
diff --git a/src/regress/lib/libssl/Makefile b/src/regress/lib/libssl/Makefile index 5eb5fc6455..3f7d48fd2e 100644 --- a/src/regress/lib/libssl/Makefile +++ b/src/regress/lib/libssl/Makefile | |||
@@ -4,8 +4,8 @@ CLEANFILES+= testdsa.key testdsa.pem rsakey.pem rsacert.pem dsa512.pem | |||
4 | install: | 4 | install: |
5 | 5 | ||
6 | regress: | 6 | regress: |
7 | sh ${.CURDIR}/testenc.sh | 7 | sh ${.CURDIR}/testenc.sh ${.OBJDIR} ${.CURDIR} |
8 | sh ${.CURDIR}/testdsa.sh | 8 | sh ${.CURDIR}/testdsa.sh ${.OBJDIR} ${.CURDIR} |
9 | # sh ${.CURDIR}/testrsa.sh | 9 | # sh ${.CURDIR}/testrsa.sh ${.OBJDIR} ${.CURDIR} |
10 | 10 | ||
11 | .include <bsd.prog.mk> | 11 | .include <bsd.prog.mk> |
diff --git a/src/regress/lib/libssl/testdsa.sh b/src/regress/lib/libssl/testdsa.sh index 4c9668c906..dc5d7b97b5 100644 --- a/src/regress/lib/libssl/testdsa.sh +++ b/src/regress/lib/libssl/testdsa.sh | |||
@@ -2,6 +2,8 @@ | |||
2 | 2 | ||
3 | #Test DSA certificate generation of ssleay | 3 | #Test DSA certificate generation of ssleay |
4 | 4 | ||
5 | cd $1 | ||
6 | |||
5 | # Generate DSA paramter set | 7 | # Generate DSA paramter set |
6 | ssleay dsaparam 512 -out dsa512.pem | 8 | ssleay dsaparam 512 -out dsa512.pem |
7 | if [ $? != 0 ]; then | 9 | if [ $? != 0 ]; then |
@@ -10,7 +12,7 @@ fi | |||
10 | 12 | ||
11 | 13 | ||
12 | # Denerate a DSA certificate | 14 | # Denerate a DSA certificate |
13 | ssleay req -config ssleay.cnf -x509 -newkey dsa:dsa512.pem -out testdsa.pem -keyout testdsa.key | 15 | ssleay req -config $2/ssleay.cnf -x509 -newkey dsa:dsa512.pem -out testdsa.pem -keyout testdsa.key |
14 | if [ $? != 0 ]; then | 16 | if [ $? != 0 ]; then |
15 | exit 1; | 17 | exit 1; |
16 | fi | 18 | fi |
diff --git a/src/regress/lib/libssl/testenc.sh b/src/regress/lib/libssl/testenc.sh index ab3278f27e..85997bfbe5 100644 --- a/src/regress/lib/libssl/testenc.sh +++ b/src/regress/lib/libssl/testenc.sh | |||
@@ -1,9 +1,11 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | 2 | ||
3 | testsrc=./ssleay.cnf | 3 | testsrc=$2/ssleay.cnf |
4 | test=./p | 4 | test=$1/p |
5 | cmd=/usr/sbin/ssleay | 5 | cmd=/usr/sbin/ssleay |
6 | 6 | ||
7 | cd $1 | ||
8 | |||
7 | cat $testsrc >$test; | 9 | cat $testsrc >$test; |
8 | 10 | ||
9 | echo cat | 11 | echo cat |
diff --git a/src/regress/lib/libssl/testrsa.sh b/src/regress/lib/libssl/testrsa.sh index 79c578834a..3f4c328acd 100644 --- a/src/regress/lib/libssl/testrsa.sh +++ b/src/regress/lib/libssl/testrsa.sh | |||
@@ -11,6 +11,7 @@ echo This will *not* work with what\'s in the tree, rsa is not in that. | |||
11 | echo | 11 | echo |
12 | sleep 3 | 12 | sleep 3 |
13 | 13 | ||
14 | cd $1 | ||
14 | 15 | ||
15 | # Generate RSA private key | 16 | # Generate RSA private key |
16 | ssleay genrsa -out rsakey.pem | 17 | ssleay genrsa -out rsakey.pem |
@@ -20,7 +21,7 @@ fi | |||
20 | 21 | ||
21 | 22 | ||
22 | # Denerate an RSA certificate | 23 | # Denerate an RSA certificate |
23 | ssleay req -config ssleay.cnf -key rsakey.pem -new -x509 -days 365 -out rsacert.pem | 24 | ssleay req -config $2/ssleay.cnf -key rsakey.pem -new -x509 -days 365 -out rsacert.pem |
24 | if [ $? != 0 ]; then | 25 | if [ $? != 0 ]; then |
25 | exit 1; | 26 | exit 1; |
26 | fi | 27 | fi |