1 | PYOASIS=$(COUPLE)/pyoasis |
---|
2 | |
---|
3 | |
---|
4 | # Doc |
---|
5 | doc: |
---|
6 | cd docs && make latexpdf && cp _build/latex/pyoasis.pdf .. |
---|
7 | |
---|
8 | # Test |
---|
9 | |
---|
10 | ifeq ($(PYOASIS),/pyoasis) |
---|
11 | PYOASIS := . |
---|
12 | endif |
---|
13 | |
---|
14 | test: test-python |
---|
15 | test-devel: wrappertest examples examples_f examples_c |
---|
16 | test-python: examples examples_f examples_c |
---|
17 | test-nopython: examples_f_nopython examples_c_nopython |
---|
18 | |
---|
19 | wrappertest: |
---|
20 | cd $(PYOASIS)/tests && ./run_pytest.sh |
---|
21 | |
---|
22 | examples: example1 example2 example3 example4 example5 example6 example8 example7 example9 example10 |
---|
23 | |
---|
24 | example1: |
---|
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 | |
---|
27 | example2: |
---|
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 | |
---|
30 | example3: |
---|
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 | |
---|
33 | example4: |
---|
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 | |
---|
36 | example5: |
---|
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 | |
---|
39 | example6: |
---|
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 | |
---|
42 | example7: |
---|
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 | |
---|
45 | example8: |
---|
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 | |
---|
48 | example9: |
---|
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 | |
---|
51 | example10: |
---|
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 | |
---|
54 | examples_f: example1_f example2_f example3_f example4_f example5_f example6_f example7_f example8_f example9_f example10_f example11_f |
---|
55 | examples_f_nopython: example1_f example2_f example3_f example4_f example5_f example6_f example7_f example10_f example11_f |
---|
56 | |
---|
57 | example1_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 | |
---|
60 | example2_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 | |
---|
63 | example3_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 | |
---|
66 | example4_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 | |
---|
69 | example5_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 | |
---|
72 | example6_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 | |
---|
75 | example7_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 | |
---|
78 | example8_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 | |
---|
81 | example9_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 | |
---|
84 | example10_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 | |
---|
87 | example11_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 | |
---|
91 | examples_c: example1_c example2_c example3_c example4_c example5_c example6_c example7_c example8_c example9_c example10_c example11_c |
---|
92 | examples_c_nopython: example1_c example2_c example3_c example4_c example5_c example6_c example7_c example8_c example10_c example11_c |
---|
93 | |
---|
94 | example1_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 | |
---|
97 | example2_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 | |
---|
100 | example3_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 | |
---|
103 | example4_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 | |
---|
106 | example5_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 | |
---|
109 | example6_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 | |
---|
112 | example7_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 | |
---|
115 | example8_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 | |
---|
118 | example9_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 | |
---|
121 | example10_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 | |
---|
124 | example11_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 |
---|