#!/usr/bin/env bash # #93 bench: mission teardown with missiles IN FLIGHT (3 cycles). set -x cd /c/git/bt411/content || exit 1 taskkill //F //IM btl4.exe > /dev/null 2>&1 sleep 2 for i in 1 2 3; do rm -f td_$i.log ( export BT_PLATFORM=glass BT_START_INSIDE=1 BT_DEV_GAUGES=1 \ BT_LOG=td_$i.log BT_AFFINITY=0x03 \ BT_GOTO=enemy BT_GOTO_STOP=100 BT_AUTOFIRE=1 BT_PROJ_LOG=1 BT_SPAWN_ENEMY=1 ../build/Release/btl4.exe -egg SHORTMSN.EGG & wait )& BGPID=$! # mission length 45s + load ~20s + menu relaunch; give it 100s then kill the relaunch sleep 100 taskkill //F //IM btl4.exe > /dev/null 2>&1 sleep 2 echo "=== cycle $i ===" grep -c "crash" td_$i.log grep -c "RunMissions returned" td_$i.log grep -c "projectile" td_$i.log done echo "=== DONE ==="