Commits

Anonymous committed df61bad

faster unit-test when in -dbg mode

  • Participants
  • Parent commits 3f59e1f
  • Tags AthenaRootComps-00-10-06

Comments (0)

Files changed (3)

+2012-03-26  Sebastien Binet  <binet@cern.ch>
+
+	* tagging AthenaRootComps-00-10-06
+	* faster unit-test when in -dbg mode
+	* M test/run_test_athena_ntuple_dumper.sh
+
 2012-03-22  Sebastien Binet  <sebastien.binet@cern.ch>
 
 	* tagging AthenaRootComps-00-10-05

File test/AthenaRootComps.xml

 <?xml version="1.0"?>
 <atn>
-   <TEST name="athenarootcomps.rw" type="script" suite="athenarootcomps">
+   <TEST name="arc_rw" type="script" suite="athenarootcomps">
       <package_atn>Control/AthenaRootComps</package_atn>
       <options_atn>run_test_athena_ntuple_dumper.sh</options_atn>
       <timelimit>30</timelimit>
       </expectations>
    </TEST>
 
-   <TEST name="athenarootcomps.variable_shape" type="script" suite="athenarootcomps">
+   <TEST name="arc_variable_shape" type="script" suite="athenarootcomps">
       <package_atn>Control/AthenaRootComps</package_atn>
       <options_atn>run_test_athena_variable_shape_ntuple.sh</options_atn>
       <timelimit>30</timelimit>

File test/run_test_athena_ntuple_dumper.sh

 
 function run_test() {
     echo "::: running athenarootcomps-r/w basic test..."
+    IIMAX=5
+    if [[ "$CMTCONFIG" == *-dbg* ]]; then
+        IIMAX=1
+        echo "::: setting IIMAX=1 (debug mode is slower)"
+    else
+        IIMAX=5
+        echo "::: setting IIMAX=5 (opt mode is faster)"
+    fi
+
     /bin/rm -rf arc-ntuple-dumper-tests
     mkdir arc-ntuple-dumper-tests
     pushd arc-ntuple-dumper-tests
     echo "::: run athena-ntuple-dumper... (w/ varhandles, w/o output)"
     time_cmd="/usr/bin/time -a -o d3pd.rw.timing.log"
     /bin/rm -rf d3pd.rw.timing.log >& /dev/null
-    IIMAX=5
     for ii in `seq $IIMAX`; do
         echo " - iter $ii/$IIMAX..."
         ($time_cmd athena.py -c'USEVARHANDLE=1; DOWRITE=0' -lERROR AthenaRootComps/test_athena_ntuple_dumper.py >& d3pd.001.$ii.log.txt) || return 1
     echo "::: run athena-ntuple-dumper... (w/ varhandles)"
     time_cmd="/usr/bin/time -a -o d3pd.rw.timing.log"
     /bin/rm -rf d3pd.rw.timing.log >& /dev/null
-    IIMAX=5
     for ii in `seq $IIMAX`; do
         echo " - iter $ii/$IIMAX..."
         ($time_cmd athena.py -c'USEVARHANDLE=1' -lERROR AthenaRootComps/test_athena_ntuple_dumper.py >& d3pd.002.$ii.log.txt) || return 1
     echo "::: run athena-ntuple-dumper... (w/o varhandles)"
     time_cmd="/usr/bin/time -a -o d3pd.rw.timing.log"
     /bin/rm -rf d3pd.rw.timing.log >& /dev/null
-    IIMAX=5
     for ii in `seq $IIMAX`; do
         echo " - iter $ii/$IIMAX..."
         ($time_cmd athena.py -c'USEVARHANDLE=0' -lERROR AthenaRootComps/test_athena_ntuple_dumper.py >& d3pd.003.$ii.log.txt) || return 1