+ . /c/git/bt411/scratchpad/night6/bench_common.sh ++ BT_ROOT=/c/git/bt411 ++ BT_EXE=/c/git/bt411/build/Release/btl4.exe ++ BT_PIDFILE=/tmp/bt_bench_pids.1093 + cd /c/git/bt411/content + taskkill //F //IM btl4.exe + sleep 2 + rm -f mc_a.log + bt_expert_egg MP.EGG MC.EGG + sed 's/^experience=.*/experience=expert/' MP.EGG + sed -i 's/^map=.*/map=grass/; s/^time=.*/time=day/; s/^vehicle=.*/vehicle=madcat/' MC.EGG + export BT_MODECYCLE_EVERY=400 + BT_MODECYCLE_EVERY=400 + export BT_TORSO_LOG=1 BT_KEY_NOFOCUS=1 + BT_TORSO_LOG=1 + BT_KEY_NOFOCUS=1 + bt_launch mc_a.log MC.EGG 0x03 + local log=mc_a.log egg=MC.EGG aff=0x03 + shift 3 + bt_player_env + export BT_PLATFORM=glass + BT_PLATFORM=glass + export BT_START_INSIDE=1 + BT_START_INSIDE=1 + export BT_DEV_GAUGES=1 + BT_DEV_GAUGES=1 + export BT_LOG=mc_a.log BT_AFFINITY=0x03 + BT_LOG=mc_a.log + BT_AFFINITY=0x03 + for _i in 1 2 3 4 5 + '[' -f /proc/1101/winpid ']' + /c/git/bt411/build/Release/btl4.exe -egg MC.EGG + cat /proc/1101/winpid + break + sleep 150 + bt_kill_ours + '[' -f /tmp/bt_bench_pids.1093 ']' + read -r pid + '[' -n 9164 ']' + taskkill //F //PID 9164 + read -r pid + rm -f /tmp/bt_bench_pids.1093 + sleep 2 + taskkill //F //IM btl4.exe + sleep 3 + echo '=================== CONTROL-MODE TORSO STATE ===================' =================== CONTROL-MODE TORSO STATE =================== + echo '--- the mode cycles that happened ---' --- the mode cycles that happened --- + grep -a '\[mode\] control mode' mc_a.log + head -10 + echo + echo '--- centerCommand must NEVER latch (ctrCmd=1 with no button = the bug) ---' --- centerCommand must NEVER latch (ctrCmd=1 with no button = the bug) --- + echo -n ' samples with ctrCmd=1 : ' samples with ctrCmd=1 : + grep -ao 'ctrCmd=[0-9]*' mc_a.log + grep -c ctrCmd=1 0 + echo -n ' samples with ctrCmd=0 : ' samples with ctrCmd=0 : + grep -ao 'ctrCmd=[0-9]*' mc_a.log + grep -c ctrCmd=0 72 + echo + echo '--- the elevation-limit SWAP (should differ between Basic and assisted) ---' --- the elevation-limit SWAP (should differ between Basic and assisted) --- + grep -ao 'vLim=([^)]*)' mc_a.log + sort + uniq -c + sort -rn + head -5 72 vLim=(-0.698132..0.349066) + echo + echo '--- torso state around each mode change ---' --- torso state around each mode change --- + grep -aE '\[mode\] control mode|ctrCmd=' mc_a.log + grep -aA1 '\[mode\]' + head -12