summaryrefslogtreecommitdiff
path: root/tests/interop
diff options
context:
space:
mode:
authorMartin Thomson <martin.thomson@gmail.com>2017-07-07 09:25:09 +1000
committerMartin Thomson <martin.thomson@gmail.com>2017-07-07 09:25:09 +1000
commit487c39631e2aec180ab76971f117747723b696d3 (patch)
tree45bc1989a9282ca4b811713fafba4f1fa695704b /tests/interop
parent0a1f6b2c03d27c5d123ae84a673e884c593255c9 (diff)
downloadnss-hg-487c39631e2aec180ab76971f117747723b696d3.tar.gz
Bug 1378639 - Handle absolute paths for interop tests, r=ekr
Diffstat (limited to 'tests/interop')
-rwxr-xr-xtests/interop/interop.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/interop/interop.sh b/tests/interop/interop.sh
index 12cefd044..59f0cb481 100755
--- a/tests/interop/interop.sh
+++ b/tests/interop/interop.sh
@@ -26,6 +26,7 @@ interop_init()
if [ ! -d "$INTEROP" ]; then
git clone -q https://github.com/mozilla/tls-interop "$INTEROP"
fi
+ INTEROP=$(cd "$INTEROP";pwd -P)
# We use the BoringSSL keyfiles
BORING=${BORING:=boringssl}
@@ -33,6 +34,7 @@ interop_init()
git clone -q https://boringssl.googlesource.com/boringssl "$BORING"
git -C "$BORING" checkout -q ea80f9d5df4c302de391e999395e1c87f9c786b3
fi
+ BORING=$(cd "$BORING";pwd -P)
SCRIPTNAME="interop.sh"
html_head "interop test"
@@ -53,7 +55,7 @@ interop_run()
server=$3
(cd "$INTEROP";
- cargo run -- --client ${client} --server ${server} --rootdir ../${BORING}/ssl/test/runner/ --test-cases cases.json) 2>interop-${test_name}.errors | tee interop-${test_name}.log
+ cargo run -- --client "$client" --server "$server" --rootdir "$BORING"/ssl/test/runner/ --test-cases cases.json) 2>interop-${test_name}.errors | tee interop-${test_name}.log
html_msg "${PIPESTATUS[0]}" 0 "Interop" "Run successfully"
grep -i 'FAILED\|Assertion failure' interop-${test_name}.errors
html_msg $? 1 "Interop" "No failures"
@@ -62,7 +64,7 @@ interop_run()
cd "$(dirname "$0")"
SOURCE_DIR="$PWD"/../..
interop_init
-NSS_SHIM="${BINDIR}"/nss_bogo_shim
-BORING_SHIM="../${BORING}"/build/ssl/test/bssl_shim
+NSS_SHIM="$BINDIR"/nss_bogo_shim
+BORING_SHIM="$BORING"/build/ssl/test/bssl_shim
interop_run "nss_nss" ${NSS_SHIM} ${NSS_SHIM}
interop_cleanup