/[escript]/branches/windows_from_1456_trunk_1544_merged_in/autotest-scons
ViewVC logotype

Diff of /branches/windows_from_1456_trunk_1544_merged_in/autotest-scons

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

trunk/autotest-scons revision 937 by ksteube, Thu Jan 25 03:31:14 2007 UTC branches/windows_from_1456_trunk_1544_merged_in/autotest-scons revision 1578 by phornby, Wed May 28 11:16:10 2008 UTC
# Line 66  echo "" Line 66  echo ""
66  START=\`date '+%Y/%m/%d %H:%M'\`  START=\`date '+%Y/%m/%d %H:%M'\`
67    
68  finish () {  finish () {
69      # state will be 'FAILURE' or 'SUCCESS'
70      state="\$1"
71    date    date
72    # Clean up the sandbox    # Clean up the sandbox
73    cd $WorkDir    cd $WorkDir
74    /bin/rm -rf sandbox.$RunDate    /bin/rm -rf sandbox.$RunDate
75    END=\`date '+%Y/%m/%d %H:%M'\`    END=\`date '+%Y/%m/%d %H:%M'\`
76    cat << END_MSG | mail -s "ESYS_TESTS $target $RunDate \$1" $MAIL_RECIPIENTS    cat << END_MSG | mail -s "ESYS_TESTS $target $RunDate \$state" $MAIL_RECIPIENTS
77  \$2.  \$2.
78  The tests ran from \$START to \$END on \$NCPUS CPUs  The tests ran from \$START to \$END on \$NCPUS CPUs
79  See the log files in $WorkDir/Logs/$RunDate*  See the log files in $WorkDir/Logs/$RunDate*
80  This mail was sent by $SCRIPT_NAME  This mail was sent by $SCRIPT_NAME
81  running as \$USER on \`hostname\`.  running as \$USER on \`hostname\`.
82  END_MSG  END_MSG
83    test "x\$1" = "FAILURE" && exit 1    if [ "x\$state" = "xFAILURE" ]; then
84        touch Logs/$RunDate.FAILURE
85        exit 1
86      fi
87    exit 0    exit 0
88  }  }
89    
90    
91    # set -x
92    
93    
94  cd $WorkDir             || finish FAILURE "Could not cd to WorkDir $WorkDir"  cd $WorkDir             || finish FAILURE "Could not cd to WorkDir $WorkDir"
95    
96  # Create an empty out_file  # Create an empty out_file
# Line 105  module use /usr/share/modules/modulefile Line 113  module use /usr/share/modules/modulefile
113  module load esys/env    # Recommended modules  module load esys/env    # Recommended modules
114  module load doxygen/1.4.6  module load doxygen/1.4.6
115  module load boost/1.33.0/python-2.4.1  module load boost/1.33.0/python-2.4.1
116    module load gmsh-1.65.0
117    module load epydoc/2.1/python-2.4.3
118    
119  # How many threads? One per CPU.  # How many threads? One per CPU.
120  export OMP_NUM_THREADS=\$NCPUS  export OMP_NUM_THREADS=\$NCPUS
# Line 114  echo "Running the tests $target" Line 124  echo "Running the tests $target"
124  cd trunk                || finish FAILURE "Could not cd to trunk"  cd trunk                || finish FAILURE "Could not cd to trunk"
125  scons -j \$NCPUS $target >> $out_file 2>&1      || finish FAILURE "Could not run scons $target"  scons -j \$NCPUS $target >> $out_file 2>&1      || finish FAILURE "Could not run scons $target"
126    
127    # Run epydoc to create the python documentation
128    echo "Running epydoc"
129    export LD_LIBRARY_PATH="$PWD/lib:$LD_LIBRARY_PATH"
130    mkdir release release/doc release/doc/epydoc
131    scons api_epydoc >> $out_file 2>&1      || finish FAILURE "Could not run scons api_epydoc"
132    cd release/doc/epydoc
133    tar cf - . | ssh shake200 "cd /home/www/esys/esys13/nightly/epydoc; tar xf -"   || finish FAILURE "Could not copy epydoc to shake200"
134    cd ../../..
135    
136  echo "Cleaning up after the tests"  echo "Cleaning up after the tests"
137    
138  # Delete files older than 21 days  # Delete files older than 60 days
139  find $WorkDir -atime +21 -exec rm -f {} \;  find $WorkDir -atime +60 -exec rm -f {} \;
140    
141  finish SUCCESS "Successfully ran 'scons $target' on \`hostname\`"  finish SUCCESS "Successfully ran 'scons $target' on \`hostname\`"
142    

Legend:
Removed from v.937  
changed lines
  Added in v.1578

  ViewVC Help
Powered by ViewVC 1.1.26