scripts: remove use of realpath and fix external.test

`external.test` could fail quietly for not finding `ping.test` for
out-of-tree builds. Make it look relative to the script location.
This commit is contained in:
Elms
2021-02-10 14:18:32 -08:00
parent 9b6f382b2c
commit d67934f6b8
2 changed files with 5 additions and 2 deletions

View File

@ -2,6 +2,8 @@
# external.test
SCRIPT_DIR="$(dirname "$0")"
server=www.wolfssl.com
ca=./certs/wolfssl-website-ca.pem
@ -32,7 +34,7 @@ if [ $? -ne 0 ]; then
fi
# is our desired server there?
./scripts/ping.test $server 2
${SCRIPT_DIR}/ping.test $server 2
RESULT=$?
[ $RESULT -ne 0 ] && exit 0

View File

@ -2,7 +2,8 @@
#openssl.test
CERT_DIR="$(realpath $(dirname $0)/../certs)"
CERT_DIR="$PWD/$(dirname "$0")/../certs"
if ! test -n "$WOLFSSL_OPENSSL_TEST"; then
echo "WOLFSSL_OPENSSL_TEST NOT set, won't run"
exit 0