/[escript]/trunk/autotest
ViewVC logotype

Diff of /trunk/autotest

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

trunk/esys2/autotest revision 147 by jgs, Fri Aug 12 01:45:47 2005 UTC trunk/autotest revision 155 by jgs, Wed Nov 9 02:02:19 2005 UTC
# Line 3  Line 3 
3  # $Id$  # $Id$
4  # An explicit testing script for esys  # An explicit testing script for esys
5    
6  MAIL_RECIPIENTS="jgs@esscc.uq.edu.au"  # list of users to email test results to
7    MAIL_RECIPIENTS="jgs@esscc.uq.edu.au gross@esscc.uq.edu.au cochrane@esscc.uq.edu.au elspeth@esscc.uq.edu.au matt@esscc.uq.edu.au"
8    
9    # define compiler executable and library locations
10    export PATH=/opt/intel/cmplrs/80.058/intel_cc_80/bin:$PATH
11    export LD_LIBRARY_PATH=/opt/intel/cmplrs/80.058/intel_cc_80/lib
12    
13  echo cd $1  echo cd $1
14  cd $1  cd $1
15  if [ $? != 0 ]  if [ $? != 0 ]
16  then  then
17    echo couldnt cd $1    echo couldnt cd $1
18    echo "couldnt cd $1" | mail -s "autotest results" $MAIL_RECIPIENTS    echo "couldnt cd $1" | mail -s "esys autotest results" $MAIL_RECIPIENTS
19    exit 1    exit 1
20  fi  fi
21    
22  echo loading esys setup  echo loading esys setup
 . /home/jgs/raid2/setModuleEnv  
 module load intel_cc.80.058  
23  . ~/bin/esys_setup  . ~/bin/esys_setup
24  if [ $? != 0 ]  if [ $? != 0 ]
25  then  then
26    echo couldnt load esys setup    echo couldnt load esys setup
27    echo "couldnt load esys setup" | mail -s "autotest results" $MAIL_RECIPIENTS    echo "couldnt load esys setup" | mail -s "esys autotest results" $MAIL_RECIPIENTS
28    exit 2    exit 2
29  fi  fi
30    
# Line 30  cvs update -P -d Line 33  cvs update -P -d
33  if [ $? != 0 ]  if [ $? != 0 ]
34  then  then
35    echo cvs update failed    echo cvs update failed
36    echo "cvs update failed" | mail -s "autotest results" $MAIL_RECIPIENTS    echo "cvs update failed" | mail -s "esys autotest results" $MAIL_RECIPIENTS
37    exit 3    exit 3
38  fi  fi
39    
# Line 39  echo running mk uninstall Line 42  echo running mk uninstall
42  if [ $? != 0 ]  if [ $? != 0 ]
43  then  then
44    echo ./mk uninstall failed    echo ./mk uninstall failed
45    echo "./mk uninstall failed" | mail -s "autotest results" $MAIL_RECIPIENTS    echo "./mk uninstall failed" | mail -s "esys autotest results" $MAIL_RECIPIENTS
46    exit 4    exit 4
47  fi  fi
48    
# Line 48  echo running mk clean Line 51  echo running mk clean
51  if [ $? != 0 ]  if [ $? != 0 ]
52  then  then
53    echo ./mk clean failed    echo ./mk clean failed
54    echo "./mk clean failed" | mail -s "autotest results" $MAIL_RECIPIENTS    echo "./mk clean failed" | mail -s "esys autotest results" $MAIL_RECIPIENTS
55    exit 5    exit 5
56  fi  fi
57    
# Line 57  echo running mk install Line 60  echo running mk install
60  if [ $? != 0 ]  if [ $? != 0 ]
61  then  then
62    echo ./mk install failed    echo ./mk install failed
63    echo "./mk install failed" | mail -s "autotest results" $MAIL_RECIPIENTS    echo "./mk install failed" | mail -s "esys autotest results" $MAIL_RECIPIENTS
64    exit 6    exit 6
65  fi  fi
66    
# Line 66  echo running mk unit_test Line 69  echo running mk unit_test
69  if [ $? != 0 ]  if [ $? != 0 ]
70  then  then
71    echo ./mk unit_test failed    echo ./mk unit_test failed
72    echo "./mk unit_test failed" | mail -s "autotest results" $MAIL_RECIPIENTS    echo "./mk unit_test failed" | mail -s "esys autotest results" $MAIL_RECIPIENTS
73    exit 7    exit 7
74  fi  fi
75    
# Line 75  echo running mk py_test Line 78  echo running mk py_test
78  if [ $? != 0 ]  if [ $? != 0 ]
79  then  then
80    echo ./mk py_test failed    echo ./mk py_test failed
81    echo "./mk py_test failed" | mail -s "autotest results" $MAIL_RECIPIENTS    echo "./mk py_test failed" | mail -s "esys autotest results" $MAIL_RECIPIENTS
82    exit 8    exit 8
83  fi  fi
84    
85  echo "success" | mail -s "autotest results" $MAIL_RECIPIENTS  echo "success" | mail -s "esys autotest results" $MAIL_RECIPIENTS
86  exit 0  exit 0

Legend:
Removed from v.147  
changed lines
  Added in v.155

  ViewVC Help
Powered by ViewVC 1.1.26