forked from wolfSSL/wolfssl
move client-test.sh to scripts/google.test
This commit is contained in:
@@ -6,7 +6,6 @@ pre-commit.sh - our pre commit hook, saves current state before running commit
|
|||||||
commit-tests.sh - our commit tests, must pass before a commit is accepted, use
|
commit-tests.sh - our commit tests, must pass before a commit is accepted, use
|
||||||
-n (--no-verify) to disable
|
-n (--no-verify) to disable
|
||||||
|
|
||||||
client-test.sh - example client test against google
|
|
||||||
|
|
||||||
fips-check.sh - checks if current wolfSSL version works against FIPS wolfCrypt
|
fips-check.sh - checks if current wolfSSL version works against FIPS wolfCrypt
|
||||||
comment out last line to leave working directory
|
comment out last line to leave working directory
|
||||||
@@ -23,6 +22,7 @@ certs/
|
|||||||
|
|
||||||
scripts/
|
scripts/
|
||||||
external.test - example client test against our website, part of tests
|
external.test - example client test against our website, part of tests
|
||||||
|
google.test - example client test against google, part of tests
|
||||||
resume.test - example sessoin resume test, part of tests
|
resume.test - example sessoin resume test, part of tests
|
||||||
sniffer-testsuite.test - runs snifftest on a pcap of testsuite, part of tests
|
sniffer-testsuite.test - runs snifftest on a pcap of testsuite, part of tests
|
||||||
in sniffer mode
|
in sniffer mode
|
||||||
|
@@ -1,16 +1,18 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# client-test.sh
|
# google.test
|
||||||
|
|
||||||
|
server=www.google.com
|
||||||
|
|
||||||
[ ! -x ./examples/client/client ] && echo -e "\n\nClient doesn't exist" && exit 1
|
[ ! -x ./examples/client/client ] && echo -e "\n\nClient doesn't exist" && exit 1
|
||||||
|
|
||||||
# is our desired server there?
|
# is our desired server there?
|
||||||
ping -c 2 -i 0.2 www.google.com
|
ping -c 2 -i 0.2 $server
|
||||||
RESULT=$?
|
RESULT=$?
|
||||||
[ $RESULT -ne 0 ] && echo -e "\n\nCouldn't find server, skipping" && exit 0
|
[ $RESULT -ne 0 ] && echo -e "\n\nCouldn't find $server, skipping" && exit 0
|
||||||
|
|
||||||
# client test against the server
|
# client test against the server
|
||||||
./examples/client/client -h www.google.com -p 443 -g -d
|
./examples/client/client -X -C -h $server -p 443 -g -d
|
||||||
RESULT=$?
|
RESULT=$?
|
||||||
[ $RESULT -ne 0 ] && echo -e "\n\nClient connection failed" && exit 1
|
[ $RESULT -ne 0 ] && echo -e "\n\nClient connection failed" && exit 1
|
||||||
|
|
@@ -12,6 +12,7 @@ if BUILD_EXAMPLES
|
|||||||
dist_noinst_SCRIPTS+= scripts/resume.test
|
dist_noinst_SCRIPTS+= scripts/resume.test
|
||||||
if !BUILD_IPV6
|
if !BUILD_IPV6
|
||||||
dist_noinst_SCRIPTS+= scripts/external.test
|
dist_noinst_SCRIPTS+= scripts/external.test
|
||||||
|
dist_noinst_SCRIPTS+= scripts/google.test
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user