source: orange/install-scripts/linux/vmware/run_dailyBuild_regressionTest_widgetTesting.sh @ 4020:d95499836e88

Revision 4020:d95499836e88, 1.6 KB checked in by cvso <cvso@…>, 7 years ago (diff)

* empty log message *

Line 
1DISPLAY=:1
2export DISPLAY
3cd /home/vmware
4
5if [ -a /home/vmware/daily_run ]; then
6   echo already running
7   echo "please check..." | mail -s "already running?" tomaz.curk@fri.uni-lj.si
8   exit
9fi
10touch /home/vmware/daily_run
11
12#L=( winXP.dailyBuild winXP.regressionTests winXP.widgetTesting )
13
14# build orange
15L=( noreset.winXP.dailyBuild )
16for f in "${L[@]}"; do
17   ls $f/*LOCK*
18   if [ $? -eq 1 ]; then
19    echo "########################################################"
20    echo "running VM $f" 
21
22    # run it
23    echo "\"$f/Windows\ XP\ Professional.vmx\"" > runThis.lst
24    # kill after 1 hour
25    ulimit -t 7200
26    echo "started at"
27    date
28    /usr/local/bin/vmware -geometry 1200x1000+0+0 -x -q -k runThis.lst
29    echo done at
30    date
31    echo
32
33    # remove temp VM image
34    rm -Rf cron.$f
35   else
36        echo "$f"  | mail -s "write locks on VM" tomaz.curk@fri.uni-lj.si
37    rm /home/vmware/daily_run
38    exit
39   fi
40done
41
42L=( winXP.regressionTests winXP.widgetTesting )
43for f in "${L[@]}"; do
44   ls $f/*LOCK*
45   if [ $? -eq 1 ]; then
46    echo "########################################################"
47    echo "running VM $f" 
48    # copy original VM image into a temporary location
49    rm -Rf cron.$f
50    cp -vR /vmware/orangeBuildTest.VMWAREimage/$f cron.$f
51
52    # run it
53    echo "\"cron.$f/Windows\ XP\ Professional.vmx\"" > runThis.lst
54    # kill after 1 hour
55    ulimit -t 7200
56    echo "started at"
57    date
58    /usr/local/bin/vmware -geometry 1200x1000+0+0 -x -q -k runThis.lst
59    echo done at
60    date
61    echo
62
63    # remove temp VM image
64    rm -Rf cron.$f
65   else
66        echo "$f"  | mail -s "write locks on VM" tomaz.curk@fri.uni-lj.si
67    rm /home/vmware/daily_run
68    exit
69   fi
70done
71
72rm /home/vmware/daily_run
73
Note: See TracBrowser for help on using the repository browser.