]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TPC/stressTest/stressTest.sh
15 minutes interval for calculation of drift correction
[u/mrichter/AliRoot.git] / TPC / stressTest / stressTest.sh
1 # Run stress test on the batch system
2 # All run*.sh scripts in the $ALICE_ROOT test macro invoked
3 #
4 # Parameters:
5 # 1         - output prefix
6 # 2         - submit command
7
8 # Run example:
9 # $ALICE_ROOT/test/stressTest/stressTest.sh /d/alice12/miranov/streeTest/ "bsub -q proof"
10
11
12 outdir=$1/$ALICE_LEVEL/$ALICE_TARGET
13 submitcommand=$2
14 echo _____________________________________________________________
15 echo _____________________________________________________________
16 echo _____________________________________________________________
17 echo
18 echo outdir        $outdir
19 echo subitcommand  $submitcommand
20 mkdirhier $outdir
21 ls -al    $outdir
22 echo
23 echo _____________________________________________________________
24 echo _____________________________________________________________
25 echo _____________________________________________________________
26
27 #
28 # Loop over all run*sh macros
29 #
30 for tmacro in `ls $ALICE_ROOT/test/*/run*.sh` ; do
31 #
32 dname=`dirname $tmacro`
33 sname=`basename $dname`
34 workdir=$outdir/$sname
35 echo $sname $tmacro;
36 mkdirhier $workdir
37 cp $dname/* $workdir/
38 cd $workdir
39 rm *.root
40 echo $submitcommand -oo $workdir/out.log --eo $workdir/err.log $tmacro
41 $submitcommand -oo $workdir/out.log -eo $workdir/err.log $tmacro
42 cd $outdir;
43 done;
44
45
46
47
48