/[escript]/trunk/autotest-scons
ViewVC logotype

Annotation of /trunk/autotest-scons

Parent Directory Parent Directory | Revision Log Revision Log


Revision 320 - (hide annotations)
Tue Dec 6 04:35:27 2005 UTC (17 years, 3 months ago) by svn
File size: 2230 byte(s)
unit tests now run ok
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 svn 320 #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     MAIL_RECIPIENTS="jgs@esscc.uq.edu.au"
9 jgs 318
10     # define compiler executable and library locations
11     export PATH=/opt/intel/cmplrs/80.058/intel_cc_80/bin:$PATH
12     export LD_LIBRARY_PATH=/opt/intel/cmplrs/80.058/intel_cc_80/lib
13    
14     echo cd $1
15     cd $1
16     if [ $? != 0 ]
17     then
18     echo couldnt cd $1
19     echo "couldnt cd $1" | mail -s "esys autotest results" $MAIL_RECIPIENTS
20     exit 1
21     fi
22    
23     echo loading esys setup
24     . ~jgs/bin/scons_setup
25     if [ $? != 0 ]
26     then
27     echo couldnt load scons setup
28     echo "couldnt load scons setup" | mail -s "esys autotest results" $MAIL_RECIPIENTS
29     exit 2
30     fi
31    
32 svn 320 echo running svn update
33     svn update
34     if [ $? != 0 ]
35     then
36     echo svn update failed
37     echo "svn update failed" | mail -s "esys autotest results" $MAIL_RECIPIENTS
38     exit 3
39     fi
40 jgs 319
41 svn 320 echo running scons debug=1
42     scons debug=1
43     if [ $? != 0 ]
44     then
45     echo scons failed
46     echo "scons failed - see autotest logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS
47     exit 5
48     fi
49    
50 jgs 319 echo running bruce unit_tests
51     cd bruce/test
52 svn 320 ./unit_test-scons
53 jgs 318 if [ $? != 0 ]
54     then
55 jgs 319 echo bruce unit_test failed
56     echo "bruce unit_test failed - see autotest logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS
57     exit 6
58 jgs 318 fi
59 svn 320 cd ../..
60 jgs 318
61 jgs 319 echo running escript unit_tests
62     cd escript/test
63 svn 320 ./unit_test-scons
64 jgs 318 if [ $? != 0 ]
65     then
66 jgs 319 echo escript unit_test failed
67     echo "escript unit_test failed - see autotest logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS
68     exit 6
69 jgs 318 fi
70 svn 320 cd ../..
71 jgs 318
72 jgs 319 echo running finley unit_tests
73     cd finley/test
74 svn 320 ./unit_test-scons
75 jgs 319 if [ $? != 0 ]
76     then
77     echo finley unit_test failed
78     echo "finley unit_test failed - see autotest logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS
79     exit 6
80     fi
81 svn 320 cd ../..
82 jgs 318
83     #echo running mk py_test
84     #./mk py_test
85     #if [ $? != 0 ]
86     #then
87     # echo ./mk py_test failed
88     # echo "./mk py_test failed - see autotest logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS
89     # exit 7
90     #fi
91    
92     echo "success" | mail -s "esys autotest results" $MAIL_RECIPIENTS
93     exit 0

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26