diff --git a/test_coverage.sh b/test_coverage.sh index 4c4bfd41..5b0cf21d 100755 --- a/test_coverage.sh +++ b/test_coverage.sh @@ -68,12 +68,18 @@ while (time()<$endtime) { } } else { $output.=substr(dechex(0x100|ord($r[0])),1); - if ("31040704006f"==$output) { // answer on ident query + if ("31040704006f"==$output) { // answer on first ident query socket_write($cli, "\x00\x0a\x99\x42\x42\x42\x42\x42\x30\x31\x30\x31\x71",13); $output.=">answered<"; - } else if ("315307040091"==$output) { // answer on other ident query + } else if ("315307040091"==$output) { // answer on second ident query socket_write($cli, "\x00\x0a\x99\x42\x42\x42\x42\x42\x30\x31\x30\x31\x71",13); $output.=">answered<"; + } else if ("315407040090"==$output) { // answer on third ident query with invalid CRC + socket_write($cli, "\x00\x0a\x99\x42\x42\x42\x42\x42\x30\x31\x30\x31\x72",13); + $output.=">answered<"; + } else if ("315407040090"==$output) { // answer on fourth ident query with short reply + socket_write($cli, "\x00\x09\x99\x42\x42\x42\x42\x42\x30\x31\x30\x25",12); + $output.=">answered<"; } else if ("311cb509030d0000e1"==$output || "3152b509030d0600c9"==$output || "3153b509030d060034"==$output) { socket_write($cli, "\x00\x02\x40\x50\xb4",5); $output.=">answered<"; @@ -81,7 +87,7 @@ while (time()<$endtime) { socket_write($cli, "\x00\x00\x00",3); $output.=">answered<"; } else { - $endtime=time()+10; // keep further alive + $endtime=time()+20; // keep further alive } } } @@ -119,7 +125,7 @@ cat >"$PWD/contrib/etc/ebusd/153/36.bbb.csv" </dev/null + curl "http://localhost:8878/data/" >/dev/null + curl "http://localhost:8878/data/broadcast/?since=1&exact=1&required=" >/dev/null + curl "http://localhost:8878/data/mc.4/outsidetemp?poll=1" >/dev/null curl "http://localhost:8878/data/?verbose=1" >/dev/null + curl "http://localhost:8878/data/?indexed=1&numeric=1" >/dev/null curl -T .travis.yml http://localhost:8878/data/ echo "commands done" fi