dog_file=/tmp/dog.log
dog_ser=/tmp/dog.ser
dog_cli=/tmp/dog.cli
+pausing=1
i=1
while [ $i -lt 5000000 ]; do
b_options_for_perf_test+=" $i"
exit 1
fi
let "ctrl_c+=1"
+ pausing=0
echo -en "\n*** Will break after this test case ***\n\n"
}
read -t 0.01 -n 1 -s u_input
ret=$?
+ if [ $ret -eq 0 ] && [ "$u_input" == "p" ]; then
+ pause_test
+ fi
if [ $ret -eq 0 ] && [ "$u_input" == "i" ]; then
print_round_info
fi
echo " done in $test_run_time sec"
}
+function pause_test(){
+ echo -ne "Pausing - Press p to continue - "
+ while [ $pausing -eq 1 ]; do
+ echo -ne "P"
+ read -t 0.01 -n 1 -s u_input
+ ret=$?
+ if [ $ret -eq 0 ] && [ "$u_input" == "p" ]; then
+ echo
+ break
+ fi
+ sleep 5
+ done
+}
function print_round_info(){
now=`date +%s`