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

Contents of /branches/escript3047_with_pastix2995/autotest-scons

Parent Directory Parent Directory | Revision Log Revision Log


Revision 320 - (show annotations)
Tue Dec 6 04:35:27 2005 UTC (13 years, 4 months ago) by svn
Original Path: trunk/autotest-scons
File size: 2230 byte(s)
unit tests now run ok
1 #!/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 MAIL_RECIPIENTS="jgs@esscc.uq.edu.au"
9
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 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
41 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 echo running bruce unit_tests
51 cd bruce/test
52 ./unit_test-scons
53 if [ $? != 0 ]
54 then
55 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 fi
59 cd ../..
60
61 echo running escript unit_tests
62 cd escript/test
63 ./unit_test-scons
64 if [ $? != 0 ]
65 then
66 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 fi
70 cd ../..
71
72 echo running finley unit_tests
73 cd finley/test
74 ./unit_test-scons
75 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 cd ../..
82
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