/[escript]/tags/stable-2005-11-09/mk
ViewVC logotype

Annotation of /tags/stable-2005-11-09/mk

Parent Directory Parent Directory | Revision Log Revision Log


Revision 125 - (hide annotations)
Fri Jul 22 03:52:49 2005 UTC (14 years, 3 months ago) by jgs
Original Path: trunk/esys2/mk
File size: 3121 byte(s)
Merge of development branch back to main trunk on 2005-07-22
CVg: Committing in

1 jgs 116 #!/bin/bash
2    
3 jgs 82 # $Id$
4 jgs 116 # An explicit building script for esys
5 jgs 82
6 jgs 122 #**********************************************************************
7     # NB: this script is setup to perform default developmental builds
8     # change any settings you require, but PLEASE do not check any changes
9     # to this script back into the repository - talk to Jon first
10     #**********************************************************************
11    
12     # the modules to make
13 jgs 85 MODULES="tools/CppUnitTest tools/mmio esysUtils escript finley"
14 jgs 82
15 jgs 122 # the tests to run
16     TESTS="escript finley"
17    
18     # use this setting for local developmental builds
19 jgs 125 #ENVVARS="DODEBUG=YES"
20 jgs 120
21 jgs 125 if [ "$2" == "DEBUG" ];
22     then
23     ENVVARS="DODEBUG=YES"
24     fi
25    
26 jgs 123 if [ "$2" == "NODEBUG" ];
27     then
28     ENVVARS="DODEBUG=NO"
29     fi
30    
31 jgs 122 # use this setting for production installs on altix
32     # ** NB: overwrites centrally installed esys libraries on altix ***
33 jgs 120 #ENVVARS="L_INSTLIB_DIR=/raid2/tools/esys/lib L_PYTH_DIR=/raid2/tools/esys/esys"
34    
35 jgs 122 # ensure required symlinks are setup first
36     (cd escript/inc; if [ ! -h escript ]; then ln -s ../src escript; fi)
37     (cd esysUtils/inc; if [ ! -h esysUtils ]; then ln -s ../src esysUtils; fi)
38     (cd finley/inc; if [ ! -h finley ]; then ln -s ../src finley; fi)
39    
40     (cd escript; if [ ! -h Makefile ]; then ln -s ./escript.mk Makefile; fi)
41     (cd esysUtils; if [ ! -h Makefile ]; then ln -s ./esysUtils.mk Makefile; fi)
42     (cd finley; if [ ! -h Makefile ]; then ln -s ./finley.mk Makefile; fi)
43     (cd tools/mmio; if [ ! -h Makefile ]; then ln -s ./mmio.mk Makefile; fi)
44     (cd tools/CppUnitTest; if [ ! -h Makefile ]; then ln -s ./CppUnitTest.mk Makefile; fi)
45    
46     # clean all modules
47 jgs 116 if [ "$1" == "clean" ];
48     then
49     for module in $MODULES ; do \
50     (echo Cleaning: $module; cd $module; gmake clean) \
51     done
52     exit
53     fi
54    
55 jgs 122 # uninstall all modules
56     if [ "$1" == "uninstall" ];
57     then
58     for module in $MODULES ; do \
59     (echo Cleaning: $module; cd $module; gmake uninstall) \
60     done
61     exit
62     fi
63 jgs 82
64 jgs 122 # default case - just build all modules
65 jgs 82 for module in $MODULES ; do \
66 jgs 122 (echo Building: $module; cd $module; env $ENVVARS gmake -j 10) \
67 jgs 82 done
68    
69 jgs 122 # install all modules
70 jgs 101 if [ "$1" == "install" ];
71     then
72     for module in $MODULES ; do \
73 jgs 122 (echo Installing: $module; cd $module; env $ENVVARS gmake install) \
74 jgs 101 done
75 jgs 122 (cd esys; if [ ! -h escriptcpp.so ]; then ln -s ../lib/libescriptcpp.so escriptcpp.so; fi)
76     (cd esys; if [ ! -h finleycpp.so ]; then ln -s ../lib/libfinleycpp.so finleycpp.so; fi)
77 jgs 101 fi
78 jgs 120
79 jgs 122 # run the unit tests
80     if [ "$1" == "unit_test" ]
81     then
82     for module in $TESTS
83     do
84     echo "Running unit tests for: $module"
85     cd $ESYS_ROOT/$module/test
86     unit_test
87     done
88     fi
89    
90     # run the python tests
91     if [ "$1" == "py_test" ]
92     then
93     for module in $TESTS
94     do
95     echo "Running python tests for: $module"
96     if [ "$module" == "finley" ]
97     then
98     cd $ESYS_ROOT/$module/test/python
99     python ImportTest.py
100     python SimpleSolve.py
101     python GradTest.py
102     elif [ "$module" == "escript" ]
103     then
104     cd $ESYS_ROOT/$module/test/python
105     python ImportTest.py
106     python BinaryOps.py
107     python UnaryOps.py
108     python SliceGetting.py
109     python SliceSetting.py
110     python MiscTests.py
111     fi
112     done
113     fi

Properties

Name Value
svn:eol-style native
svn:executable *
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.26