diff options
| author | bluhm <> | 2018-11-11 00:15:04 +0000 |
|---|---|---|
| committer | bluhm <> | 2018-11-11 00:15:04 +0000 |
| commit | bb7bf59b27f2841b551d2aac13e012204e220296 (patch) | |
| tree | 2e2f3822b8e0eb71ba45a900f399e61fb573f4b2 /src/regress/lib/libssl/interop/session | |
| parent | b6050265797720778c82d37cfa77e5524da4f74a (diff) | |
| download | openbsd-bb7bf59b27f2841b551d2aac13e012204e220296.tar.gz openbsd-bb7bf59b27f2841b551d2aac13e012204e220296.tar.bz2 openbsd-bb7bf59b27f2841b551d2aac13e012204e220296.zip | |
Reorganize libssl interop tests. Move netcat tests into separate
directory. Keep all log files for easier debugging. Name regress
target names consistently.
Diffstat (limited to 'src/regress/lib/libssl/interop/session')
| -rw-r--r-- | src/regress/lib/libssl/interop/session/Makefile | 45 |
1 files changed, 26 insertions, 19 deletions
diff --git a/src/regress/lib/libssl/interop/session/Makefile b/src/regress/lib/libssl/interop/session/Makefile index a555f133fb..072fa1b93c 100644 --- a/src/regress/lib/libssl/interop/session/Makefile +++ b/src/regress/lib/libssl/interop/session/Makefile | |||
| @@ -1,35 +1,42 @@ | |||
| 1 | # $OpenBSD: Makefile,v 1.1 2018/11/10 08:33:45 bluhm Exp $ | 1 | # $OpenBSD: Makefile,v 1.2 2018/11/11 00:15:04 bluhm Exp $ |
| 2 | 2 | ||
| 3 | run-client-openssl11-reuse-server-openssl11-reuse: | 3 | LIBRARIES = libressl |
| 4 | .if exists(/usr/local/bin/eopenssl) | ||
| 5 | LIBRARIES += openssl | ||
| 6 | .endif | ||
| 7 | .if exists(/usr/local/bin/eopenssl11) | ||
| 8 | LIBRARIES += openssl11 | ||
| 9 | .endif | ||
| 10 | |||
| 11 | run-session-client-openssl11-server-openssl11: | ||
| 4 | @echo '\n======== $@ ========' | 12 | @echo '\n======== $@ ========' |
| 5 | # TLS 1.3 needs some extra setup for session reuse | 13 | # TLS 1.3 needs some extra setup for session reuse |
| 6 | @echo DISABLED | 14 | @echo DISABLED |
| 7 | 15 | ||
| 8 | CLEANFILES += *.out | 16 | .for clib in ${LIBRARIES} |
| 9 | 17 | .for slib in ${LIBRARIES} | |
| 10 | .for clib in libressl openssl openssl11 | ||
| 11 | .for slib in libressl openssl openssl11 | ||
| 12 | 18 | ||
| 13 | REGRESS_TARGETS += run-client-${clib}-reuse-server-${slib}-reuse | 19 | REGRESS_TARGETS += run-session-client-${clib}-server-${slib} |
| 14 | 20 | ||
| 15 | run-client-${clib}-reuse-server-${slib}-reuse: 127.0.0.1.crt | 21 | run-session-client-${clib}-server-${slib}: \ |
| 22 | 127.0.0.1.crt ../${clib}/client ../${slib}/server | ||
| 16 | @echo '\n======== $@ ========' | 23 | @echo '\n======== $@ ========' |
| 17 | LD_LIBRARY_PATH=/usr/local/lib/e${slib} \ | 24 | LD_LIBRARY_PATH=/usr/local/lib/e${slib} \ |
| 18 | ../${slib}/server >server-${slib}-reuse.out \ | 25 | ../${slib}/server >${@:S/^run/server/}.out \ |
| 19 | -ss \ | 26 | -ss \ |
| 20 | 127.0.0.1 0 | 27 | 127.0.0.1 0 |
| 21 | LD_LIBRARY_PATH=/usr/local/lib/e${clib} \ | 28 | LD_LIBRARY_PATH=/usr/local/lib/e${clib} \ |
| 22 | ../${clib}/client >client-${clib}-reuse.out \ | 29 | ../${clib}/client >${@:S/^run/client/}.out \ |
| 23 | -ss \ | 30 | -ss \ |
| 24 | `sed -n 's/listen sock: //p' server-${slib}-reuse.out` | 31 | `sed -n 's/listen sock: //p' ${@:S/^run/server/}.out` |
| 25 | grep '^success$$' server-${slib}-reuse.out | 32 | grep '^success$$' ${@:S/^run/server/}.out |
| 26 | grep '^success$$' client-${clib}-reuse.out | 33 | grep '^success$$' ${@:S/^run/client/}.out |
| 27 | grep '^session 2: new$$' server-${slib}-reuse.out | 34 | grep '^session 2: new$$' ${@:S/^run/server/}.out |
| 28 | grep '^session 2: new$$' client-${clib}-reuse.out | 35 | grep '^session 2: new$$' ${@:S/^run/client/}.out |
| 29 | grep '^session 1: reuse$$' server-${slib}-reuse.out | 36 | grep '^session 1: reuse$$' ${@:S/^run/server/}.out |
| 30 | grep '^session 1: reuse$$' client-${clib}-reuse.out | 37 | grep '^session 1: reuse$$' ${@:S/^run/client/}.out |
| 31 | grep '^session 0: reuse$$' server-${slib}-reuse.out | 38 | grep '^session 0: reuse$$' ${@:S/^run/server/}.out |
| 32 | grep '^session 0: reuse$$' client-${clib}-reuse.out | 39 | grep '^session 0: reuse$$' ${@:S/^run/client/}.out |
| 33 | 40 | ||
| 34 | .endfor | 41 | .endfor |
| 35 | .endfor | 42 | .endfor |
