]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGPP/PWGPPmacros/getCertificateBatch.sh
Merge branch 'feature-movesplit'
[u/mrichter/AliRoot.git] / PWGPP / PWGPPmacros / getCertificateBatch.sh
1 #
2 # Pseudo code to test the all components in the train and make report on batch farm
3 #
4
5 #
6 # 1. copy all task ans shell scirpts
7 #
8 cp /u/miranov/AliRoot/trunk/PWGPP/PWGPPmacros/*.* .
9  
10
11 #
12 # 2. Submit jobs for each macro - in separate directory
13 #
14 bqueue=alice-t3_8h
15 workdir=`pwd`
16 rm -rf test*
17 for fmacro in `cat ConfigTask.txt`; do
18     amacro=`basename $fmacro`
19     dname=`echo $workdir/test$amacro | sed s_.C__`
20     mkdirhier $dname
21     cd $dname
22     #
23     cp $workdir/runPWGPPTrain.C .
24     cp $workdir/*.sh  .
25     cp $workdir/esd.list .
26     cp $workdir/ConfigTask.txt .
27     echo bsub -q $bqueue getCertificate.sh $amacro
28     bsub -q $bqueue getCertificate.sh $amacro esd.list
29     cd $workdir
30 done
31
32 #
33 # 3. Wait
34 #
35 echo name/C:time/C > summaryTime.txt
36 for a in `ls */summary.log` ; do echo $a `cat $a | grep SysInfoTime` >>summaryTime.txt ; done
37
38 echo name/C: time/C > sumaryMem.txt
39 for a in `ls */summary.log` ; do echo $a `cat $a | grep SysInfoMem` >>summaryMem.txt ; done