Jamfile 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  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. # Bring in rules for testing
  6. import testing ;
  7. # Define features to test:
  8. # Value types: USE_FLOAT USE_DOUBLE USE_STD_COMPLEX
  9. # Proxies: USE_RANGE USE_SLICE
  10. # Storage types: USE_BOUNDED_ARRAY USE_UNBOUNDED_ARRAY
  11. # Vector types: USE_STD_VECTOR USE_BOUNDED_VECTOR
  12. # Matrix types: USE_MATRIX USE_BOUNDED_MATRIX USE_VECTOR_OF_VECTOR
  13. # Adaptors: USE_ADAPTOR
  14. UBLAS_TESTSET = [ modules.peek : UBLAS_TESTSET ] ;
  15. UBLAS_TESTSET ?=
  16. USE_DOUBLE USE_STD_COMPLEX
  17. USE_RANGE USE_SLICE
  18. USE_UNBOUNDED_ARRAY USE_STD_VECTOR USE_BOUNDED_VECTOR USE_MATRIX
  19. ;
  20. # Sparse storage: USE_MAP_ARRAY USE_STD_MAP
  21. # Sparse vectors: USE_MAPPED_VECTOR USE_COMPRESSED_VECTOR USE_COORDINATE_VECTOR
  22. # Sparse matrices: USE_MAPPED_MATRIX USE_COMPRESSED_MATRIX USE_COORDINATE_MATRIX USE_MAPPED_VECTOR_OF_MAPPED_VECTOR USE_GENERALIZED_VECTOR_OF_VECTOR
  23. UBLAS_TESTSET_SPARSE = [ modules.peek : UBLAS_TESTSET_SPARSE ] ;
  24. UBLAS_TESTSET_SPARSE ?=
  25. USE_DOUBLE USE_STD_COMPLEX
  26. # USE_RANGE USE_SLICE # Too complex for regression testing
  27. USE_UNBOUNDED_ARRAY
  28. USE_MAP_ARRAY USE_STD_MAP
  29. USE_MAPPED_VECTOR USE_COMPRESSED_VECTOR
  30. USE_MAPPED_MATRIX USE_COMPRESSED_MATRIX
  31. ;
  32. # Generalize VofV still failing
  33. # USE_GENERALIZED_VECTOR_OF_VECTOR
  34. UBLAS_TESTSET_SPARSE_COO = [ modules.peek : UBLAS_TESTSET_SPARSE_COO ] ;
  35. UBLAS_TESTSET_SPARSE_COO ?=
  36. USE_DOUBLE USE_STD_COMPLEX
  37. USE_UNBOUNDED_ARRAY
  38. USE_COORDINATE_VECTOR
  39. USE_COORDINATE_MATRIX
  40. ;
  41. # Project settings
  42. project boost-ublas-test
  43. : requirements
  44. <define>BOOST_UBLAS_NO_EXCEPTIONS
  45. <toolset>vacpp:<define>"BOOST_UBLAS_NO_ELEMENT_PROXIES"
  46. <toolset>gcc:<cxxflags>"-Wall -Wno-unknown-pragmas"
  47. <toolset>msvc:<cxxflags>/bigobj
  48. <toolset>msvc:<cxxflags>"/W4" # == all
  49. # The define of macros below prevent warnings about the checked versions of SCL and CRT libraries.
  50. # Most Boost code does not need these versions (as they are markedly slower).
  51. <toolset>msvc:<define>_SCL_SECURE_NO_WARNINGS
  52. <toolset>msvc:<define>_SCL_SECURE_NO_DEPRECATE
  53. <toolset>msvc:<define>_CRT_SECURE_NO_WARNINGS
  54. <toolset>msvc:<define>_CRT_SECURE_NO_DEPRECATE
  55. <toolset>msvc:<define>_CRT_NONSTDC_NO_DEPRECATE # Suppresses other warnings about using standard POSIX and C9X.
  56. # Alternatively, you can just suppress the warnings (perhaps not the best way).
  57. #<toolset>msvc:<cxxflags>/wd4996 # 'putenv': The POSIX name for this item is deprecated.
  58. #<toolset>msvc:<cxxflags>/wd4512 # assignment operator could not be generated.
  59. #<toolset>msvc:<cxxflags>/wd4224 # nonstandard extension used : formal parameter 'arg' was previously defined as a type.
  60. #<toolset>msvc:<cxxflags>/wd4127 # expression is constant.
  61. #<toolset>msvc:<cxxflags>/wd4701 # unreachable code - needed for lexical cast - temporary for Boost 1.40 & earlier.
  62. ;
  63. test-suite numeric/uBLAS
  64. : [ run test1.cpp
  65. test11.cpp
  66. test12.cpp
  67. test13.cpp
  68. : # args
  69. : # input files
  70. : # requirements
  71. <define>$(UBLAS_TESTSET)
  72. ]
  73. [ run test2.cpp
  74. test21.cpp
  75. test22.cpp
  76. test23.cpp
  77. : : :
  78. <define>$(UBLAS_TESTSET)
  79. ]
  80. [ run test3.cpp
  81. test31.cpp
  82. test32.cpp
  83. test33.cpp
  84. : : :
  85. <define>$(UBLAS_TESTSET_SPARSE)
  86. ]
  87. [ run test3.cpp
  88. test31.cpp
  89. test32.cpp
  90. test33.cpp
  91. : : :
  92. <define>$(UBLAS_TESTSET_SPARSE_COO)
  93. : test3_coo
  94. :
  95. ]
  96. [ run test3.cpp
  97. test31.cpp
  98. test32.cpp
  99. test33.cpp
  100. : : :
  101. <define>USE_FLOAT
  102. <define>USE_DOUBLE
  103. <define>USE_STD_COMPLEX
  104. <define>USE_STD_MAP
  105. <define>USE_MAPPED_VECTOR_OF_MAPPED_VECTOR
  106. : test3_mvov
  107. :
  108. ]
  109. [ run test4.cpp
  110. test42.cpp
  111. test43.cpp
  112. : : :
  113. <define>$(UBLAS_TESTSET)
  114. ]
  115. [ run test5.cpp
  116. test52.cpp
  117. test53.cpp
  118. : : :
  119. <define>$(UBLAS_TESTSET)
  120. ]
  121. [ run test6.cpp
  122. test62.cpp
  123. test63.cpp
  124. : : :
  125. <define>$(UBLAS_TESTSET)
  126. ]
  127. # Test commented out because boost::interval does not behave like a scalar type
  128. # [ run test7.cpp
  129. # test71.cpp
  130. # test72.cpp
  131. # test73.cpp
  132. # : : :
  133. # <define>BOOST_UBLAS_USE_INTERVAL
  134. # <define>$(UBLAS_TESTSET)
  135. # ]
  136. [ run placement_new.cpp
  137. ]
  138. [ compile concepts.cpp
  139. : # requirements
  140. <define>EXTERNAL
  141. # <define>INTERAL
  142. # <define>SKIP_BAD
  143. <toolset>intel-linux:<cxxflags>"-Xc"
  144. <toolset>darwin:<cxxflags>"-fabi-version=0"
  145. ]
  146. [ run test_lu.cpp
  147. : : :
  148. ]
  149. [ run triangular_access.cpp
  150. : : :
  151. <define>NOMESSAGES
  152. ]
  153. [ run triangular_layout.cpp
  154. ]
  155. [ run comp_mat_erase.cpp
  156. : : :
  157. <toolset>msvc:<asynch-exceptions>on
  158. ]
  159. [ run sparse_view_test.cpp
  160. : : :
  161. <toolset>msvc:<asynch-exceptions>on
  162. ]
  163. [ run begin_end.cpp
  164. ]
  165. [ run num_columns.cpp
  166. ]
  167. [ run num_rows.cpp
  168. ]
  169. [ run size.cpp
  170. ]
  171. [ run test_coordinate_matrix_sort.cpp
  172. ]
  173. [ run test_coordinate_matrix_sort.cpp
  174. :
  175. :
  176. : <define>BOOST_UBLAS_COO_ALWAYS_DO_FULL_SORT
  177. : test_coordinate_matrix_always_do_full_sort
  178. :
  179. ]
  180. [ run test_complex_norms.cpp
  181. ]
  182. [ run test_scaled_norm.cpp
  183. : : :
  184. <define>BOOST_UBLAS_SCALED_NORM
  185. ]
  186. [ run test_assignment.cpp
  187. : : :
  188. <define>BOOST_UBLAS_COO_ALWAYS_DO_FULL_SORT
  189. ]
  190. [ run test_triangular.cpp
  191. :
  192. :
  193. : <library>/boost/timer//boost_timer
  194. ]
  195. [ run test_ticket7296.cpp
  196. :
  197. :
  198. : <toolset>msvc:<cxxflags>/wd4127 # The program checks that test facilities work fine. The warning appears many times.
  199. :
  200. :
  201. ]
  202. [ run test_inplace_solve.cpp
  203. :
  204. :
  205. : <define>$(UBLAS_TESTSET)
  206. : test_inplace_solve_basic
  207. :
  208. ]
  209. [ run test_inplace_solve.cpp
  210. :
  211. :
  212. : <define>$(UBLAS_TESTSET_SPARSE)
  213. <define>$(UBLAS_TESTSET_SPARSE_COO)
  214. : test_inplace_solve_sparse
  215. :
  216. ]
  217. [ run test_inplace_solve.cpp
  218. :
  219. :
  220. : <define>USE_MAPPED_VECTOR_OF_MAPPED_VECTOR
  221. : test_inplace_solve_mvov
  222. :
  223. ]
  224. [ run test_coordinate_vector_inplace_merge.cpp
  225. ]
  226. [ run test_coordinate_matrix_inplace_merge.cpp
  227. ]
  228. [ run test_banded_storage_layout.cpp
  229. :
  230. :
  231. :
  232. :
  233. :
  234. ]
  235. [ run test_fixed_containers.cpp
  236. :
  237. :
  238. :
  239. ]
  240. [ run test_matrix_vector.cpp
  241. ]
  242. ;
  243. build-project opencl ;
  244. build-project tensor ;