diff options
Diffstat (limited to 'openssl/test')
| -rwxr-xr-x | openssl/test/test.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/openssl/test/test.sh b/openssl/test/test.sh new file mode 100755 index 00000000..c61511fd --- /dev/null +++ b/openssl/test/test.sh @@ -0,0 +1,18 @@ +#!/bin/bash +if test "$TRAVIS_OS_NAME" == "osx"; then + return +fi + +trap "trap - SIGTERM && kill -- -$$" SIGINT SIGTERM EXIT + +openssl s_server -accept 15418 -www -cert openssl/test/cert.pem -key openssl/test/key.pem >/dev/null 2>&1 & + +for port in `seq 15411 15430`; do + echo hello | openssl s_server -accept $port -dtls1 -cert openssl/test/cert.pem \ + -key openssl/test/key.pem 2>&1 >/dev/null & +done + +# the server for the test ssl::tests::test_write_dtlsv1 must wait to receive +# data from the client +yes | openssl s_server -accept 15410 -dtls1 -cert openssl/test/cert.pem \ + -key openssl/test/key.pem 2>&1 >/dev/null |