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

Annotation of /branches/arrexp_2137_win/autotest-scons

Parent Directory Parent Directory | Revision Log Revision Log


Revision 318 - (hide annotations)
Tue Dec 6 02:25:26 2005 UTC (13 years, 4 months ago) by jgs
Original Path: trunk/autotest-scons
File size: 1675 byte(s)
draft autotest script using the scons build system
1 jgs 318 #!/bin/bash
2    
3     # $Id: autotest 162 2005-11-11 00:09:59Z svn $
4     # An explicit testing script for esys using the scons build system
5    
6     # 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
14     cd $1
15     if [ $? != 0 ]
16     then
17     echo couldnt cd $1
18     echo "couldnt cd $1" | mail -s "esys autotest results" $MAIL_RECIPIENTS
19     exit 1
20     fi
21    
22     echo loading esys setup
23     . ~jgs/bin/scons_setup
24     if [ $? != 0 ]
25     then
26     echo couldnt load scons setup
27     echo "couldnt load scons setup" | mail -s "esys autotest results" $MAIL_RECIPIENTS
28     exit 2
29     fi
30    
31     echo running svn update
32     svn update
33     if [ $? != 0 ]
34     then
35     echo svn update failed
36     echo "svn update failed" | mail -s "esys autotest results" $MAIL_RECIPIENTS
37     exit 3
38     fi
39    
40     echo running scons debug=1
41     scons debug=1
42     if [ $? != 0 ]
43     then
44     echo scons failed
45     echo "scons failed - see autotest logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS
46     exit 5
47     fi
48    
49     #echo running mk unit_test
50     #./mk unit_test
51     #if [ $? != 0 ]
52     #then
53     # echo ./mk unit_test failed
54     # echo "./mk unit_test failed - see autotest logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS
55     # exit 6
56     #fi
57    
58     #echo running mk py_test
59     #./mk py_test
60     #if [ $? != 0 ]
61     #then
62     # echo ./mk py_test failed
63     # echo "./mk py_test failed - see autotest logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS
64     # exit 7
65     #fi
66    
67     echo "success" | mail -s "esys autotest results" $MAIL_RECIPIENTS
68     exit 0

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26