Imported Upstream version 1.57.0
[platform/upstream/boost.git] / libs / numeric / ublas / test / Jamfile.v2
1 # Copyright (c) 2004-2011 Michael Stevens, David Bellot
2 # Use, modification and distribution are subject to the
3 # Boost Software License, Version 1.0. (See accompanying file
4 # LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
6 # Bring in rules for testing
7 import testing ;
8
9 # Define features to test:
10 #  Value types: USE_FLOAT USE_DOUBLE USE_STD_COMPLEX
11 #  Proxies: USE_RANGE USE_SLICE
12 #  Storage types: USE_BOUNDED_ARRAY USE_UNBOUNDED_ARRAY
13 #  Vector types: USE_STD_VECTOR USE_BOUNDED_VECTOR
14 #  Matrix types: USE_MATRIX USE_BOUNDED_MATRIX USE_VECTOR_OF_VECTOR
15 #  Adaptors: USE_ADAPTOR
16
17 UBLAS_TESTSET = [ modules.peek : UBLAS_TESTSET ] ;
18 UBLAS_TESTSET ?=
19             USE_DOUBLE USE_STD_COMPLEX
20             USE_RANGE USE_SLICE
21             USE_UNBOUNDED_ARRAY USE_STD_VECTOR USE_BOUNDED_VECTOR USE_MATRIX
22             ;
23
24 #  Sparse storage: USE_MAP_ARRAY USE_STD_MAP
25 #  Sparse vectors: USE_MAPPED_VECTOR USE_COMPRESSED_VECTOR USE_COORDINATE_VECTOR
26 #  Sparse matrices: USE_MAPPED_MATRIX USE_COMPRESSED_MATRIX USE_COORDINATE_MATRIX USE_MAPPED_VECTOR_OF_MAPPED_VECTOR USE_GENERALIZED_VECTOR_OF_VECTOR
27
28 UBLAS_TESTSET_SPARSE = [ modules.peek : UBLAS_TESTSET_SPARSE ] ;
29 UBLAS_TESTSET_SPARSE ?= 
30             USE_DOUBLE USE_STD_COMPLEX
31             # USE_RANGE USE_SLICE        # Too complex for regression testing
32             USE_UNBOUNDED_ARRAY
33                         USE_MAP_ARRAY USE_STD_MAP
34             USE_MAPPED_VECTOR USE_COMPRESSED_VECTOR 
35             USE_MAPPED_MATRIX USE_COMPRESSED_MATRIX 
36                         ;
37 # Generalize VofV still failing
38 #            USE_GENERALIZED_VECTOR_OF_VECTOR
39
40 UBLAS_TESTSET_SPARSE_COO = [ modules.peek : UBLAS_TESTSET_SPARSE_COO ] ;
41 UBLAS_TESTSET_SPARSE_COO ?= 
42             USE_DOUBLE USE_STD_COMPLEX
43             USE_UNBOUNDED_ARRAY
44             USE_COORDINATE_VECTOR
45             USE_COORDINATE_MATRIX 
46                         ;
47
48
49 # Project settings
50 project
51     : requirements
52        <define>BOOST_UBLAS_NO_EXCEPTIONS
53        <toolset>vacpp:<define>"BOOST_UBLAS_NO_ELEMENT_PROXIES"
54     ;
55
56
57 test-suite numeric/uBLAS
58     : [ run test1.cpp
59             test11.cpp
60             test12.cpp
61             test13.cpp
62         : # args
63         : # input files
64         : # requirements
65             <define>$(UBLAS_TESTSET)
66       ]
67       [ run test2.cpp
68             test21.cpp
69             test22.cpp
70             test23.cpp
71         : : :
72             <define>$(UBLAS_TESTSET)
73       ]
74       [ run test3.cpp
75             test31.cpp
76             test32.cpp
77             test33.cpp
78         : : :
79             <define>$(UBLAS_TESTSET_SPARSE)
80       ]
81       [ run test3.cpp
82             test31.cpp
83             test32.cpp
84             test33.cpp
85         : : :
86             <define>$(UBLAS_TESTSET_SPARSE_COO)
87         : test3_coo
88         :
89       ]
90       [ run test3.cpp
91             test31.cpp
92             test32.cpp
93             test33.cpp
94         : : :
95             <define>USE_FLOAT
96             <define>USE_DOUBLE 
97             <define>USE_STD_COMPLEX 
98             <define>USE_STD_MAP
99             <define>USE_MAPPED_VECTOR_OF_MAPPED_VECTOR 
100         : test3_mvov 
101         :
102       ]
103       [ run test4.cpp
104             test42.cpp
105             test43.cpp
106         : : :
107             <define>$(UBLAS_TESTSET)
108       ]
109       [ run test5.cpp
110             test52.cpp
111             test53.cpp
112         : : :
113             <define>$(UBLAS_TESTSET)
114       ]
115       [ run test6.cpp
116             test62.cpp
117             test63.cpp
118         : : :
119             <define>$(UBLAS_TESTSET)
120       ]
121 # Test commented out because boost::interval does not behave like a scalar type
122 #      [ run test7.cpp
123 #            test71.cpp
124 #            test72.cpp
125 #            test73.cpp
126 #        : : :
127 #            <define>BOOST_UBLAS_USE_INTERVAL
128 #            <define>$(UBLAS_TESTSET)
129 #      ]
130
131       [ run placement_new.cpp
132       ]
133       [ compile concepts.cpp
134         : # requirements
135             <define>EXTERNAL
136 #            <define>INTERAL
137 #            <define>SKIP_BAD
138             <toolset>intel-linux:<cxxflags>"-Xc"
139             <toolset>darwin:<cxxflags>"-fabi-version=0"
140       ]
141       [ run test_lu.cpp
142       ]
143       [ run triangular_access.cpp
144         : : :
145             <define>NOMESSAGES
146       ]
147       [ run triangular_layout.cpp
148       ]
149       [ run comp_mat_erase.cpp
150       ]
151       [ run sparse_view_test.cpp
152       ]
153       [ run begin_end.cpp
154       ]
155       [ run num_columns.cpp
156       ]
157       [ run num_rows.cpp
158       ]
159       [ run size.cpp
160       ]
161       [ run test_coordinate_matrix_sort.cpp
162       ]
163       [ run test_coordinate_matrix_sort.cpp
164        :
165        :
166        : <define>BOOST_UBLAS_COO_ALWAYS_DO_FULL_SORT
167        : test_coordinate_matrix_always_do_full_sort
168        :
169       ]
170       [ run test_complex_norms.cpp
171       ]
172           [ run test_assignment.cpp
173           : : : <define>BOOST_UBLAS_COO_ALWAYS_DO_FULL_SORT
174           : :
175           ]
176           [ run test_triangular.cpp
177             :
178             :
179             : <library>/boost/timer//boost_timer
180           ]
181           [ run test_ticket7296.cpp
182           ]
183       [ run test_inplace_solve.cpp
184         : 
185         : 
186         : <define>$(UBLAS_TESTSET) 
187         : test_inplace_solve_basic
188         :
189       ]
190       [ run test_inplace_solve.cpp
191         : 
192         : 
193         : <define>$(UBLAS_TESTSET_SPARSE) <define>$(UBLAS_TESTSET_SPARSE_COO)
194         : test_inplace_solve_sparse
195         :
196       ]
197       [ run test_inplace_solve.cpp
198         : 
199         : 
200         : <define>USE_MAPPED_VECTOR_OF_MAPPED_VECTOR
201         : test_inplace_solve_mvov
202         :
203       ]
204       [ run test_coordinate_vector_inplace_merge.cpp 
205       ]
206       [ run test_coordinate_matrix_inplace_merge.cpp 
207       ]
208       [ run test_banded_storage_layout.cpp
209         :
210         :
211         :
212         :
213         :
214       ]
215       [ run test_fixed_containers.cpp
216         :
217         :
218         :
219       ]
220       [ run test_matrix_vector.cpp
221       ]
222     ;