#!/bin/sh TOP_DIR=/home/robocop/robTester/svnRobTester cd $TOP_DIR . /home/robocop/robTester/svnRobTester/target_type # # Setting ROB type for getSummary perl scripts # MODE=1 # 0 = SINGLEROB, 1 = EXTENDED DEBUG=30 # Perl debug level (see script) if [ "$ROBTYPE" == "1A" ]; then TYPE="AA" fi if [ "$ROBTYPE" == "1B" ]; then TYPE="AB" fi if [ "$ROBTYPE" == "2B" ]; then TYPE="BB" fi if [ "$ROBTYPE" == "3A" ]; then TYPE="CA" fi if [ "$ROBTYPE" == "3B" ]; then TYPE="CB" fi if [ "$ROBTYPE" == "4A" ]; then TYPE="DA" fi if [ "$ROBTYPE" == "4B" ]; then TYPE="DB" fi echo Basename: $BASENAME echo Perl type: $TYPE echo Perl mode: $MODE echo hamming: $hamming sleep 5 # PASA and tempSensors test echo -e "\v" echo "****************************************" echo "* Performing analog tests... *" echo "****************************************" #RESET_ERR="OK"; cd $TOP_DIR/pasa_adc rm debug_ch_inj.txt rm ./Charge_inj/report_charge_inj.log ./plot_charge_inj > debug_ch_inj.txt grep -e "Wrong " debug_ch_inj.txt > ./Charge_inj/report_charge_inj.log grep -e "missing " debug_ch_inj.txt > ./Charge_inj/report_charge_inj.log grep -e "Unexpected " debug_ch_inj.txt > ./Charge_inj/report_charge_inj.log if [ -s ./Charge_inj/report_charge_inj.log ] ; then RESET_ERR="ERROR"; else RESET_ERR="OK" ./check_thr ; fi #mv area.txt Charge_inj/${BASENAME}_area.txt #mv report_pasa_02.log Charge_inj/report_charge_inj.log #CLEAN data/ rm /home/robocop/robTester/svnRobTester/pasa_adc/data/* make reset2 #Get Result LOG_DIR=/home/robocop/robTester/svnRobTester/pasa_adc/Charge_inj # Analysing the log files PASA_ERR="OK"; cd $LOG_DIR if [ -s report_charge_inj.log ] ; then PASA_ERR="ERROR"; else PASA_ERR="OK" fi # Write some files for PVSS "lightshow" echo "OK" > PASA_ERR if [ "$PASA_ERR" == "ERROR" ] ; then echo "ERROR" > PASA_ERR else echo "OK" > PASA_ERR fi if [ "$RESET_ERR" == "ERROR" ] ; then echo "ERROR" > RESET_ERR else echo "OK" > RESET_ERR fi #cp -r Charge_inj /home/trap/robTester/AliTRDrobLogFiles/$BASENAME_DATE/ cd $TOP_DIR