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