]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TPC/stressTest/stressTest.sh
svn log -> git log
[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/
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 cd $ALICE_ROOT
31 git status   > $outdir/git.status
32 git diff     > $outdir/git.diff 
33 cd $outdir
34 for tmacro in `ls $ALICE_ROOT/test/*/run*.sh` ; do
35     dname=`dirname $tmacro`
36     sname=`basename $dname`
37     workdir=$outdir/$sname
38     echo $sname $tmacro;
39     mkdirhier $workdir
40     cp $dname/* $workdir/
41     cd $workdir
42     rm *.root
43     echo $submitcommand   $tmacro
44     $submitcommand  $tmacro
45     cd $outdir;
46 done;
47
48
49
50
51