4 |
# An explicit testing script for esys |
# An explicit testing script for esys |
5 |
|
|
6 |
# list of users to email test results to |
# 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" |
#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 |
# define compiler executable and library locations |
11 |
export PATH=/opt/intel/cmplrs/80.058/intel_cc_80/bin:$PATH |
export PATH=/opt/intel/cmplrs/80.058/intel_cc_80/bin:$PATH |
21 |
fi |
fi |
22 |
|
|
23 |
echo loading esys setup |
echo loading esys setup |
24 |
. ~/bin/esys_setup |
. ~jgs/bin/esys_setup |
25 |
if [ $? != 0 ] |
if [ $? != 0 ] |
26 |
then |
then |
27 |
echo couldnt load esys setup |
echo couldnt load esys setup |
29 |
exit 2 |
exit 2 |
30 |
fi |
fi |
31 |
|
|
32 |
echo running cvs update |
echo running svn update |
33 |
cvs update -P -d |
svn update |
34 |
if [ $? != 0 ] |
if [ $? != 0 ] |
35 |
then |
then |
36 |
echo cvs update failed |
echo svn update failed |
37 |
echo "cvs update failed" | mail -s "esys autotest results" $MAIL_RECIPIENTS |
echo "svn update failed" | mail -s "esys autotest results" $MAIL_RECIPIENTS |
38 |
exit 3 |
exit 3 |
39 |
fi |
fi |
40 |
|
|
47 |
exit 4 |
exit 4 |
48 |
fi |
fi |
49 |
|
|
|
echo running mk clean |
|
|
./mk clean |
|
|
if [ $? != 0 ] |
|
|
then |
|
|
echo ./mk clean failed |
|
|
echo "./mk clean failed" | mail -s "esys autotest results" $MAIL_RECIPIENTS |
|
|
exit 5 |
|
|
fi |
|
|
|
|
50 |
echo running mk install |
echo running mk install |
51 |
./mk install DEBUG |
./mk install DEBUG |
52 |
if [ $? != 0 ] |
if [ $? != 0 ] |
53 |
then |
then |
54 |
echo ./mk install failed |
echo ./mk install failed |
55 |
echo "./mk install failed" | mail -s "esys autotest results" $MAIL_RECIPIENTS |
echo "./mk install failed" | mail -s "esys autotest results" $MAIL_RECIPIENTS |
56 |
exit 6 |
exit 5 |
57 |
fi |
fi |
58 |
|
|
59 |
echo running mk unit_test |
echo running mk unit_test |
62 |
then |
then |
63 |
echo ./mk unit_test failed |
echo ./mk unit_test failed |
64 |
echo "./mk unit_test failed" | mail -s "esys autotest results" $MAIL_RECIPIENTS |
echo "./mk unit_test failed" | mail -s "esys autotest results" $MAIL_RECIPIENTS |
65 |
exit 7 |
exit 6 |
66 |
fi |
fi |
67 |
|
|
68 |
echo running mk py_test |
echo running mk py_test |
71 |
then |
then |
72 |
echo ./mk py_test failed |
echo ./mk py_test failed |
73 |
echo "./mk py_test failed" | mail -s "esys autotest results" $MAIL_RECIPIENTS |
echo "./mk py_test failed" | mail -s "esys autotest results" $MAIL_RECIPIENTS |
74 |
exit 8 |
exit 7 |
75 |
fi |
fi |
76 |
|
|
77 |
echo "success" | mail -s "esys autotest results" $MAIL_RECIPIENTS |
echo "success" | mail -s "esys autotest results" $MAIL_RECIPIENTS |