#!/bin/sh TOP_DIR=/home/robocop/robTester/svnRobTester cd $TOP_DIR grep -e "***** CRASHED at 120 us *****" $TOP_DIR/ROB_ORI/result > ./report_stress.log STRESS_ERR="OK"; if [ -s ./report_stress.log ] ; then STRESS_ERR="120 us"; else grep -e "***** CRASHED at 140 us *****" $TOP_DIR/ROB_ORI/result > ./140.txt grep -e "***** CRASHED at 150 us *****" $TOP_DIR/ROB_ORI/result > ./150.txt grep -e "***** CRASHED at 200 us *****" $TOP_DIR/ROB_ORI/result > ./200.txt if [ -s 140.txt ] ; then STRESS_ERR="140 us"; fi if [ -s 150.txt ] ; then STRESS_ERR="150 us"; fi if [ -s 200.txt ] ; then STRESS_ERR="200 us"; fi fi # Write file for the production database rm db_summary.log echo "Stress_test: $STRESS_ERR" > db_summary.log rm report_stress.log