jobs.gate
736 Bytes
#!/bin/sh
sys_period=10664
export BBOPTS="+sysclk=${sys_period}"
sys_clk=`echo "scale=1; 1000000/$sys_period" | bc`
LOG1=`date +%Y%m%d`
LOG=${LOG1}.gate
SUB1=`date +%Y-%m-%d`
SUB="${SUB1} gate-level nightly regression results"
. /home/whs/bb/setup
BB_PATH=/home/whs/bb/rf/sw/root/PR
cd ${BB_PATH}/tests
echo "Nightly regression run at sysclk=${sys_clk}MHz(${sys_period})" > ${LOG}.result
./gate ${LOG} >${LOG}.log 2>&1
##### Mail result out
echo "Sender: whs@broadon.com" > rr.$$
echo "From: whs@broadon.com" >> rr.$$
echo "To: bb-dv@routefree.com" >> rr.$$
echo "Subject: ${SUB}" >> rr.$$
cat /home/whs/bb/rf/sw/root/PR/tests/${LOG}.result >> rr.$$
/usr/lib/sendmail -v -U bb-dv@routefree.com < rr.$$
rm -rf rr.$$
rm -rf tmp.*