|
|
@ -12,15 +12,13 @@ function cleanup() { |
|
|
|
trap cleanup TERM EXIT |
|
|
|
trap cleanup TERM EXIT |
|
|
|
|
|
|
|
|
|
|
|
function test_diff() { |
|
|
|
function test_diff() { |
|
|
|
DIFF=$(diff \ |
|
|
|
if ! diff -q \ |
|
|
|
<(jq -S 'del(."rust-websocket" | .. | .duration?)' 'autobahn/client-results.json') \ |
|
|
|
<(jq -S 'del(."Tungstenite" | .. | .duration?)' 'autobahn/client-results.json') \ |
|
|
|
<(jq -S 'del(."rust-websocket" | .. | .duration?)' 'autobahn/client/index.json') ) |
|
|
|
<(jq -S 'del(."Tungstenite" | .. | .duration?)' 'autobahn/client/index.json') |
|
|
|
|
|
|
|
then |
|
|
|
if [[ $DIFF ]]; then |
|
|
|
|
|
|
|
echo 'Difference in results, either this is a regression or' \ |
|
|
|
echo 'Difference in results, either this is a regression or' \ |
|
|
|
'one should update autobahn/client-results.json with the new results.' \ |
|
|
|
'one should update autobahn/client-results.json with the new results.' \ |
|
|
|
'The results are:' |
|
|
|
'The results are:' |
|
|
|
echo $DIFF |
|
|
|
|
|
|
|
exit 64 |
|
|
|
exit 64 |
|
|
|
fi |
|
|
|
fi |
|
|
|
} |
|
|
|
} |
|
|
@ -29,6 +27,6 @@ cargo build --release --example autobahn-client |
|
|
|
|
|
|
|
|
|
|
|
wstest -m fuzzingserver -s 'autobahn/fuzzingserver.json' & FUZZINGSERVER_PID=$! |
|
|
|
wstest -m fuzzingserver -s 'autobahn/fuzzingserver.json' & FUZZINGSERVER_PID=$! |
|
|
|
sleep 3 |
|
|
|
sleep 3 |
|
|
|
echo "Server PID: ${WSSERVER_PID}" |
|
|
|
echo "Server PID: ${FUZZINGSERVER_PID}" |
|
|
|
cargo run --release --example autobahn-client |
|
|
|
cargo run --release --example autobahn-client |
|
|
|
test_diff |
|
|
|
test_diff |
|
|
|