{"schema":"libjg2-1",
"vpath":"/git/",
"avatar":"/git/avatar/",
"alang":"",
"gen_ut":1743526730,
"reponame":"libwebsockets",
"desc":"libwebsockets lightweight C networking library",
"owner": { "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" },"url":"https://libwebsockets.org/repo/libwebsockets",
"f":3,
"items": [
{"schema":"libjg2-1",
"cid":"0472ceb3c295f935bfa439bcf847a8b3",
"oid":{ "oid": "98f63c6c8de4a2bf287a37cf12ff34c721b9f359", "alias": []},"blobname": "scripts/autobahn-test-server.sh", "blob": "#!/bin/bash\n#\n# Requires pip install autobahntestsuite\n#\n# you should run this from ./build, after building with\n# cmake .. -DLWS_WITH_MINIMAL_EXAMPLES\u003d1\n#\n# It will use the minimal echo client and server to run\n# autobahn ws tests as both client and server.\n\nset -u\n\nPARALLEL\u003d2\nN\u003d1\nOS\u003d`uname`\n\nCLIE\u003dbin/lws-minimal-ws-client-echo\nSERV\u003dbin/lws-minimal-ws-server-echo\n\nRESULT\u003d0\n\nwhich wstest 2\u003e/dev/null\nif [ $? -ne 0 ]; then\n\techo \u0022wstest is not installed\u0022\n\texit 8\nfi\n\nkillall wstest 2\u003e/dev/null\n\n#\n# 2.10 / 2.11: There is no requirement to handle multiple PING / PONG\n# in flight on a single connection in RFC6455. lws doesn't\n#\t\t waste memory on supporting it since it is useless.\n\ncat \u003c\u003c EOF \u003efuzzingclient.json\n{ \n \u0022outdir\u0022: \u0022./reports/servers\u0022,\n \u0022servers\u0022: [\n {\n \u0022url\u0022: \u0022ws://127.0.0.1:9001\u0022\n }\n ],\n \u0022cases\u0022: [ \u0022*\u0022 ],\n \u0022exclude-cases\u0022: [\u00222.10\u0022, \u00222.11\u0022 ],\n \u0022exclude-agent-cases\u0022: {}\n}\nEOF\n\necho\necho \u0022----------------------------------------------\u0022\necho \u0022------- tests: autobahn as server\u0022\necho\n\n$SERV -p 9001 -d3 \u0026\nwstest -m fuzzingclient\nR\u003d$?\necho \u0022Autobahn client exit $R\u0022\n\nkillall lws-minimal-ws-server-echo\nsleep 1s\n\n# repeat the client results\n\nR\u003d`cat /tmp/ji | grep -v '\u0022behavior\u0022: \u0022OK\u0022' | grep -v '\u0022behavior\u0022: \u0022NON-STRICT\u0022' | grep -v '\u0022behavior\u0022: \u0022INFORMATIONAL\u0022' | wc -l`\necho -n \u0022AUTOBAHN SERVER / LWS CLIENT: Total tests: \u0022 `cat /tmp/ji | wc -l` \u0022 : \u0022\nif [ \u0022$R\u0022 \u003d\u003d \u00220\u0022 ] ;then\n\techo \u0022All pass\u0022\nelse\n\tRESULT\u003d1\n\techo -n \u0022$R FAIL : \u0022\n\tcat /tmp/ji | grep -v '\u0022behavior\u0022: \u0022OK\u0022' | grep -v '\u0022behavior\u0022: \u0022NON-STRICT\u0022' | grep -v '\u0022behavior\u0022: \u0022INFORMATIONAL\u0022' | cut -d\u005c\u0022 -f2 | tr '\u005cn' ','\n\techo\nfi\n\n# and then the server results\n\ncat reports/servers/index.json | tr '\u005cn' '!' | sed \u0022s|\u005c},\u005c!|\u005cn|g\u0022 | tr '!' ' ' | tr -s ' ' \u003e /tmp/jis\nR\u003d`cat /tmp/jis | grep -v '\u0022behavior\u0022: \u0022OK\u0022' | grep -v '\u0022behavior\u0022: \u0022NON-STRICT\u0022' | grep -v '\u0022behavior\u0022: \u0022INFORMATIONAL\u0022' | wc -l`\n\necho -n \u0022AUTOBAHN CLIENT / LWS SERVER: Total tests: \u0022 `cat /tmp/jis | wc -l` \u0022 : \u0022\nif [ \u0022$R\u0022 \u003d\u003d \u00220\u0022 ] ;then\n\techo \u0022All pass\u0022\nelse\n\tRESULT\u003d$(( $RESULT + 2 ))\n\techo -n \u0022$R FAIL : \u0022\n\tcat /tmp/jis | grep -v '\u0022behavior\u0022: \u0022OK\u0022' | grep -v '\u0022behavior\u0022: \u0022NON-STRICT\u0022' | grep -v '\u0022behavior\u0022: \u0022INFORMATIONAL\u0022' | cut -d\u005c\u0022 -f2 | tr '\u005cn' ','\n\techo\nfi\n\necho $RESULT\nexit $RESULT\n\n","s":{"c":1743526730,"u": 368}}
],"g": 1787,"chitpc": 0,"ehitpc": 0,"indexed":0
,
"ab": 1, "si": 0, "db":0, "di":0, "sat":0, "lfc": "0000"}