# so we can test other languages if [[ "$COUNTER_APP" == "" ]]; then COUNTER_APP="counter" fi echo "Testing counter app for: $COUNTER_APP" # run the counter app $COUNTER_APP &> /dev/null & PID=`echo $!` if [[ "$?" != 0 ]]; then echo "Error running tmsp command" echo $OUTPUT exit 1 fi sleep 1 OUTPUT=`(tmsp batch) < /dev/null if [[ "$?" == "0" ]]; then kill -9 $PID fi