source: CONFIG_DEVT/IPSLCM6.2.2_ENSEMBLES/oasis3-mct/pyoasis/Makefile @ 6274

Last change on this file since 6274 was 6204, checked in by aclsce, 2 years ago

First import of IPSLCM6.2.2_work_ENSEMBLES working configuration

File size: 6.5 KB
Line 
1PYOASIS=$(COUPLE)/pyoasis
2
3
4# Doc
5doc:
6        cd docs && make latexpdf && cp _build/latex/pyoasis.pdf ..
7
8# Test
9
10ifeq ($(PYOASIS),/pyoasis)
11PYOASIS := .
12endif
13
14test: test-python
15test-devel: wrappertest examples examples_f examples_c
16test-python: examples examples_f examples_c
17test-nopython: examples_f_nopython examples_c_nopython
18
19wrappertest:
20        cd $(PYOASIS)/tests && ./run_pytest.sh
21
22examples: example1 example2 example3 example4 example5 example6 example8 example7 example9 example10
23
24example1:
25        cd $(PYOASIS)/examples/1-serial/python && (bash run.sh | tee test_output.txt) && grep -iq "successfully" test_output.txt && rm -f test_output.txt
26
27example2:
28        cd $(PYOASIS)/examples/2-apple/python && (bash run.sh | tee test_output.txt) && grep -iq "successfully" test_output.txt && rm -f test_output.txt
29
30example3:
31        cd $(PYOASIS)/examples/3-box/python && (bash run.sh | tee test_output.txt) && grep -iq "successfully" test_output.txt && rm -f test_output.txt
32
33example4:
34        cd $(PYOASIS)/examples/4-orange/python && (bash run.sh | tee test_output.txt) && grep -iq "successfully" test_output.txt && rm -f test_output.txt
35
36example5:
37        cd $(PYOASIS)/examples/5-points/python && (bash run.sh | tee test_output.txt) && grep -iq "successfully" test_output.txt && rm -f test_output.txt
38
39example6:
40        cd $(PYOASIS)/examples/6-apple_and_orange/python && (bash run.sh | tee test_output.txt) && grep -iq "successfully" test_output.txt && rm -f test_output.txt
41
42example7:
43        cd $(PYOASIS)/examples/7-multiple-puts/python && (bash run.sh | tee test_output.txt) && grep -iq "field 2 received successfully at time 40800" test_output.txt && rm -f test_output.txt
44
45example8:
46        cd $(PYOASIS)/examples/8-interoperability/fortran_and_python && make clean && (bash run.sh | tee test_output.txt) && grep -iq "successfully" test_output.txt && rm -f test_output.txt
47
48example9:
49        cd $(PYOASIS)/examples/9-python_fortran_C-multi_intracomm  && make clean && (bash run.sh | tee test_output.txt) && grep -iq "successfully" test_output.txt && rm -f test_output.txt
50
51example10:
52        cd $(PYOASIS)/examples/10-grid/python && (bash run.sh | tee test_output.txt) && grep -iq "successfully" test_output.txt && rm -f test_output.txt
53
54examples_f: example1_f example2_f example3_f example4_f example5_f example6_f example7_f example8_f example9_f example10_f example11_f
55examples_f_nopython: example1_f example2_f example3_f example4_f example5_f example6_f example7_f example10_f example11_f
56
57example1_f:
58        cd $(PYOASIS)/examples/1-serial/fortran && make clean && (bash run.sh | tee test_output.txt) && grep -iq "successfully" test_output.txt && rm -f test_output.txt
59
60example2_f:
61        cd $(PYOASIS)/examples/2-apple/fortran && make clean && (bash run.sh | tee test_output.txt) && grep -iq "successfully" test_output.txt && rm -f test_output.txt
62
63example3_f:
64        cd $(PYOASIS)/examples/3-box/fortran && make clean && (bash run.sh | tee test_output.txt) && grep -iq "successfully" test_output.txt && rm -f test_output.txt
65
66example4_f:
67        cd $(PYOASIS)/examples/4-orange/fortran && make clean && (bash run.sh | tee test_output.txt) && grep -iq "successfully" test_output.txt && rm -f test_output.txt
68
69example5_f:
70        cd $(PYOASIS)/examples/5-points/fortran && make clean && (bash run.sh | tee test_output.txt) && grep -iq "successfully" test_output.txt && rm -f test_output.txt
71
72example6_f:
73        cd $(PYOASIS)/examples/6-apple_and_orange/fortran && make clean && (bash run.sh | tee test_output.txt) && grep -iq "successfully" test_output.txt && rm -f test_output.txt
74
75example7_f:
76        cd $(PYOASIS)/examples/7-multiple-puts/fortran && make clean && (bash run.sh | tee test_output.txt) && grep -iq "successfully" test_output.txt && rm -f test_output.txt
77
78example8_f:
79        cd $(PYOASIS)/examples/8-interoperability/fortran_and_python && make clean && (bash run.sh | tee test_output.txt) && grep -iq "successfully" test_output.txt && rm -f test_output.txt
80
81example9_f:
82        cd $(PYOASIS)/examples/9-python_fortran_C-multi_intracomm  && make clean && (bash run.sh | tee test_output.txt) && grep -iq "successfully" test_output.txt && rm -f test_output.txt
83
84example10_f:
85        cd $(PYOASIS)/examples/10-grid/fortran  && make clean && (bash run.sh | tee test_output.txt) && grep -iq "successfully" test_output.txt && rm -f test_output.txt
86
87example11_f:
88        cd $(PYOASIS)/examples/11-test-interpolation/fortran  && make clean && (bash run.sh | tee test_output.txt) && grep -iq "successfully" test_output.txt && rm -f test_output.txt
89
90
91examples_c: example1_c example2_c example3_c example4_c example5_c example6_c example7_c example8_c example9_c example10_c example11_c
92examples_c_nopython: example1_c example2_c example3_c example4_c example5_c example6_c example7_c example8_c example10_c example11_c
93
94example1_c:
95        cd $(PYOASIS)/examples/1-serial/C && make clean && (bash run.sh | tee test_output.txt) && grep -iq "successfully" test_output.txt && rm -f test_output.txt
96
97example2_c:
98        cd $(PYOASIS)/examples/2-apple/C && make clean && (bash run.sh | tee test_output.txt) && grep -iq "successfully" test_output.txt && rm -f test_output.txt
99
100example3_c:
101        cd $(PYOASIS)/examples/3-box/C && make clean && (bash run.sh | tee test_output.txt) && grep -iq "successfully" test_output.txt && rm -f test_output.txt
102
103example4_c:
104        cd $(PYOASIS)/examples/4-orange/C && make clean && (bash run.sh | tee test_output.txt) && grep -iq "successfully" test_output.txt && rm -f test_output.txt
105
106example5_c:
107        cd $(PYOASIS)/examples/5-points/C && make clean && (bash run.sh | tee test_output.txt) && grep -iq "successfully" test_output.txt && rm -f test_output.txt
108
109example6_c:
110        cd $(PYOASIS)/examples/6-apple_and_orange/C && make clean && (bash run.sh | tee test_output.txt) && grep -iq "successfully" test_output.txt && rm -f test_output.txt
111
112example7_c:
113        cd $(PYOASIS)/examples/7-multiple-puts/C && make clean && (bash run.sh | tee test_output.txt) && grep -iq "successfully" test_output.txt && rm -f test_output.txt
114
115example8_c:
116        cd $(PYOASIS)/examples/8-interoperability/fortran_and_C && make clean && (bash run.sh | tee test_output.txt) && grep -iq "successfully" test_output.txt && rm -f test_output.txt
117
118example9_c:
119        cd $(PYOASIS)/examples/9-python_fortran_C-multi_intracomm  && make clean && (bash run.sh | tee test_output.txt) && grep -iq "successfully" test_output.txt && rm -f test_output.txt
120
121example10_c:
122        cd $(PYOASIS)/examples/10-grid/C  && make clean && (bash run.sh | tee test_output.txt) && grep -iq "successfully" test_output.txt && rm -f test_output.txt
123
124example11_c:
125        cd $(PYOASIS)/examples/11-test-interpolation/C  && make clean && (bash run.sh | tee test_output.txt) && grep -iq "successfully" test_output.txt && rm -f test_output.txt
Note: See TracBrowser for help on using the repository browser.