AliRoot stress test. Scripts to submit jobs for all tests in
authormarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 30 Nov 2009 20:55:24 +0000 (20:55 +0000)
committermarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 30 Nov 2009 20:55:24 +0000 (20:55 +0000)
$ALICE_ROOT/test directory
(Marian Ivanov)

TPC/stressTest/README [new file with mode: 0644]
TPC/stressTest/stressTest.sh [new file with mode: 0755]

diff --git a/TPC/stressTest/README b/TPC/stressTest/README
new file mode 100644 (file)
index 0000000..1c0400e
--- /dev/null
@@ -0,0 +1,10 @@
+AliRoot stress test:
+author: marian.ivanov@cern.ch
+
+Content:
+stressTest.sh  - script to submit all scripts fromt $ALICE_ROOT/test directory
+
+To run stressTest:
+$ALICE_ROOT/test/stressTest/stressTest.sh <output dir prefix>  <batch command>
+e.g:
+$ALICE_ROOT/test/stressTest/stressTest.sh /d/alice12/miranov/streeTest/ "bsub -q proof"
\ No newline at end of file
diff --git a/TPC/stressTest/stressTest.sh b/TPC/stressTest/stressTest.sh
new file mode 100755 (executable)
index 0000000..9ac48bb
--- /dev/null
@@ -0,0 +1,48 @@
+# Run stress test on the batch system
+# All run*.sh scripts in the $ALICE_ROOT test macro invoked
+#
+# Parameters:
+# 1         - output prefix
+# 2         - submit command
+# 
+# Run example:
+# $ALICE_ROOT/test/stressTest/stressTest.sh /d/alice12/miranov/streeTest/ "bsub -q proof"
+# 
+
+outdir=$1/$ALICE_LEVEL/$ALICE_TARGET
+submitcommand=$2
+echo _____________________________________________________________
+echo _____________________________________________________________
+echo _____________________________________________________________
+echo
+echo outdir        $outdir
+echo subitcommand  $submitcommand
+mkdirhier $outdir
+ls -al    $outdir
+echo
+echo _____________________________________________________________
+echo _____________________________________________________________
+echo _____________________________________________________________
+
+#
+# Loop over all run*sh macros
+#
+for tmacro in `ls $ALICE_ROOT/test/*/run*.sh` ; do
+#
+dname=`dirname $tmacro`
+sname=`basename $dname`
+workdir=$outdir/$sname
+echo $sname $tmacro;
+mkdirhier $workdir
+cp $dname/* $workdir/
+cd $workdir
+rm *.root
+echo $submitcommand -oo $workdir/out.log --eo $workdir/err.log $tmacro
+$submitcommand -oo $workdir/out.log -eo $workdir/err.log $tmacro
+cd $outdir;
+done;
+
+
+
+
+