manually
1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/sh
LOG="$1"
cd ..
BB_PATH=`pwd`
SUB="${LOG} regression result(sending manually)"
#### Create Performance comparison #########
cd ${BB_PATH}/tests/perf
./perf /tmp/bb_perf ../${LOG}.perf.html
echo "</html>" >> ../${LOG}.perf.html
mv -f /tmp/bb_perf ../${LOG}.perf
##################################
##################################
# Export information to web server
#
machine=source.routefree.com
now="$LOG"
topdir=/home/httpd/html
###################################
# Process the coverage information
#
cd ${BB_PATH}/hw2/chip/vsim
cmView -b +DIR=sim.ipc.cm
dirname=${topdir}/bb_chip_coverage/${now}
rsh -n ${machine} mkdir ${dirname}
rcp sim.ipc.cm/reports/cmView* ${machine}:${dirname}
rsh -n ${machine} rm -f ${topdir}/bb_chip_coverage/latest
rsh -n ${machine} ln -s ${dirname} ${topdir}/bb_chip_coverage/latest
###################################
# Archive the results
#
cd ${BB_PATH}/tests
dirname=${topdir}/bb_chip_regression/${now}
rsh -n ${machine} mkdir ${dirname}
rcp ${now}.* ${machine}:${dirname}
rsh -n ${machine} rm -f ${topdir}/bb_chip_regression/latest
rsh -n ${machine} ln -s ${dirname} ${topdir}/bb_chip_regression/latest
##### Mail result out
# cat /home/whs/bb/rf/sw/root/PR/tests/${LOG}.result | mail -s "${SUB}" bb-dv@routefree.com
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.$$